05-16-2020 11:27 AM
Hello,
I currently have an FTD 2110 managed by FMC. I'm looking for a way to have AnyConnect startup and connect when user signs in.
I know Management Tunnel is not supported on FTD as of yet, so as an alternative, I would like to have AnyConnect run without user interaction by possibly using the following Profile Editor features:
- Auto Connect On Start (which will start-up upon login)
- Trusted/Untrusted Network (detect if on enterprise network which will not initiate tunnel or NOT on enterprise network, which will initiate tunnel)
Again, I just want to make sure users are forced to use VPN when not at work and not forced when at work.
Right now, I have the two features enabled along with Certificate Authentication, but I get "Certificate Validation Failure"
05-16-2020 01:59 PM - edited 05-16-2020 02:01 PM
Hi
First of all, the only way to have a VPN coming up without any user interaction will be using certificate for authentication. However, only certificate machine will work if you want to have the VPN UP and running before a user logs in on Windows.
For that purpose, you will need:
Example:
<AutomaticCertSelection UserControllable="false">true</AutomaticCertSelection>
<CertificateMatch> <MatchOnlyCertsWithKU>false</MatchOnlyCertsWithKU> <DistinguishedName> <DistinguishedNameDefinition Operator="Equal" Wildcard="Enabled" MatchCase="Disabled"> <Name>ISSUER-CN</Name> <Pattern>MyPKIName</Pattern> </DistinguishedNameDefinition> </DistinguishedName> </CertificateMatch>
From above screen, replace MyPKIName on Pattern tag with your internal PKI issuer-cn
On FTD, there's nothing to take care except the certificate and VPN connection. Everything is done on vpn profile and user laptop.
The following tag will force a disconnect when your laptop goes into sleep mode and avoid any user error message.
<AutoReconnect UserControllable="false">true <AutoReconnectBehavior UserControllable="false">DisconnectOnSuspend</AutoReconnectBehavior> </AutoReconnect>
Don't do always vpn because it will have an impact for users that maybe won't connect to VPN for x or y reason.
For automatic VPN, the configuration will be (an example):
<AutomaticVPNPolicy>true <TrustedDNSDomains>test.com</TrustedDNSDomains> <TrustedDNSServers>10.10.10.10,10.10.10.11</TrustedDNSServers> <TrustedNetworkPolicy>Disconnect</TrustedNetworkPolicy> <UntrustedNetworkPolicy>Connect</UntrustedNetworkPolicy> <AlwaysOn>false </AlwaysOn> </AutomaticVPNPolicy>
In the above config, replace test.com by your internal DNS domain and replace IP addresses from TrustedDNSServers by your DNS servers IP.
Then, you need to install vpngina module (Start Before Logon module).
Once, you've done this, user must click on Network Sign-In to connect on VPN. You have 2 choices to force anyconnect to automatically connect when on Windows PLAP screen:
Either of these options must run a bash script using vpncli.exe command followed with your profile name.
When you do this, VPN will come up automatically but when user logs in, you'll be disconnected and reconnected which leads to issues if you have any script, GPO,....
To avoid this, add the following tag in your XML file:
<RetainVpnOnLogoff>true <UserEnforcement>AnyUser</UserEnforcement> </RetainVpnOnLogoff>
So, after this, your xml profile is built and you just need to upload it to your FTD and attach it to your VPN connection.
In terms of user, you'll need to push this xml and install the SBL module using any methods like SCCM or whatever.
Hope this helps.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide