VPN root server and home server, ping but no internet, please help!

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
cristienos
OpenVpn Newbie
Posts: 6
Joined: Thu Jun 07, 2018 10:31 pm

VPN root server and home server, ping but no internet, please help!

Post by cristienos » Thu Jun 07, 2018 10:39 pm

Hi all,
please, please, help.

The infrastructure is like this:
Root server in datacenter, OS Centos 6, OpenVPN Server installed, Shorewall as firewall.
Home server located at home, OS Centos 6, OpenVPN Server installed, Shorewall as firewall.
Root server from datacenter is only connected to internet, only eth0 and lo.
Home server act as router and firewall, behind home server are computers and laptops.

I'm trying to use the root server from datacenter for routing all the internet traffic of all my home network.
If i connect from a client OpenVPN GUI installed in Windows client everything is working fine, i have the IP from the server located in datacenter, i can surf the internet with the IP from datacenter, is ok...
If i connect from the linux home server to the linux root server trough OpenVPN, i can ping the root server in datacenter but i don't have internet on home server and also on home computers.
The ideea is that all the computers behind the home server, will use the internet connection of root datacenter server.
I guess is something with gateway... but i can't figure what, please help!

Configuration below:
Root server in datacenter:

server.conf
port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1 bypass-dhcp"
crl-verify crl.pem
ca ca.crt
cert server_xxxxxxxxxx.crt
key server_xxxxxxxxxxx.key
tls-auth tls-auth.key 0
dh dh.pem
auth SHA256
cipher AES-128-CBC
tls-server
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-128-GCM-SHA256
status openvpn.log
verb 3

client.conf
client
proto udp
remote xxx.xxx.xxx.xxx 1194
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_xxxxxxxxxxxxxxx name
auth SHA256
auth-nocache
cipher AES-128-CBC
tls-client
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-128-GCM-SHA256
setenv opt block-outside-dns
verb 3
push "redirect-gateway def1"
<ca>

Thanks!

cristienos
OpenVpn Newbie
Posts: 6
Joined: Thu Jun 07, 2018 10:31 pm

Re: VPN root server and home server, ping but no internet, please help!

Post by cristienos » Fri Jun 08, 2018 3:54 pm

nobody can help me?


cristienos
OpenVpn Newbie
Posts: 6
Joined: Thu Jun 07, 2018 10:31 pm

Re: VPN root server and home server, ping but no internet, please help!

Post by cristienos » Fri Jun 08, 2018 4:58 pm

yes, doesn't help...
that applies only to the vpn clients, and i whant to route all internet trafic from the home server.
i think i need ipsec betwen the servers and after that some routes to redirect the traffic internet.
any sugestions?
Last edited by cristienos on Fri Jun 08, 2018 5:00 pm, edited 3 times in total.

cristienos
OpenVpn Newbie
Posts: 6
Joined: Thu Jun 07, 2018 10:31 pm

Re: VPN root server and home server, ping but no internet, please help!

Post by cristienos » Fri Jun 08, 2018 4:58 pm

i whant to route all internet traffic from site A (home server) to site B (root server)
so the computers in the home network (home server) site A, will surf the internet with the IP of the root server, site B.
anyone can help me?

cristienos
OpenVpn Newbie
Posts: 6
Joined: Thu Jun 07, 2018 10:31 pm

Re: VPN root server and home server, ping but no internet, please help!

Post by cristienos » Fri Jun 15, 2018 10:15 pm

i'm stuck in this problem, how to route internet traffic from site a to site b...anyone can help me?
I'l will pay if is necesary...

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN root server and home server, ping but no internet, please help!

Post by TinCanTech » Sat Jun 16, 2018 11:24 am

If you want to contact me privately: tincanteksup <at> gmail

cristienos
OpenVpn Newbie
Posts: 6
Joined: Thu Jun 07, 2018 10:31 pm

Re: VPN root server and home server, ping but no internet, please help!

Post by cristienos » Mon Jun 18, 2018 9:33 pm

i figured out...thanks!!

Post Reply