[Solved] iOS connects but no internet access while other devices have internet access
Posted: Mon Oct 29, 2018 2:49 am
I have been trying to get OpenVPN iOS app to connect to my home router running DD-WRT. My Mac can connect just fine with this config, but not my iPhone. It can connect but there is no internet access; meanwhile Tunnelblick on OSX has internet access. I'm still very new to this and I have been stumped after much research and experimentation with the configs. Here they are:
Server:
Firewall:
The first 4 lines of server config are actually set in the DDWRT web GUI. Router is IP address 192.168.1.1. I am at a loss and would appreciate any help.
Code: Select all
client
dev tun2
proto udp
remote XXX.XXX.XXX.XXX 1194 #public IP removed
cipher AES-128-CBC
auth sha256
compress lzo
key-direction 1
gateway-redirect def1
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
float
Code: Select all
port 1194
proto udp
cipher AES-128-CBC
auth sha256
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.1"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
push "redirect-gateway def1"
Code: Select all
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 192.168.1.0/24 -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j MASQUERADE