I am try create VPN using NEVPNManager, I am use Certificate authentication and IKEv2 protocol. When vpn was installed on iPhone and I am try connect to server, I get this error:
Code Block Connection 8: received failure notification nw_flow_add_write_request [C8.1 (Ip&Port) failed channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] cannot accept write requests nw_write_request_report [C8] Send failed with error "Socket is not connected" Connection 5: received failure notification
only FIRST time after installation, then I am nothing get from VPN.
In this question
https://developer.apple.com/forums/thread/84679
I am decide create VPN use NEPacketTunnelProvider but I am don't understand completely all what should I am expected when I will be try that.If you want to continue down the NEVPNManager path you will have to get a trusted CA to issue you a certificate for your VPN server answer by eskimo.
How more lot of work will be there?
I can create VPN with IKEv2 for users without certificate CA trusted?
Or good reason will be change authentication method from certificate to login and password for IKEv2 or change protocol on IPsec and use login, pass & secret to authentication method?
Regards, Ihor.
When using NEPacketTunnelProvider, typically you have a need to define the custom transport for your VPN. For example a custom tunneling protocol or a specific technique used for encapsulating IP packets that are pulled out of the TUN interface.I am decide create VPN use NEPacketTunnelProvider but I am don't understand completely all what should I am expected when I will be try that.
Using NEPacketTunnelProvider is typically done to integrate with a custom tunneling protocol to a VPN server. This can take time to developer and get right. So, this is usually more work that creating a personal VPN with NEVPNManager because a personal VPN handles the transport for you.How more lot of work will be there?
Like Quinn mentioned, to continue with IKEv2 it is best to get a leaf certificate from a CA that exists in the device trust store already and then use an identity that contains that leaf for authentication with your VPN server.I can create VPN with IKEv2 for users without certificate CA trusted?
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com