Configuring autoconnect with username and password authentication
To configure autoconnect with username and password authentication:
- Configure EMS:
- Go to Endpoint Profiles > Remote Access.
- Edit the profile with the VPN tunnel that you want to configure autoconnect for.
- Under General, from the Auto Connect dropdown list, select the desired VPN tunnel.
- Edit the tunnel:
- In Advanced Settings, enable Show "Remember Password" Option.
- Enable Show "Auto Connect" Option.
- Click Save Tunnel.
- Configure FortiOS:
- 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
- Do the following 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 should display. If they do not display, you may have to connect manually to VPN once. Upon disconnect, the settings enabled in step 2 will appear below the Password field.