[Solved] OpenVPN: Don't redirect everything through tunnel
Posted: Thu Sep 05, 2019 3:52 pm
Hello there
I'm owning a Server (Debian 10) which runs an Openvpn server on it. I mainly installed the VPN for accessing the samba shares (hosted on the same machine) from my client (Linux Mint 19.1 Cinnamon) over the internet.
I added the VPN Client details using the Network manager GUI:
I can connect to the VPN & also connect to the samba share, but I have a problem.
When connected to the VPN, I can't connect to the internet any more (Think I didn't set up any redirections on the server), but I don't want my whole traffic to go through the tunnel anyway, I only need it to connect to the samba shares on 192.168.x.x (BTW the subnet differs from what I have locally, so it doesn't confuses). Any other traffic from my machine should go the direct way(Use normal route+dns etc). I know I could probably do it changing some routes (on the client) after connecting to the VPN.
If possible, I would like to configure this on server side, so I could potentially add more clients for using the samba shares without routing further traffic over the VPN, without to configure individual routes for each client.
Is that possible, and if so, how?
Regards,
XXXBold
I'm owning a Server (Debian 10) which runs an Openvpn server on it. I mainly installed the VPN for accessing the samba shares (hosted on the same machine) from my client (Linux Mint 19.1 Cinnamon) over the internet.
I added the VPN Client details using the Network manager GUI:
I can connect to the VPN & also connect to the samba share, but I have a problem.
When connected to the VPN, I can't connect to the internet any more (Think I didn't set up any redirections on the server), but I don't want my whole traffic to go through the tunnel anyway, I only need it to connect to the samba shares on 192.168.x.x (BTW the subnet differs from what I have locally, so it doesn't confuses). Any other traffic from my machine should go the direct way(Use normal route+dns etc). I know I could probably do it changing some routes (on the client) after connecting to the VPN.
If possible, I would like to configure this on server side, so I could potentially add more clients for using the samba shares without routing further traffic over the VPN, without to configure individual routes for each client.
Is that possible, and if so, how?
Regards,
XXXBold