Page 1 of 1

Issues with OpenVpn

Posted: Sun Feb 18, 2024 8:28 pm
by owodeone
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?

Image

Re: Issues with OpenVpn

Posted: Wed Oct 30, 2024 4:37 pm
by bert269
Try creating a separate profile in nmcli for that specific hotspot and linking the VPN to it. That should keep other connections unaffected.

Re: Issues with OpenVpn

Posted: Wed Jan 08, 2025 11:49 am
by allan735
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.

Re: Issues with OpenVpn

Posted: Fri Jan 24, 2025 3:57 am
by michs23
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