S
S
SachaDerr2014-10-21 17:48:24
SSH
SachaDerr, 2014-10-21 17:48:24

How to work with SSH and OpenVPN client at the same time?

Good afternoon,
When implementing the simplest connection scheme, I have problems.
I just wanted to connect my Wirth. server followed by a VPN server.
de9d5963ced54dfdb4254c6ac0ed9ded.JPG
My openvpn client config is this:

client
dev tun0
proto tcp
remote 82.***.***.44
port 443
resolv-retry infinite
nobind
persist-key
persist-tun
persist-remote-ip
ca vpsserver.crt
tls-remote 82.***.***.44
auth-user-pass vpsserverpass.auth
auth-nocache
comp-lzo
verb 3
auth SHA256
cipher AES-256-CBC
keysize 256
tls-cipher DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA

I don't see any errors in the openvpn logs... As soon as I start OpenVPN with this config, service openvpn restart, I get disconnected from the SSH server.. I don't understand why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Power, 2014-10-21
@Power

Apparently, the default gateway changes on the server with the vpn client, after that all traffic is wrapped in a vpn tunnel, and somewhere between the vpn server and you there is a NAT (most likely on the vpn server itself), which is in outgoing packets from your server, changes the source IP address, and your ssh client no longer sees responses from your server (packets seem to come from another source), which causes the connection to hang.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question