If you've recently upgraded to Ubuntu 24.04 and are experiencing issues with OpenVPN connections failing silently after importing a .ovpn
profile, you're not alone. This is a common problem that many users have encountered. Fortunately, it can be resolved using one of two methods: editing the .ovpn
file directly or adjusting settings through the GUI.
Method 1: Edit the .ovpn
Profile
Step 1: Import the .ovpn
Profile
Start by importing the .ovpn
profile into Ubuntu's Network Settings:
- Open Settings on your Ubuntu system.
- Navigate to the Network tab.
- Under the VPN section, click the + button.
- Select Import from file and choose your
.ovpn
file.
Once imported, try connecting to the VPN. If the connection fails silently, proceed with the following steps.
Step 2: Edit the .ovpn
File
- Open the
.ovpn
file you imported using a text editor. - Locate the line that says:
cipher AES-256-CBC
- Comment out this line by adding a
#
at the beginning:
#cipher AES-256-CBC
- Save the file.
Step 3: Re-import the Edited Profile
- Go back to Network Settings and remove the existing VPN profile.
- Click the + button again and re-import the edited
.ovpn
file.
Step 4: Reconnect to the VPN
Try reconnecting to the VPN. The connection should now work without any issues.
Method 2: Change Cipher Settings via GUI
If you prefer not to edit the .ovpn
file directly, you can resolve the issue through the Network Settings GUI.
Step 1: Import the .ovpn
Profile
Follow the same steps as in Method 1 to import your .ovpn
profile:
- Open Settings and go to the Network section.
- Click the + button under the VPN section and select Import from file.
- Choose your
.ovpn
profile.
Step 2: Open VPN Profile Settings
- After importing, click the gear icon next to the VPN profile to open its settings.
Step 3: Navigate to Advanced Settings
- In the Identity tab, scroll down to the Advanced section.
- Click on Advanced Options to open the advanced properties modal.
Step 4: Change the Cipher
- Under the Security section, locate the dropdown for Cipher.
- Change the Cipher from
AES-256-CBC
to Default. - Save the changes and close the modal.
Step 5: Reconnect to the VPN
After saving the changes, try reconnecting to the VPN. The connection should now work properly.
I hope this helps :)
Top comments (0)