Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Sep 02, 2014 5:35 am 
Offline
Newbie

Joined: Tue Sep 02, 2014 5:21 am
Posts: 3
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


Top
   
PostPosted: Tue Sep 02, 2014 4:32 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
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.


Top
   
PostPosted: Wed Sep 03, 2014 4:01 am 
Offline
Newbie

Joined: Tue Sep 02, 2014 5:21 am
Posts: 3
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.


Top
   
PostPosted: Wed Sep 03, 2014 6:08 am 
Offline
Newbie

Joined: Tue Sep 02, 2014 5:21 am
Posts: 3
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


Top
   
PostPosted: Wed Sep 03, 2014 6:20 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Your route is probably changing, what's the output of
Code:
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.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group