Establishing OpenVPN connection on server kills access through its public IP

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

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

Post Reply
Digika
OpenVpn Newbie
Posts: 2
Joined: Thu Nov 21, 2019 10:28 am

Establishing OpenVPN connection on server kills access through its public IP

Post by Digika » Thu Nov 21, 2019 10:29 am

0


I have the following setup:

[USER] ---> [VPS server with public IP on eth0] ----> [some random VPN]

ifconfig: https://justpaste.it/73dhw

VPS server runs SOCKS proxy and I can connect to it and use it fine. I want to connect the server to VPN so all the traffic goes through VPN and not directly from the server. Problem is, the moment I run OPVN client and it establishes connection I lose access to my server via its public IP (to which SSHD and socks server are bound). Now, my knowledge of networking and routing is incredibly scarce, but I'm assuming this happens because OpenVPN rises its own virtual network interface and makes it a default one.

What are my options here? How can I still access SSH and/or SOCKS 80 port while server is connected to VPN? I assume there us some cross-interface routing magic?

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Establishing OpenVPN connection on server kills access through its public IP

Post by TinCanTech » Thu Nov 21, 2019 4:01 pm

Probably something to do with your configuration ...

Post Reply