-
Notifications
You must be signed in to change notification settings - Fork 759
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
IPsec Mobile Client: Split DNS: Fixing MacOS and iOS with IKEv2 #3325
Comments
|
@AdSchellevis Excellent, the iOS and MacOS IKEv2 clients are working properly with your patch. Question: In https://wiki.strongswan.org/projects/strongswan/wiki/AttrPlugin is stated, that parameter 28675 is a "space-separated list of domain names". This is for Cisco clients using the Unity extension. I do not have Cisco anywhere, but maybe somebody like @mimugmail could confirm that 28675 even works of it is comma separated. |
|
@stumbaumr thanks for confirming, I don't have Cisco stuff either at our office, so if @mimugmail has the opportunity to test that would be nice, otherwise we will have to wait until someone posts a bug if it doesn't work (I think this has been in for ages, so I would suspect it works, but you never know) |
|
@stumbaumr you mean the old Cisco VPN Client? It's not compatible anymore to W10 |
|
Is the Cisco AnyConnect Client using the Unity Extensions? |
|
I never tried IKEv2 with AnyConnect against OPNsense .. I'm only using OPNsense to connect to my company ASA via OpenConnect plugin. |
(cherry picked from commit 5f79544)
|
@stumbaumr Does this really work for you under macOS 11 Big Sur? For me internal FQDN are never resolved and when I check with |
|
Confirming I can reproduce this as well. |
Describe the bug
We have internal DNS servers in our network providing private DNS zones. So for example dc1.contoso.com is provided by DNS server 10.20.30.1. MacOS and iOS IPsec Mobile Client users should be configured, so that they use for domain names like host01.dc1.contoso.com the DNS server 10.20.30.1. For www.google.com it should still be the DNS server of the lokal network of the client. But somehow Windows 10 Clients just work, but Apple Devices fail resolving internal DNS names.
Cisco used to provide a UNITY attribut extension for that functionality - this is available for Cisco Anywhere clients. This is configurable in OPNsense. But not for plain IKEv2 clients.
According to https://wiki.strongswan.org/projects/strongswan/wiki/AppleClients there is a new attribute INTERNAL_DNS_DOMAIN (IANA number 25). Newer MacOS and iOS clients use that value.
So if you configure 25 same as 28675 (comma separated list of split domain names) split DNS just works.
e.g.
So by adding attr 25 you would fix split DNS for a lot of standard IKEv2 clients.
To Reproduce
Create VPN -> IPsec -> Mobile Client. Configure Split DNS.
Connect using iOS or MacOS device. See if internal DNS names get resolved. No? Add 25 attribute in your config. Check again. :-)
Expected behavior
IKEv2 Clients should just work out of the box these days...
Environment
Software version used and hardware type if relevant.
OPNsense 19.1.4 (amd64, OpenSSL).
The text was updated successfully, but these errors were encountered: