I just setup a VPN server with OpenVPN on a remote machine. It seems to work so far.
I created a client configuration and keys on my Debian+KDE computer and when I start the VPN client through command-line:
sudo openvpn --config ~/client.ovpn
The VPN connects and I can ping VPN devices and Internet:
ping 10.8.x.x #works
ping example.com #works, because not redirected through the VPN
After, I am configuring the VPN client through the “Configure Network connections” by “Add new connection” and then “Import VPN connection”
This connects correctly, and I can ping VPN local devices, but I can’t reach Internet because all traffic attempt to go through the VPN. This is intended as a business VPN to access related servers, it does not accept internet outgoing traffic, and cannot relay unrelated traffic to Internet.
ping 10.8.x.x #Works
ping example.com #Does not work -> trying to go through the VPN
Due to this, I suspect the KDE VPN management to add some redirecting rule. But I could not find how to avoid it.I am looking for some “Use this connection only for resources on its network” or similar configuration.
The client configuration is:
remote <VPN-SERVER-IP> <PORT>
tls-auth ta.key 1
How to avoid the KDE VPN GUI to redirect all internet through the VPN?
My machine is:
Debian Bullseye with KDE Plasma.