I have set up rather ordinary OpenVPN configuration on my router (following the old OpenWRT manual). I use iPhone OpenVPN client (in TUN mode) to tunnel into my LAN and it works just fine accessing internal IP-adresses on the network (192.168.0.x).
Unfortunately, wile being able to access my internal network, I am not able to surf through my iPhone while connected to VPN. But I can ping "external" IP adresses just fine, but it seems that DNS is not working as I cannot resolve any URL. So I can "surf" to IP-adresses only
On my LAN,my phone is assigned IP 10.8.0.6 when connecting via VPN.
This is my server config:
config openvpn 'myvpn' option enabled '1' option verb '3' option port '1194' option proto 'udp' option dev 'tun' option server '10.8.0.0 255.255.255.0' option keepalive '10 120' option ca '/etc/openvpn/ca.crt' option cert '/etc/openvpn/my-server.crt' option key '/etc/openvpn/my-server.key' option dh '/etc/openvpn/dh2048.pem' option mute 20 list push 'route 192.168.0.0 255.255.255.0' list push 'redirect-gateway def1' list push 'dhcp-option DNS 10.8.0.1' list push 'dhcp-option WINS 10.8.0.1' option mute 20
And this is my phone config:
dev tun proto udp verb 3 ca ca.crt cert my-client.crt key my-client.key client remote-cert-tls server remote x.x.x.x 1194 gateway-redirect def1 route 192.168.0.0 255.255.255.0
What am I missing? How do I force phone to use my own specified DNS? (or any DNS if possible)