Configuring VPN to automatically connect before logon
To configure VPN to automatically connect before logon:
- In EMS, go to Endpoint Profiles > Remote Access.
- Clone the Machine-VPN profile.
- Name the new profile Machine-VPN-with-auto-pre-logon.
- Click Save.
- In XML view, click Edit.
- Locate the machine-cert-vpn connection.
- Modify the name to machine-cert-vpn-auto.
- Locate the
<certificate/>
element, and make the following modifications:<certificate> <common_name> <match_type>wildcard</match_type> <pattern>WIN10*</pattern> </common_name> <issuer> <match_type>simple</match_type> <pattern>fortiad-WIN-EMS-CA</pattern> </issuer> </certificate>
The
common_name
element uses wildcard matching to identify a machine certificate with CN matching WIN10*. Theissuer
element matches a machine certificate that the fortiad-WIN-EMS-CA certificate authority issued. Replace these with the appropriate patterns for your organization. -
Under global VPN options, locate the
<on_os_start_connect/>
element and modify as follows:<on_os_start_connect>machine-cert-vpn-auto</on_os_start_connect>
To apply the Remote Access profile to an endpoint policy:
- From Endpoint Policy & Components > Manage Policies, select the policy that is being applied to your endpoint, and click Edit.
- Under Profile, change the VPN selection to Machine-VPN-with-auto-pre-logon.
- Click Save.