First Buy or Renewal
Were we able to help you with this tutorial? Then consider us for the next Renewal. 😎
We sell licenses for all Sophos Firewalls worldwide!
Add Sophos SSL VPN client to startup with automatic login
In this article, we’ll show you how to configure the Sophos SSL VPN Client to start immediately after the Windows login and connect automatically to your VPN.
Info: For this guide, we assume that you have already installed the Sophos SSL VPN client on your Windows system. Otherwise the following two instructions can help you:
1. Remove the SSL VPN Client for Windows from startup
When you install the SSL VPN Client, a shortcut is automatically added to the startup. In the process of this manual, however, we now create our own shortcut and can first of all deactivate the existing one.
- Open the task manager and switch to the tab ‘Startup’.
- Find the SSL VPN Client for Windows shortcut and disable it with the right mouse button.
Note: In Windows 10, you can find the startup settings in the task manager. For older Windows versions there is an startup folder.
2. Composing Paths with Parameters
For our own startup shortcut, which we will create later in the registry, we first build a command line with a few parameters. The command line is structured as following:
"[Path-to-openvpn-gui.exe" --config_dir "[Path-to-Open-VPN-config-file]" --connect [Name-of-the-Open-VPN-config-file].ovpn
To create this command line, you need two paths and the name of your Open VPN Config file:
- Path to openvpn-gui-exe
- Für 32 bit Windows - “C:\Program Files\Sophos\Sophos SSL VPN Client\bin\openvpn-gui.exe”
- Für 64 bit Windows - “C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin\openvpn-gui.exe”
- Path to Open VPN config file
- Für 32 bit Windows - “C:\Program Files\Sophos\Sophos SSL VPN Client\config"
- Für 64 bit Windows - “C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\config"
- Name of the Open VPN config file
In our example, our whole command line looks like this:
"C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin\openvpn-gui.exe" --config_dir "C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\config\" --connect email@example.com
3. Create own startup shortcut
If you have created your own command line, you can now define a new startup entry in the registry.
- Open the Registry Editor and go to the following path:
- Right-click in the right column and select
- Give the new entry a name (e. g. sophos-ssl-vpn).
- Open the file with a double-click and paste your compound command line into the field “Value”.
- Click on
OKand close the Registry Editor.
5. Login without entering a password
To avoid having to enter the VPN password every time you reboot your computer, follow these steps:
- Start the text editor as administrator and open the file “OpenVPNconfigFile”.
- Now find the line “auth-user-pass” in the file and change it to “auth-user-pass password. txt”.
- Save your changes and create a new text file named “password. txt” in the same folder where the OpenVPNconfigFile is located.
Open the file “password. txt” and just insert your username and password. Note that you must write each entry on a separate line. That will look like this, for example:
- Save “password. txt” and restart your computer.
Important: Make sure that the “password. txt” file is really in the same folder as your Open VPN config file. In addition, this method saves your password in plain text. If you are uncomfortable with this, you will have to avoid the comfort of automatic registration.