NEPacketTunnelVPNDemo icon indicating copy to clipboard operation
NEPacketTunnelVPNDemo copied to clipboard

VPN doesn't connect

Open JosephShenton opened this issue 7 years ago • 12 comments

Hi there the VPN doesn't connect it just shows the following.

screen shot 2017-09-27 at 3 51 33 pm screen shot 2017-09-27 at 3 51 47 pm

JosephShenton avatar Sep 27 '17 05:09 JosephShenton

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.

davlxd avatar Sep 30 '17 02:09 davlxd

LMAO Joseph what are the chances we'd run into eachother outside of twitter. Anyways did you ever fix this?

iambenmitchell avatar May 11 '18 22:05 iambenmitchell

vpnconfig vpnstatus 3

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

shahidge4 avatar Nov 21 '18 15:11 shahidge4

Hi, go to compatibility’s (entitlements) and turn personalvpn and networkedtensions on and off. Then tick everything.

Do it for the tunnel too

iambenmitchell avatar Dec 01 '18 11:12 iambenmitchell

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. screenshot 2019-01-22 at 2 57 45 pm

I am doing it with .ovpn file see pic 2 screenshot 2019-01-22 at 3 08 22 pm

ms-tii avatar Jan 22 '19 09:01 ms-tii

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

iambenmitchell avatar Jan 22 '19 12:01 iambenmitchell

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

ms-tii avatar Jan 23 '19 05:01 ms-tii

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

iambenmitchell avatar Jan 23 '19 08:01 iambenmitchell

I don’t know why the link didn’t paste: https://itunes.apple.com/gb/app/openvpn-connect/id590379981?mt=8

iambenmitchell avatar Jan 23 '19 08:01 iambenmitchell

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)?

ms-tii avatar Jan 29 '19 06:01 ms-tii

Try Reachability.swift

shahidge4 avatar Jan 29 '19 13:01 shahidge4

Try Reachability.swift

It works only in minimised or in running state. Not in terminated(killed) app.

ms-tii avatar Feb 05 '19 06:02 ms-tii