NEPacketTunnelVPNDemo
NEPacketTunnelVPNDemo copied to clipboard
VPN Connect but Internet is not working
I have successfully connect VPN but my internet is not working?
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.
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
I just want to change DNS using VPN and want to use the user's own internet
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.
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.
tunnelNetworkSettings.iPv4Settings?.excludedRoutes = [NEIPv4Route.default()]
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
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...
same problem , i have successfully connected to VPN, but not working internet connections. Any one can help me ? Thanks.
Same issue is there in my case as well. Is there any update on this Issue ?