[Solved] iOS connects but no internet access while other devices have internet access

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
bugsdabunny
OpenVpn Newbie
Posts: 3
Joined: Mon Oct 29, 2018 2:38 am

[Solved] iOS connects but no internet access while other devices have internet access

Post by bugsdabunny » 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:

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
Server:

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"
Firewall:

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
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.

User avatar
ordex
OpenVPN Inc.
Posts: 333
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: iOS connects but no internet access while other devices have internet access

Post by ordex » Tue Oct 30, 2018 4:21 pm

you are using compression (bad), but it is now disabled by default in the Connect App. Check the settings and enable it if you really want to use it.

bugsdabunny
OpenVpn Newbie
Posts: 3
Joined: Mon Oct 29, 2018 2:38 am

Re: iOS connects but no internet access while other devices have internet access

Post by bugsdabunny » Wed Oct 31, 2018 3:54 am

I have removed the compress line from config but it still has the same problem...

bugsdabunny
OpenVpn Newbie
Posts: 3
Joined: Mon Oct 29, 2018 2:38 am

Re: iOS connects but no internet access while other devices have internet access

Post by bugsdabunny » Fri Nov 02, 2018 3:23 am

Turns out you were right about the compression, I had removed it from the configs but the web GUI on DD-WRT OpenVPN server enabled it by default, I had to go into the advanced settings and disable it there, even though the advanced settings were disabled...

sojic
OpenVpn Newbie
Posts: 1
Joined: Mon Jul 04, 2022 6:44 pm

Re: [Solved] iOS connects but no internet access while other devices have internet access

Post by sojic » Mon Jul 04, 2022 6:50 pm

I have issues with iPhone iOS and OpenVPN. I didn't want to open new thread, so I'm continuing here.

Client config:

Code: Select all

client
dev tun
proto udp
remote HOST PORT
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
#ignore-unknown-option block-outside-dns
#block-outside-dns
verb 3
server:

Code: Select all

local XXXXX
port XXXXX
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
#push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
#push "dhcp-option DNS 1.1.1.1"
#push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notify
Client Device: iPhone, Open Connect 3.

After connecting to VPN, iPhone internet is gone.

The same configuration on Android, and Windows is working properly (except Windows 10, where Open Connect 3 is bad. With OpenVpn client 2.x is woorking OK).

Post Reply