Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

VPN Connect but Internet is not working #9

Open
rajaunleashed opened this issue Nov 11, 2017 · 10 comments
Open

VPN Connect but Internet is not working #9

rajaunleashed opened this issue Nov 11, 2017 · 10 comments

Comments

@rajaunleashed
Copy link

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

@davlxd
Copy link
Owner

davlxd commented Nov 12, 2017

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.

@rajaunleashed
Copy link
Author

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
Copy link
Author

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

@davlxd
Copy link
Owner

davlxd commented Nov 13, 2017

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.

@rajaunleashed
Copy link
Author

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.

@davlxd
Copy link
Owner

davlxd commented Nov 14, 2017

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

@rajaunleashed
Copy link
Author

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

@niaj-twinbit
Copy link

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

@Jaydip-iOS
Copy link

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

@TheMrugraj
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants