NEPacketTunnelVPNDemo icon indicating copy to clipboard operation
NEPacketTunnelVPNDemo copied to clipboard

VPN Connect but Internet is not working

Open rajaunleashed opened this issue 7 years ago • 10 comments

I have successfully connect VPN but my internet is not working?

rajaunleashed avatar Nov 11 '17 11:11 rajaunleashed

I am assuming your question is VPN connected on iOS but not traffic shows on Linux terminal. Well, in this case, you can check iptables and route settings on your Linux machine, or open debug mode(refer to this) on your iOS device, make sure data is redirect to tun.

davlxd avatar Nov 12 '17 20:11 davlxd

Thanks traffic shows now and internet is working but another problem is that VPN uses the server network. I want to use the user's internet not the server's one. How to achieve it? please help

rajaunleashed avatar Nov 13 '17 06:11 rajaunleashed

I just want to change DNS using VPN and want to use the user's own internet

rajaunleashed avatar Nov 13 '17 07:11 rajaunleashed

This line manipulate routes, which you can make user use his own Internet connection. However my guess is DNS settings in VPN only valid for VPN traffic, not sure this satisify your requirements, but you can verify.

davlxd avatar Nov 13 '17 20:11 davlxd

Can you little bit more explain? or give me example that How user use his own internet connection. Please I am trying but I am unable to achieve this.

rajaunleashed avatar Nov 14 '17 04:11 rajaunleashed

tunnelNetworkSettings.iPv4Settings?.excludedRoutes = [NEIPv4Route.default()]

davlxd avatar Nov 14 '17 20:11 davlxd

how to achieve this kind of functionality ? here it is in the below link how this app works programmatically?

https://itunes.apple.com/us/app/dns-override-set-dns-for-wi-fi-and-cellular/id1060830093?mt=8

rajaunleashed avatar Nov 15 '17 18:11 rajaunleashed

Anyone fixed this issue successfully? If yes please help..

let tunnelBundleId = "com.afia.vpn.tunnel" let serverAddress = "209.95.51.185" let serverPort = "54345" let mtu = "1400" let ip = "10.8.0.2" let subnet = "255.255.255.0" let dns = "8.8.8.8,8.4.4.4"

Vpn Connected, Logo showing but internet not working...

niaj-twinbit avatar May 21 '18 05:05 niaj-twinbit

same problem , i have successfully connected to VPN, but not working internet connections. Any one can help me ? Thanks.

Jaydip-iOS avatar Nov 29 '18 09:11 Jaydip-iOS

Same issue is there in my case as well. Is there any update on this Issue ?

TheMrugraj avatar Dec 07 '18 14:12 TheMrugraj