LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2010, 10:09 AM   #1
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Rep: Reputation: 16
Vpn connected but not being used - how to activate?


I have managed to get vpn set up on my Debian Sid (I think). I want to use a different server from my default.

I
But I am not using the vpn server instead of my usual one. Is there a way to make this happen?

Last edited by acampbell; 04-20-2010 at 08:55 AM.
 
Old 04-16-2010, 03:01 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
dddd

Last edited by centosboy; 04-22-2010 at 02:56 AM. Reason: deleted as a request from OP
 
Old 04-16-2010, 03:28 AM   #3
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by centosboy View Post
as long as a gateway/route is in place for the vpn connection, all you have to do is initiate a connection to something on the vpn subnet.
Unfortunately this is exactly what I can't do! I imagine it is something to do with ip route, /etc/networking/interface, or both, but I really have no idea how to do it. I can see a route to the server I am trying to use (194.79.29.2) but it is not the default and I can't make it so.
I have tried various things without success. Could you very kindly tell me what I need to do?
 
Old 04-16-2010, 03:51 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by acampbell View Post
I can see a route to the server I am trying to use (194.79.29.2) but it is not the default and I can't make it so.
I have tried various things without success. Could you very kindly tell me what I need to do?
You can see it but we can't!

Nobody (unless they are psychic) can tell you what you need to do unless you share what you have tried and what the results were.

Are you able to ping the VPN server you want to use?

Would you like to post the output of route -n?
 
Old 04-16-2010, 04:19 AM   #5
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
Sorry, you are right!
Yes, I can ping the server.

a

Last edited by acampbell; 04-20-2010 at 08:55 AM.
 
Old 04-16-2010, 04:45 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
OK, so IP routing to the VPN server is working. Which VPN software is running on the client and the server? You write that you are not able to "initiate a connection to something on the vpn subnet." Are you able to initiate a VPN session with the server itself? What do you do to initiate the VPN session? What are the symptoms of it working (or not) -- how do you test?
 
Old 04-16-2010, 05:05 AM   #7
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by catkin View Post
OK, so IP routing to the VPN server is working. Which VPN software is running on the client and the server? You write that you are not able to "initiate a connection to something on the vpn subnet." Are you able to initiate a VPN session with the server itself? What do you do to initiate the VPN session? What are the symptoms of it working (or not) -- how do you test?
vpn softeware is pptp

I start VPN with "pon <name of tunnel>"

Perhaps it IS working, but my IP address appears as 94.30.27.224, whether I have vpn running or not. I think it should be different when I am running vpn. This IP address brings up my Netgear router for some reason - I don't understand this.
 
Old 04-16-2010, 05:55 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by acampbell View Post
vpn softeware is pptp

I start VPN with "pon <name of tunnel>"

Perhaps it IS working, but my IP address appears as 94.30.27.224, whether I have vpn running or not. I think it should be different when I am running vpn. This IP address brings up my Netgear router for some reason - I don't understand this.
This is good, essential information for solving the problem. Unfortunately I know nothing about pptp, including whether your IP address should change when you run VPN (I don't think it should).

The best way forward might be to start a new thread mentioning pptp in the title. That should attract pptp-sperts with the knowledge necessary to test whether it is working and, if it is not, to analyse the problem and identify a solution.
 
Old 04-16-2010, 06:16 AM   #9
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
it doesnt matter that your netgear router ip is showing. without the netgear router ip, you would never establish the pptp tunnel.
pptp vpn tunnel works much the same way as any vpn tunnel except minus the encryption.
what you want is to add a route for this vpn traffic OR show me what routes you already have in the table.

Ok edit:

i can see you yhave shown this info already... my bad...

If you can ping the server, then it is working.

Can you show the output from the ping and / or t raceroute to the vpn server or anything on that servers subnet

Last edited by centosboy; 04-16-2010 at 06:20 AM. Reason: misread
 
Old 04-16-2010, 06:40 AM   #10
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
ttica:~:$ traceroute

Last edited by acampbell; 04-20-2010 at 08:57 AM.
 
Old 04-16-2010, 06:55 AM   #11
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
ddd

Last edited by centosboy; 04-22-2010 at 02:56 AM. Reason: deleted as a req from OP
 
Old 04-16-2010, 07:25 AM   #12
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
I'm afraid I don't quite follow this. As the ppp0 interface doesn't seem to be doing anything I don't think there is anything. Or do I misunderstand what you are saying?
 
Old 04-16-2010, 07:50 AM   #13
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
I don't recall the setting specifically but look at the pptp docs there is, if I recall correctly a setting in your pptp client config that will direct all traffic over the vpn connection, its like an option to use the vpn gateway.
 
1 members found this post helpful.
Old 04-16-2010, 08:11 AM   #14
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
I can't see any such option. I suppose it's possible that pppd is configured wrongly. Perhaps I should take up your suggestion of starting a new ppptp thread.

I'm extremely grateful for all the trouble you are taking with this.
 
Old 04-16-2010, 09:17 AM   #15
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Are you married to a pptp VPN, if you are not going to be using WIndows clients many other VPN solutions might be easier for you to work with. Even if you are using windows clients can you install VPN clients on those windows clients? Maybe OpenVPN might work better for you?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN - Connected, but need route command m00f3r Linux - Networking 1 02-18-2009 10:42 PM
VPN pptpd connected vpn server only access need help please u4david Linux - Networking 1 10-17-2008 03:54 PM
sharing VPN access with lan + after vpn connected unable to ping lan/public ip xxx_anuj_xxx Linux - Networking 1 03-14-2008 02:50 AM
VPN connected, but can't browse samba shares Likeon Linux - Software 3 11-08-2006 03:02 PM
Connected to VPN(PPTP) but no shares. billamn Linux - Newbie 0 08-22-2006 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration