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
Post a Comment