Hi
A client can connect to OpenVPN server hosted on Ubuntu server but connection to internet is not well routed. I wonder what am I missing.
Below is the configuration for the client:
client
remote ss.xen.prgmr.com
ca /home/adi/.ssh/ca.crt
cert /home/adi/.ssh/dev-vm.crt
key /home/adi/.ssh/dev-vm.key
comp-lzo yes
dev tun
proto udp
nobind
auth-nocache
script-security 2
persist-key
persist-tun
user openvpn
group openvpn
Server
local 1yy.xxx.xx.213
port 1194
proto udp
dev tun0
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
IP routing tables:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
1yy.xxx.xx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 1yy.xxx.xx.1 0.0.0.0 UG 0 0 0 eth0
IP Table:
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 10.8.0.0/24 anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Thanks