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
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
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