OpenVPN client configuration on linux server

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
dirtyharryhh
OpenVpn Newbie
Posts: 3
Joined: Fri May 29, 2020 12:15 pm

OpenVPN client configuration on linux server

Post by dirtyharryhh » Fri May 29, 2020 12:21 pm

Dear all,

I was wondering of you could give me a hand on my problem? The situation can be described like this:

I am running a linux server (debian 10) on which i want to use the recent openvpn client with the fact, that I still need external ssh access to the server (server is in another network at the provider).

Every outgoing traffic from the server should go through the vpn with one or two static IPs i dont want to use the VPN.

Any ideas? Looking forward!

THX and BR
Harry

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7604
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN client configuration on linux server

Post by TinCanTech » Fri May 29, 2020 12:34 pm

To start you on your journey of enlightenment, you will need to read about Policy Based Routing on Linux.

Be warned, you have a long way to go ..

dirtyharryhh
OpenVpn Newbie
Posts: 3
Joined: Fri May 29, 2020 12:15 pm

Re: OpenVPN client configuration on linux server

Post by dirtyharryhh » Fri May 29, 2020 12:40 pm

Thx... the first idea was to use route-nopull and just add a looooot of routes, but this won't be an easy way to go either?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7604
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN client configuration on linux server

Post by TinCanTech » Fri May 29, 2020 12:41 pm

--route-nopull is the fastest way to break your VPN completely ..

dirtyharryhh
OpenVpn Newbie
Posts: 3
Joined: Fri May 29, 2020 12:15 pm

Re: OpenVPN client configuration on linux server

Post by dirtyharryhh » Fri May 29, 2020 5:39 pm

Yeah, u r right. But the other way arround without route-nopull I am not able to connect to the server via ssh anymore.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7604
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN client configuration on linux server

Post by TinCanTech » Fri May 29, 2020 7:38 pm

TinCanTech wrote:
Fri May 29, 2020 12:34 pm
To start you on your journey of enlightenment, you will need to read about Policy Based Routing on Linux.

Be warned, you have a long way to go ..
This is a decent start:
https://community.openvpn.net/openvpn/w ... ting-Linux

Post Reply