| Linode Forum https://forum.linode.com/ |
|
| openvpn server connection looses access to linode https://forum.linode.com/viewtopic.php?f=19&t=11276 |
Page 1 of 1 |
| Author: | flaviomoringa [ Tue Sep 02, 2014 5:35 am ] |
| Post subject: | 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 |
|
| Author: | Main Street James [ Tue Sep 02, 2014 4:32 pm ] |
| Post subject: | Re: openvpn server connection looses access to linode |
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. |
|
| Author: | flaviomoringa [ Wed Sep 03, 2014 4:01 am ] |
| Post subject: | Re: openvpn server connection looses access to linode |
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. |
|
| Author: | flaviomoringa [ Wed Sep 03, 2014 6:08 am ] |
| Post subject: | Re: openvpn server connection looses access to linode |
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 |
|
| Author: | obs [ Wed Sep 03, 2014 6:20 am ] |
| Post subject: | Re: openvpn server connection looses access to linode |
Your route is probably changing, what's the output of Code: route -nafter you start openvpn (you can connect via lish). If it's changing you can add a new route using an openvpn up script. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|