Connected, access to local resources, but no internet

Ask questions about your Access Server configuration here.
Post Reply
msegling
OpenVpn Newbie
Posts: 2
Joined: Sat Jan 20, 2018 9:56 pm

Connected, access to local resources, but no internet

Post by msegling » Sat Jan 20, 2018 10:32 pm

Disclaimer: I have read through just about every post relating to this issue and have been unsuccessful at resolving this. I understand that this is a very common issue. All help is greatly appreciated!

I created an OpenVPN server on ubuntu 14.04 VPS. NAT ipv4. Accessible Port Range: 6800 to 6819
The client is a Windows 10 machine running the latest version of OpenVPN GUI with administrative rights.
I suspect the issue to be with the routing and iptables.

When connected, The client seems to be able to ping the server successfully, but although the server gets a response from a website the client does not.

Server config:

Code: Select all

port 6801
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
Client config

Code: Select all

client
proto udp
remote [External IP] 6801
resolv-retry infinite
dev tun
nobind
persist-key
persist-tun
ns-cert-type server
verb 3
comp-lzo
IP tables

Code: Select all

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

Please let me know if i can supply any additional settings/information
Thank again to anyone who assists

User avatar
pazzovalerio
OpenVpn Newbie
Posts: 7
Joined: Fri Jan 19, 2018 8:28 pm

Re: Connected, access to local resources, but no internet

Post by pazzovalerio » Sun Jan 21, 2018 11:37 am

msegling wrote:Disclaimer: I have read through just about every post relating to this issue and have been unsuccessful at resolving this. I understand that this is a very common issue. All help is greatly appreciated!

I created an OpenVPN server on ubuntu 14.04 VPS. NAT ipv4. Accessible Port Range: 6800 to 6819
The client is a Windows 10 machine running the latest version of OpenVPN GUI with administrative rights.
I suspect the issue to be with the routing and iptables.

When connected, The client seems to be able to ping the server successfully, but although the server gets a response from a website the client does not.

Server config:

Code: Select all

port 6801
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
Client config

Code: Select all

client
proto udp
remote [External IP] 6801
resolv-retry infinite
dev tun
nobind
persist-key
persist-tun
ns-cert-type server
verb 3
comp-lzo
IP tables

Code: Select all

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

Please let me know if i can supply any additional settings/information
Thank again to anyone who assists
give the command ifconfig and post the result here

Inviato dal mio SM-G955F utilizzando Tapatalk


msegling
OpenVpn Newbie
Posts: 2
Joined: Sat Jan 20, 2018 9:56 pm

Re: Connected, access to local resources, but no internet

Post by msegling » Sun Jan 21, 2018 1:43 pm

pazzovalerio wrote:
Sun Jan 21, 2018 11:37 am
msegling wrote:Disclaimer: I have read through just about every post relating to this issue and have been unsuccessful at resolving this. I understand that this is a very common issue. All help is greatly appreciated!

I created an OpenVPN server on ubuntu 14.04 VPS. NAT ipv4. Accessible Port Range: 6800 to 6819
The client is a Windows 10 machine running the latest version of OpenVPN GUI with administrative rights.
I suspect the issue to be with the routing and iptables.

When connected, The client seems to be able to ping the server successfully, but although the server gets a response from a website the client does not.

Server config:

Code: Select all

port 6801
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
Client config

Code: Select all

client
proto udp
remote [External IP] 6801
resolv-retry infinite
dev tun
nobind
persist-key
persist-tun
ns-cert-type server
verb 3
comp-lzo
IP tables

Code: Select all

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

Please let me know if i can supply any additional settings/information
Thank again to anyone who assists
give the command ifconfig and post the result here

Inviato dal mio SM-G955F utilizzando Tapatalk

Hi thanks for your response!
After i ran ifconfig i noticed that i was not using the interface eth0 but venet0

Thanks for your assistance.
Issue resolved

User avatar
pazzovalerio
OpenVpn Newbie
Posts: 7
Joined: Fri Jan 19, 2018 8:28 pm

Re: Connected, access to local resources, but no internet

Post by pazzovalerio » Sun Jan 21, 2018 1:47 pm

msegling wrote:
pazzovalerio wrote:
Sun Jan 21, 2018 11:37 am
msegling wrote:Disclaimer: I have read through just about every post relating to this issue and have been unsuccessful at resolving this. I understand that this is a very common issue. All help is greatly appreciated!

I created an OpenVPN server on ubuntu 14.04 VPS. NAT ipv4. Accessible Port Range: 6800 to 6819
The client is a Windows 10 machine running the latest version of OpenVPN GUI with administrative rights.
I suspect the issue to be with the routing and iptables.

When connected, The client seems to be able to ping the server successfully, but although the server gets a response from a website the client does not.

Server config:

Code: Select all

port 6801
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
Client config

Code: Select all

client
proto udp
remote [External IP] 6801
resolv-retry infinite
dev tun
nobind
persist-key
persist-tun
ns-cert-type server
verb 3
comp-lzo
IP tables

Code: Select all

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

Please let me know if i can supply any additional settings/information
Thank again to anyone who assists
give the command ifconfig and post the result here

Inviato dal mio SM-G955F utilizzando Tapatalk

Hi thanks for your response!
After i ran ifconfig i noticed that i was not using the interface eth0 but venet0

Thanks for your assistance.
Issue resolved
It was just what I wanted to point out to you because I had the same problem as you

Inviato dal mio SM-G955F utilizzando Tapatalk


Post Reply