[Solved] Routing all internet through vpn on Android
Posted: Mon Nov 23, 2015 5:12 pm
I have a VPN server up and running with all traffic routed through the vpn (push "redirect-gateway def1"). Connecting from a linux client I confirmed this is working fine and I have internet access but connecting from my android phone things aren't working well. The connection itself seems to happen without incident but after that I can't access anything (e.g. checking email times out). Looking at the stats screen for openvpn, the "packet received" field frequently goes up to several seconds which seems odd. Can someone help me track down why this is?
server conf
client conf
server conf
Code: Select all
port 1194
proto udp
dev tun
ca ...
cert ...
key ...
dh /etc/openvpn/dh2048.pem
server 192.168.10.10 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
Code: Select all
client
dev tun
proto udp
remote 192.168.10.10 1194
resolv-retry infinite
nobind
persist-key
persist-tun
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
remote-cert-tls server
comp-lzo
verb 3