iPhone connection fails
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
iPhone connection fails
Trying this again. Works with Mac and Windows clients. Will NOT work with iOS: VPN Connection fails.
If I do not enter a password on the iPhone, a dialog pops up asking for the password, so it IS communicating with the server, but it fails authentication.
Forwarded UDP ports: 139, 443, 500, 4500
If I do not enter a password on the iPhone, a dialog pops up asking for the password, so it IS communicating with the server, but it fails authentication.
Forwarded UDP ports: 139, 443, 500, 4500
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 2264
- Joined: Sat Mar 09, 2013 5:37 am
Re: iPhone connection fails
If you open UDP/139, there is a high risk of being attacked, so close it immediately.
People all over the world can see your file share.
UDP / 443 is also not used, so let's close it.
It seems that the authentication settings are incorrect.
If you don't show me your settings, I won't know the cause.
People all over the world can see your file share.
UDP / 443 is also not used, so let's close it.
It seems that the authentication settings are incorrect.
If you don't show me your settings, I won't know the cause.
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
Thank you. I have closed those ports.
Here are some screen shots. iPhone is using L2TP. I have tried different encryption settings, none have worked with iOS. All work just fine with the desktops.
Here are some screen shots. iPhone is using L2TP. I have tried different encryption settings, none have worked with iOS. All work just fine with the desktops.
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 2264
- Joined: Sat Mar 09, 2013 5:37 am
Re: iPhone connection fails
Since the problem occurs only on the iPhone, I think it is a setting problem on the iPhone side.
Is there a setting screen on the iPhone side?
Is there a setting screen on the iPhone side?
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
Here's the screen. There's not much to it.
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 2264
- Joined: Sat Mar 09, 2013 5:37 am
Re: iPhone connection fails
The secret must always be specified.
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
Both Password and Secret are filled in. Screen capture automatically blanks it out for security.
-
- Site Admin
- Posts: 2264
- Joined: Sat Mar 09, 2013 5:37 am
Re: iPhone connection fails
Is there any message recorded in the server log of the VPN server when the connection fails?
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
I just now attempted to connect with the iPhone, which failed as before. The log recorded this:
2021-01-19,19:58:26.131,SID-LOCALBRIDGE-1,-,784561C36469,FFFFFFFFFFFF,0x0800,364,DHCPv4,Request,0.0.0.0,bootpc(68),255.255.255.255,bootps(67),-,-,TransactionId=1143420210 ClientIP=0.0.0.0 YourIP=0.0.0.0 ServerIP=0.0.0.0 RelayIP=0.0.0.0,-,-,-
2021-01-19,19:58:26.131,SID-LOCALBRIDGE-1,-,784561C36469,FFFFFFFFFFFF,0x0800,364,DHCPv4,Request,0.0.0.0,bootpc(68),255.255.255.255,bootps(67),-,-,TransactionId=1143420210 ClientIP=0.0.0.0 YourIP=0.0.0.0 ServerIP=0.0.0.0 RelayIP=0.0.0.0,-,-,-
-
- Site Admin
- Posts: 2264
- Joined: Sat Mar 09, 2013 5:37 am
Re: iPhone connection fails
It seems to be part of the packet log.
There may be a record of incoming VPN connections in the server log.
There may be a record of incoming VPN connections in the server log.
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
I’ll check into it tomorrow and post it then. Thanks for your help.
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
I just attempted to connect from the iPhone again. It failed, as usual.
But there was nothing at all generated in the server log.
But there was nothing at all generated in the server log.
-
- Site Admin
- Posts: 2264
- Joined: Sat Mar 09, 2013 5:37 am
Re: iPhone connection fails
Does your iPhone use the same network environment as other clients that successfully connect?
Your ISP can block IPsec, so please try using WiFi to match the network conditions with other clients.
Your ISP can block IPsec, so please try using WiFi to match the network conditions with other clients.
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
Yes. Same network and router as my desktop that’s working just fine. I’ve tried it using cellular, too.
-
- Site Admin
- Posts: 2264
- Joined: Sat Mar 09, 2013 5:37 am
Re: iPhone connection fails
Are the iPhone and VPN Server on different networks?
If they are on the same, you may be in a hairpin NAT state.
It is also possible that there is a problem with the DNS settings.
Can you access the VPN Server from your iPhone browser?
If they are on the same, you may be in a hairpin NAT state.
It is also possible that there is a problem with the DNS settings.
Can you access the VPN Server from your iPhone browser?
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
I am connecting to the office where the server is, from my home desktop and iPhone. So, no, they are not in the same network.
I can connect using RemotePC and other software. It is not a DNS issue.
I can connect using RemotePC and other software. It is not a DNS issue.
Last edited by LambdaEnt on Thu Jan 21, 2021 9:34 am, edited 1 time in total.
-
- Posts: 28
- Joined: Tue Jul 07, 2020 7:15 pm
Re: iPhone connection fails
Well, I just found the answer. iPhone does not like some non-alphanumeric characters, in this case a " (quote) in the Secret key. Changed it to a different character and voila!
-
- Posts: 1
- Joined: Sun Apr 24, 2022 6:40 pm
Re: iPhone connection fails
One more thing to look out for!
The username must be lowercase, otherwise it will not work from iOS!
OpenVPN version v3.2.3 (3760)
IOS version: 14.6
The username must be lowercase, otherwise it will not work from iOS!
OpenVPN version v3.2.3 (3760)
IOS version: 14.6