openvpn server connection looses access to linode

I guys,

I'm trying to connect a linode machine to a vpn client using the openvpn cli.

But when i connect the vpn server with:

sudo openvpn –config myvpn.ovpn --daemon

I loose the connection to the linode machine… no ssh connection is available… I cannot connect to the machine anymore, and I need to issue a reboot to have control again.

I thought it may be due to the fact that the openvpn server is using port 22, but I tested using a virtualbox machine and all works well there.. so it seems to be a linode issue.

Here's my openvpn config:

OpenVPN Client conf

tls-client

client

nobind

dev tun

proto tcp

tun-mtu 1400

remote xxx.xxx.xxx.xxx 22

pkcs12 mycert.p12

cipher BF-CBC

verb 3

ns-cert-type server

tls-remote remote.openstacklocal

askpass key.txt

Can you guys help me?

Thanks in advance.

Flávio

4 Replies

Have you tried changing the port for the VPN to something other than 22? ssh uses port 22 (unless you changed the port for ssh).

Try eliminating the possibility of a port 22 conflict.

I,

I've added port 222 to the sshd daemon, and now I can connect to the linode machine on port 222 (an maintained the 22 active, should I disable it?).

But even connected through port 222 when i try to activate the openvpn client it hangs… and I can't connect again, either through ports 22 or 222…

I'll ask the administrator of the openvpn server if it's possible to change it to another port… But I'm not in control of the server…

But it's strange that in a non linode machine it works without hanging….

So I'll try to disable por 22 in the sshd configs (leaving only 222 active) and hope the openvpn server admin can change the port.

Thanks for helping.

On the server side I cannot change the port.. it must be 22….

The strange thing is that I completely loose access to the linode machine… not even ping works…

Could it be that the default route is changed when the openvpn clinet starts and that can cause this kind of issues?

Thanks

Your route is probably changing, what's the output of route -n after you start openvpn (you can connect via lish). If it's changing you can add a new route using an openvpn up script.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct