Page 1 of 1

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

Posted: Thu Jun 07, 2018 10:39 pm
by cristienos
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!

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

Posted: Fri Jun 08, 2018 3:54 pm
by cristienos
nobody can help me?

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

Posted: Fri Jun 08, 2018 4:16 pm
by TinCanTech

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

Posted: Fri Jun 08, 2018 4:58 pm
by cristienos
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?

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

Posted: Fri Jun 08, 2018 4:58 pm
by cristienos
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?

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

Posted: Fri Jun 15, 2018 10:15 pm
by cristienos
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...

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

Posted: Sat Jun 16, 2018 11:24 am
by TinCanTech
If you want to contact me privately: tincanteksup <at> gmail

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

Posted: Mon Jun 18, 2018 9:33 pm
by cristienos
i figured out...thanks!!