VPN root server and home server, ping but no internet, please 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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Thu Jun 07, 2018 10:31 pm
VPN root server and home server, ping but no internet, please help!
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!
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!
-
- 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!
nobody can help me?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- 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!
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?
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.
-
- 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!
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?
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?
-
- 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!
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...
I'l will pay if is necesary...
-
- 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!
If you want to contact me privately: tincanteksup <at> gmail
-
- 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!
i figured out...thanks!!