NEPacketTunnelVPNDemo
NEPacketTunnelVPNDemo copied to clipboard
VPN doesn't connect
Hi there the VPN doesn't connect it just shows the following.


The logs on both sides look pretty good, seems like network problem, make sure it's network reachable from you iOS device to your Linux machine, could be firewall issues. You can use telnet or netcat to identify and verify that. Cheers.
LMAO Joseph what are the chances we'd run into eachother outside of twitter. Anyways did you ever fix this?
Dear I am facing same problem. there is no connectivity issues between device ans server. as you can see above pic kindly help me to solve this issues. Thanx
Hi, go to compatibility’s (entitlements) and turn personalvpn and networkedtensions on and off. Then tick everything.
Do it for the tunnel too
Hi , I am also facing same issue, the VPN doesn't connect it just shows the following. I tried all the above suggestions also called the loadFromPreferences method after saveToPreferences. I made different bundle identifiers(it.companyname.projectname & it.companyname.projectname.projecttunnel) for both app and extension also made group identifier. Nothing worked, Please help me.
I am doing it with .ovpn file see pic 2
This project doesn’t have the nessisary dependencies and code to deal with OpenVPN.
There’s a link to download the server side stuff in the home page of this project
This project doesn’t have the nessisary dependencies and code to deal with OpenVPN.
There’s a link to download the server side stuff in the home page of this project
Thanks Ben
Actually I have only .ovpn profile through which I have to connect vpn. I don't have any server credentials and access of it. And I m unable to find any solution to connect vpn with .ovpn profile in swift. If you have any solution then please share, I will be highly obliged to you
Do you need to make the project your self?
If not, check out the proper official app: OpenVPN Connect by OpenVPN Technologies
If this doesn’t suit you, I have seen a project that does support OpenVPN but I’ll need to find it, I’m currently on the bus to school. I’ll find the project when I am home.
It requires a special type of setup and I’ve tried it before and couldn’t get it to work
I don’t know why the link didn’t paste: https://itunes.apple.com/gb/app/openvpn-connect/id590379981?mt=8
I don’t know why the link didn’t paste: https://itunes.apple.com/gb/app/openvpn-connect/id590379981?mt=8
Thanks @MrBenFTW for the link. I know already about this app. But I want to make project myself. I have tried another method and run successfully even in background state. Now I want to know that can I run VPN connection Always ON only for WiFi(not cellular) even app state is closed(suspended/killed)?
Try Reachability.swift
Try Reachability.swift
It works only in minimised or in running state. Not in terminated(killed) app.