How do you support providing IPv6 connectivity for your VPN, that is, passing IPv6 through the tunnel? I currently have IPv4 going through the tunnel just fine but the IPv6 traffic is bypassing the tunnel. Thanks,
Post
Replies
Boosts
Views
Activity
I have setup a tunnel with NEPacketTunnelProvider. I am noticing my Facetime traffic doesn't go through the tunnel as of now; it's bypassing it. What could I do to support Facetime traffic go through the tunnel? Does this have to do with IPV6 support? I am only setting IPV4 settings for the tunnel as of now, as shown below:
tunnelNetworkSettings.ipv4Settings = NEIPv4Settings(addresses: <SERVER_ADDRESS>], subnetMasks: [conf["subnet"] as! String])
tunnelNetworkSettings.ipv4Settings?.includedRoutes = [NEIPv4Route.default()]
If I need to set the IPV6 settings, what would that look like? Any help on this front would be appreciated.
Thanks for reading and taking the time to comment.
Here is the curl command that works:curl -d {"Key1":"value1"} -k -vvvv --request POST --header "Content-Type: application/json" --key KEY.pem --cacert CRT.pem --cert KEY.pem "URL"How do I translate this to URLSession request? I get the authentication failure errors:Connection 1: default TLS Trust evaluation failed(-9807)2020-04-09 01:51:46.604692-0600 CertificatePinningExample[7192:1891639] Connection 1: TLS Trust encountered error 3:-98072020-04-09 01:51:46.604879-0600 CertificatePinningExample[7192:1891639] Connection 1: encountered error(3:-9807)2020-04-09 01:51:46.606672-0600 CertificatePinningExample[7192:1891639] Connection 1: unable to determine interface type without an established connection2020-04-09 01:51:46.650936-0600 CertificatePinningExample[7192:1891639] Task <9E539D4B-9694-426E-B382-6350044743B0>.<1> HTTP load failed, 0/0 bytes (error code: -1202 [3:-9807])2020-04-09 01:51:46.662507-0600 CertificatePinningExample[7192:1891652] Task <9E539D4B-9694-426E-B382-6350044743B0>.<1> finished with error [-1202] Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “BLAH” which could put your confidential information at risk." UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=(
Hi there, Wondering if it is possible to call a custom method written in NetworkExtension framework as a response to a button click on a viewcontroller? Here is what I am trying to do:- Press a button on the viewcontroller (that belongs to a different target) triggering a method call in the NetworkExtension framework. Thanks for reading!