openvpn server connection looses access to linode
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
Try eliminating the possibility of a port 22 conflict.
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.
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