Configuring autoconnect with username and password authentication
To configure autoconnect with username and password authentication:
- Configure EMS:
- Go to Endpoint Profiles > Manage Profiles.
- Select the profile with the VPN tunnel that you want to configure autoconnect for.
- On the VPN tab, under General, enable Auto Connect.
- From the dropdown list, select the desired VPN tunnel.
- Edit the tunnel:
- In Advanced Settings, enable Show "Remember Password" Option.
- Enable Show "Auto Connection" Option.
- Click Save Tunnel.
- Configure FortiOS. Do one of the following:
- Do the following for an SSL VPN tunnel:
- Go to VPN > SSL-VPN Portals.
- For the desired portal, enable Allow client to connect automatically. This automatically enables Allow client to save password.
- Click OK.
- Do the following for an IPsec VPN tunnel:
- If you are using an existing tunnel, you can only configure autoconnect using the CLI. Run the following commands:
config vpn ipsec phase1-interface
edit “vpn_tunnel_name”
set save-password enable
set client-auto-negotiate enable
next
end
- If you are creating a new tunnel, go to VPN > IPsec Wizard. Configure the tunnel as desired. In Client Options, enable Save Password and Auto Connect.
- If you are using an existing tunnel, you can only configure autoconnect using the CLI. Run the following commands:
- Do the following for an SSL VPN tunnel:
- In FortiClient, go to the Remote Access tab. The Save Password and Auto Connect checkboxes display. If they do not display, you may have to connect manually to VPN once. Upon disconnect, the settings enabled in step 2 appear below the Password field.