Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to fix iOS 14 issue #475

Open
totoventi opened this issue Jun 2, 2021 · 11 comments
Open

Unable to fix iOS 14 issue #475

totoventi opened this issue Jun 2, 2021 · 11 comments

Comments

@totoventi
Copy link

Since the arrival of ios 14 I have no longer been able to use the vpn with devices that use this system.
I don't know how to intervene in the configurations to make Openswan compatible even with Apple devices using BigSur or iOS> 14.

I use Openswan 2.6.37 on Raspberry (obligatory, because with the higher versions there are other problems).

On Windows it worked.

How can I intervene?

Follow an example of what i get with an iOS device and a MacOS device.
ios
macos

@paulwouters
Copy link

are you using certificates?

It looks like the ios device does not authenticate the vpn server. Usually that is because it is missing something on the certifiate of the vpn server, like a SAN entry for the FQDN.

If you think the certificate is properly generated, then you can try libreswan to see if if is just old behaviour of openswan versus the much more modern libreswan

@totoventi
Copy link
Author

No certificate, I use L2TP with secret.

Everything works smoothly on Windows and Apple systems <iOS 14, the problem only occurs on iOS> 14

@letoams
Copy link
Contributor

letoams commented Jun 2, 2021 via email

@totoventi
Copy link
Author

I cannot find any solution to that effect.
The problem has been documented for months and it should be this:

https://support.apple.com/en-us/HT211840

the problem is that in Openswan I can't change the configuration so that it doesn't happen... I have tried several strings but evidently on Openswan they do not go, because at the reboot of the service I always get syntax errors with any of them.

@letoams
Copy link
Contributor

letoams commented Jun 2, 2021 via email

@totoventi
Copy link
Author

Yes, I have tried several times with sha2=truncbug=no but it is one of the strings that gives me a syntax error.
At the moment I can't migrate to Libreswan, I don't need to use Android but only Windows / MacOS and iOS ... how can I correct my configuration (which I attach) to change in SHA512?
Immagine 2021-06-02 153543

@letoams
Copy link
Contributor

letoams commented Jun 2, 2021 via email

@letoams
Copy link
Contributor

letoams commented Jun 2, 2021 via email

@totoventi
Copy link
Author

Try using an underscore, sha2_truncbug=no Sent using a virtual keyboard on a phone

unexpected string...

@totoventi
Copy link
Author

You need: esp=aes256-sha2_512 Sent using a virtual keyboard on a phone

nothing, i have this:

Jun 02 16:54:25 raspberrypi pluto[1729]: "L2TP-PSK-NAT"[2] 151.37.217.182 #2: Dead Peer Detection (RFC 3706): enabled
Jun 02 16:54:25 raspberrypi pluto[1729]: "L2TP-PSK-NAT"[2] 151.37.217.182 #2: transition from state STATE_QUICK_R1 to state STATE_QUICK_R2
Jun 02 16:54:25 raspberrypi pluto[1729]: "L2TP-PSK-NAT"[2] 151.37.217.182 #2: STATE_QUICK_R2: IPsec SA established transport mode {ESP/NAT=>0x03beb9b2 <0xece4216d xfrm=AES_256-HMAC_SHA2_256 NATOA=none NATD=151.37.217.182:36047 DPD=enable
Jun 02 16:54:45 raspberrypi pluto[1729]: "L2TP-PSK-NAT"[2] 151.37.217.182 #1: received Delete SA(0x03beb9b2) payload: deleting IPSEC State #2
Jun 02 16:54:45 raspberrypi pluto[1729]: "L2TP-PSK-NAT"[2] 151.37.217.182 #1: received and ignored informational message
Jun 02 16:54:45 raspberrypi pluto[1729]: "L2TP-PSK-NAT"[2] 151.37.217.182 #1: received Delete SA payload: deleting ISAKMP State #1
Jun 02 16:54:45 raspberrypi pluto[1729]: "L2TP-PSK-NAT"[2] 151.37.217.182: deleting connection "L2TP-PSK-NAT" instance with peer 151.37.217.182 {isakmp=#0/ipsec=#0}
Jun 02 16:54:45 raspberrypi pluto[1729]: packet from 151.37.217.182:36047: received and ignored informational message
Jun 02 16:54:45 raspberrypi pluto[1729]: ERROR: asynchronous network error report on eth0 (sport=4500) for message to 151.37.217.182 port 36047, complainant 151.37.217.182: Connection refused [errno 111, origin ICMP type 3 code 3 (not au
Jun 02 16:54:45 raspberrypi pluto[1729]: ERROR: asynchronous network error report on eth0 (sport=4500) for message to 151.37.217.182 port 36047, complainant 151.37.217.182: Connection refused [errno 111, origin ICMP type 3 code 3 (not au
lines 1-28/28 (END)

@letoams
Copy link
Contributor

letoams commented Jun 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants