Issues with OpenVpn

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
owodeone
OpenVpn Newbie
Posts: 1
Joined: Sun Feb 18, 2024 8:03 pm

Issues with OpenVpn

Post by owodeone » Sun Feb 18, 2024 8:28 pm

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

bert269
OpenVpn Newbie
Posts: 5
Joined: Wed Dec 02, 2020 4:11 pm

Re: Issues with OpenVpn

Post by bert269 » Wed Oct 30, 2024 4:37 pm

Try creating a separate profile in nmcli for that specific hotspot and linking the VPN to it. That should keep other connections unaffected.

allan735
OpenVpn Newbie
Posts: 3
Joined: Wed Jan 08, 2025 11:47 am

Re: Issues with OpenVpn

Post by allan735 » Wed Jan 08, 2025 11:49 am

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.

michs23
OpenVpn Newbie
Posts: 2
Joined: Thu Jan 23, 2025 6:22 am

Re: Issues with OpenVpn

Post by michs23 » Fri Jan 24, 2025 3:57 am

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

Post Reply