Comments (15)
Oh yes, there are 2 things about NetworkExtension: you cannot run on simulator, and you need entitlements even you just debug on your iPhone without releasing.
BTW this project is unfinished and I'm kinda abandoned it because of my procrastination -_-||| . I will finish this (with an elaborate installation guide) if you really need it :)
from nepackettunnelvpndemo.
Thanks for the info. I was able to get the entitlements set up. Did you ever establish a VPN connection using the current code that you have now?
from nepackettunnelvpndemo.
Yes, I just complete this repo, and it works fine on my iPhone, with server side setup.
from nepackettunnelvpndemo.
I just followed the instructions from both repos. I am still getting this as thew output in the console
VPN Status changed:
Invliad
VPN Status changed:
Disconnected...
Save successfully
VPN status is always invalid
from nepackettunnelvpndemo.
My bad, my instructions are not elaborate enough. Here it is.
- After build & run
simple-vpn-demo
, your terminal should be like this. - After build & run
NEPacketTunnelVPNDemo
on your iPhone, Xcode log window should look like this, iPhone screen should look like this. And this is where you are. - The
Connect
at the center of iPhone screen is a BUTTON, after you click it, your iPhone screen should look like this, and Xcode log window should look like this.simple-vpn-demo
terminal window should look like this, which means VPN server is now receiving traffic. - Your IP address of http://whatismyipaddress.com/ on your iPhone should be different before and after click the
Connect
button.
Q.E.D.
from nepackettunnelvpndemo.
Hi Touchcore, does this work for you? I am closing this issue if it does.
from nepackettunnelvpndemo.
I will try this today and get back to you. Thanks a lot!
from nepackettunnelvpndemo.
I got it working. However, the following method is never called in PacketTunnelProvider.swift:
startTunnel(options: [String : NSObject]?, completionHandler: @escaping (Error?) -> Void)
Do you have any idea?
from nepackettunnelvpndemo.
To verify it's called, you might need to set a break point and debug after Xcode attach to NEPacketTunnelVPNDemoTunnel
, like this, kind of cumbersome.
from nepackettunnelvpndemo.
For some reason I can establish a vpn connection but no methods in the PacketTunnel Provider file are ever called. This is my stackoverflow link http://stackoverflow.com/questions/42701530/packettunnelprovider-network-extension-not-called-swift-3
from nepackettunnelvpndemo.
@lxdcn
I just followed the instructions from both repos. I am still getting this as thew output in the console
NEPacketTunnelVPNDemo[9687:1248755] refreshPreferences: HangTracerEnabled: 0
2018-02-27 11:52:43.975500+0530 NEPacketTunnelVPNDemo[9687:1248755] refreshPreferences: HangTracerDuration: 500
2018-02-27 11:52:43.975565+0530 NEPacketTunnelVPNDemo[9687:1248755] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
VPN Status changed:
Invliad
VPN Status changed:
Disconnected...
Save successfully
Go!
VPN Status changed:
Connecting...
VPN Status changed:
Disconnected...
from nepackettunnelvpndemo.
@visionstech were you able to overcome this Connecting-Disconnected problem?
from nepackettunnelvpndemo.
Any update on this issue ?
from nepackettunnelvpndemo.
Any update on this issue ?
Hi Sir, Do you able to solve the Connecting-Disconnected problem?
from nepackettunnelvpndemo.
Yes, In my case I was missing an additional Capability for Personal VPN
to add in entitlements.
from nepackettunnelvpndemo.
Related Issues (20)
- {NSLocalizedDescription=permission denied} HOT 8
- Connects but IP the same HOT 2
- More than one server? HOT 2
- Select Ip HOT 2
- 能不能加你,我好多问题 想要问你 HOT 2
- Resolve Hostname to IP HOT 1
- Thanks for providing this demo HOT 1
- After Connection Ip address still same as before connection HOT 3
- Integration
- iOS client stuck in "Connecting" HOT 3
- How to parse IP into let = ServerAddress
- Hello lxdcn HOT 2
- ios12显示 update required,不能连接vpn server,不知如何解决 HOT 7
- how to get amount of data which was uploaded and downloaded?? HOT 2
- How to debug extension? HOT 1
- Encryption. HOT 1
- vpn调试 HOT 1
- Username+Password
- DNS only? HOT 2
- IPv6 traffic support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nepackettunnelvpndemo.