iOS Client is not working to use VPN only for DNS queries

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
tugsjargal
OpenVpn Newbie
Posts: 5
Joined: Thu Mar 22, 2018 3:12 am

iOS Client is not working to use VPN only for DNS queries

Post by tugsjargal » Fri Apr 13, 2018 9:58 am

Dear Guys,

I've implemented your great API for iOS app. When we install .ovpn file via OpenVPN Connect, DNS queries are working perfect and our Android version is working as expected.

But I implemented openvpn3 to our iOS app. This is not working. I think DNS settings are not applied to iPhone device settings. I am using latest version of openvpn3.

On my server.conf:

;push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.8.0.1"

I have set NEPacketTunnelNetworkSettings object as provided from openvpn Server in NEPacketTunnelProvider class. But all traffic transfers iPhone -> EndPoint. I would get only DNS traffics transferred via VPN tunnel.

Do you have any idea ?

Thanks.

Post Reply