I'm fairly new to OpenVPN and could use some guidance. I've imported an OpenVPN configuration from a paid service provider (CyberGhost) and am trying to enable the VPN specifically for a particular hotspot on my Ubuntu system. Although I've selected the hotspot option to connect to this VPN, when I run nmcli connection show, I notice it's connecting to the Ethernet connection instead. Additionally, all other hotspot connections seem to be using the VPN's new IP. How can I adjust this to ensure that the OpenVPN connection only connects to the main hotspot and not all?
Issues with OpenVpn
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 1
- Joined: Sun Feb 18, 2024 8:03 pm
Issues with OpenVpn
Hello,
I'm fairly new to OpenVPN and could use some guidance. I've imported an OpenVPN configuration from a paid service provider (CyberGhost) and am trying to enable the VPN specifically for a particular hotspot on my Ubuntu system. Although I've selected the hotspot option to connect to this VPN, when I run nmcli connection show, I notice it's connecting to the Ethernet connection instead. Additionally, all other hotspot connections seem to be using the VPN's new IP. How can I adjust this to ensure that the OpenVPN connection only connects to the main hotspot and not all?

I'm fairly new to OpenVPN and could use some guidance. I've imported an OpenVPN configuration from a paid service provider (CyberGhost) and am trying to enable the VPN specifically for a particular hotspot on my Ubuntu system. Although I've selected the hotspot option to connect to this VPN, when I run nmcli connection show, I notice it's connecting to the Ethernet connection instead. Additionally, all other hotspot connections seem to be using the VPN's new IP. How can I adjust this to ensure that the OpenVPN connection only connects to the main hotspot and not all?
-
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Dec 02, 2020 4:11 pm
Re: Issues with OpenVpn
Try creating a separate profile in nmcli for that specific hotspot and linking the VPN to it. That should keep other connections unaffected.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Wed Jan 08, 2025 11:47 am
Re: Issues with OpenVpn
To use OpenVPN with a specific hotspot in Ubuntu, you can use Python's subprocess module to execute nmcli commands. First, identify the hotspot's interface using nmcli device show. Then, use nmcli connection modify to change the OpenVPN connection's interface to the hotspot. Finally, activate the modified connection using nmcli connection up. Remember to restart NetworkManager after modifying the connection.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jan 23, 2025 6:22 am
Re: Issues with OpenVpn
To use your CyberGhost VPN only with a specific hotspot on your Ubuntu system, edit the .ovpn file to add ifconfig-pool-persist and create a new VPN connection using nmcli. Specify the hotspot interface name in the connection settings. Verify the connection and troubleshoot any issues with firewall rules and routing. receiptifys