Hi guys I hope you can help, I've been spending weeks looking at this and pulling my hair out it seems to be fairly common issue with nobody really saying what they did to fix it.
The issue I'm having is with clients that are inside the network behind the MX hosting the Anyconnect VPN Server. They are getting a warning about being behind a captive portal.
I have disabled captive portal detection and disabled it being user configurable.
<DisableCaptivePortalDetection UserControllable="true">true</DisableCaptivePortalDetection>
using the VPN profile editor tool and configured trusted network with DNS suffix and DNS servers or either (multiple profiles to test effect).
I can see in the DART logs the following:-
VPN STATE : Disconnected
Network State: Web Authentication Required
Network control state: Network Access: Available
Network Type: Trusted.
I'm pushing the Anyconnect client with Intune, using a powershell script to install the MSI's and copy the Profile.xml to C:\ProgramData\Cisco\Cisco Secure Client\VPN\Profile.
This is only installed on Windows 11 machines and we are using the 5.1.0.136 Anyconnect client.
After Installation I can see that the option to toggle captive portal detection is still user configurable and is not ticked. If I tick it manually it disables and shows the Trusted Network symbol in the GUI.
So it seems I am missing an XML configuration or registry setting somewhere.
I have edited the following XML files that have the captive portal option.
C:\ProgramData\Cisco\Cisco Secure Client\VPN\Profile\Profile.xml
C:\ProgramData\Cisco\Cisco Secure Client\VPN\preferences_global.xml
C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile\preferences.xml
C:\Users\%username%\AppData\Local\Cisco\Cisco Secure Client\VPN\preferences.xml
If I set the files to disable captive portal true then the tick box does change in the GUI but the client doesn't do it.
Meraki support so far have been unable to help and have directed me to Cisco for support but not sure how I go about doing that when all my licensing is with Meraki for support.
Thanks for your help.
David