I the following simple static configuration:
[server.ovpn]
port 53
proto tcp-server
dev tun
push "dhcp-option DNS 10.8.0.1"
push "redirect-gateway def1"
ifconfig 10.8.0.1 10.8.0.2
secret static.key
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
comp-lzo
verb 4
[client.ovpn]
port 53
remote 10.184.myname.mooo.com
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
proto tcp-client
resolv-retry infinite
redirect-gateway def1
dhcp-option DNS 8.8.8.8
My client can always connect to the server, however, routing traffic does not seem to work reliably, it'll work sometime but not always, i.e., when I check my ip through some web service, I sometimes get my client's own ip, or sometimes get the vpn's ip. What should I look for to solve this problem?
Thanks,