Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 25, 2011 9:26 am 
Offline
Newbie

Joined: Wed May 25, 2011 9:20 am
Posts: 2
Hey gang,

I'm not exactly a newbie, but I'm not a Linux ninja either. I have a problem and I need professional help.

I connect to my Linode remotely using NX and I run a Gnome desktop. While logged into my Linode I want to connect to a VPN. After much trial and error and fun times with Network Manager, I was finally able to get nm-applet running as a regular user, and I can see my VPN connection within the applet. The good news is that when I try to connect, it works. The bad news is that my NX connection, and any SSH connections, are closed immediately.

I used the Ajax console and used lynx on whatismyip dot com and verified that I am indeed getting a new IP address from the VPN server. My question is simple: is there any way to get a VPN connection (either OpenVPN or PPTP) from within my NX session?

I'm running the latest and greatest of everything, including Ubuntu.


Top
   
 Post subject:
PostPosted: Wed May 25, 2011 10:31 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Most likely, traffic between your Linode and you is taking one path (outside the VPN) before the VPN is brought up, but once the VPN is up, it provides a better route to get to you. You can verify this with "ip route" (or "ip -6 route" if you're using IPv6) and "ip route get 192.0.2.1" (substituting the IP address of the other end -- that is, where you are).

Is the VPN between your Linode and where you are, or is it to somewhere else?

There are a couple solutions:

1) Insert a more specific route to get to your IP address, without going through the VPN.

2) Configure things to not route all Internet-destined traffic through the VPN.

3) Set up the VPN the normal command-line way, and NX in through the VPN address.

Interestingly, this is more a limitation of IP routing than it is a Linux-specific problem; your kernel isn't running IOS, but it is a surprisingly capable router. So, be open to solutions from the networking side of the fence :-) -rt

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Wed May 25, 2011 11:35 am 
Offline
Newbie

Joined: Wed May 25, 2011 9:20 am
Posts: 2
Thanks for the response!

The VPN I am trying to access is somewhere else, either in the U.K. or in D.C.. It's outside of my route to the Linode.

Regarding your suggestion 3 below, are you saying that I would log into the VPN from the command line and then NX into the new IP of the system? That seems doable, except I've never done VPN "the normal command line way".

I'll research that and see what I can find. Thanks!


Top
   
 Post subject:
PostPosted: Thu May 26, 2011 8:15 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
This article goes through the command-line method of getting an OpenVPN server set up; the server and client configs aren't that different, except the client doesn't have to deal with the certificate authority stuff.

I do use OpenVPN from my netbook to my Linode, but I haven't yet tried the NetworkManager method. I have a couple other endpoints that don't use NetworkManager, so it was pretty much just copy/paste for that.

_________________
Code:
/* TODO: need to add signature to posts */


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


Who is online

Users browsing this forum: No registered users and 0 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