ios - How to send all traffic over a VPN connection? -


i creating application connect vpn server.

i have worked out how this, need able send traffic on connection.

is there code can this?

so far have tried:

    let manager: nevpnmanager = nevpnmanager.sharedmanager()     var p = nevpnprotocolipsec()     manager.`protocol` = p     let pw = ""     println(manager.connection.status)     p.username = ""     p.passwordreference = pw.datausingencoding(nsutf8stringencoding)     p.serveraddress = ""     p.authenticationmethod = nevpnikeauthenticationmethod.sharedsecret     //p.sharedsecretreference = getpasscodensdata("vpnsharedsecret")     p.useextendedauthentication = true     p.disconnectonsleep = false 

no, don't think there way switch system ip traffic on vpn connection. apple doesn't let apps muck around os that.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -