Giter VIP home page Giter VIP logo

Comments (15)

davlxd avatar davlxd commented on May 29, 2024

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.

ApplantaDev avatar ApplantaDev commented on May 29, 2024

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.

davlxd avatar davlxd commented on May 29, 2024

Yes, I just complete this repo, and it works fine on my iPhone, with server side setup.

from nepackettunnelvpndemo.

ApplantaDev avatar ApplantaDev commented on May 29, 2024

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.

davlxd avatar davlxd commented on May 29, 2024

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.

davlxd avatar davlxd commented on May 29, 2024

Hi Touchcore, does this work for you? I am closing this issue if it does.

from nepackettunnelvpndemo.

ApplantaDev avatar ApplantaDev commented on May 29, 2024

I will try this today and get back to you. Thanks a lot!

from nepackettunnelvpndemo.

ApplantaDev avatar ApplantaDev commented on May 29, 2024

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.

davlxd avatar davlxd commented on May 29, 2024

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.

ApplantaDev avatar ApplantaDev commented on May 29, 2024

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.

visionstech avatar visionstech commented on May 29, 2024

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

kukushechkin avatar kukushechkin commented on May 29, 2024

@visionstech were you able to overcome this Connecting-Disconnected problem?

from nepackettunnelvpndemo.

TheMrugraj avatar TheMrugraj commented on May 29, 2024

Any update on this issue ?

from nepackettunnelvpndemo.

ms-tii avatar ms-tii commented on May 29, 2024

Any update on this issue ?

Hi Sir, Do you able to solve the Connecting-Disconnected problem?

from nepackettunnelvpndemo.

TheMrugraj avatar TheMrugraj commented on May 29, 2024

Yes, In my case I was missing an additional Capability for Personal VPN to add in entitlements.

from nepackettunnelvpndemo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.