LinuxQuestions.org
Help answer threads with 0 replies.
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-16-2010, 08:25 AM   #1
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Rep: Reputation: 16
pptp seems to be working but no access to vpn server


I'm trying to use a vpn server which uses pptp. I've set up pptp as per the Debian Howto and it seems to be working, but I'm not actually acessing the net via the server.

Not sure what info would be useful but here are route -n and ifconfig.



Can anyone suggest what is wrong here, and how to test if the vpn link is actually working?

Last edited by acampbell; 04-20-2010 at 08:43 AM.
 
Old 04-17-2010, 07:46 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Do you want the server to act as gateway? so all traffic goes through the tunnel?
 
Old 04-17-2010, 08:01 AM   #3
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
Yes. exactly that. In fact, /var/log/messages confirms that I am connected to the server, password accepted, but I can't use it. I want to be able to send all traffic through the tunnel.

[A bit later] Well, I've finally found the solution. In brief, I deleted the gateway with
ip route del default

and then remade it with
route add default gw <server ip>

I don't know if there is another way but this works for me - done it twice.
One point: I think the browser (firefox) needs to be running BEFORE doing the above, otherwise it doesn't find any servers.

Last edited by acampbell; 04-17-2010 at 09:51 AM.
 
Old 04-18-2010, 05:26 AM   #4
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
This directive in your server config should do it.
Code:
push "redirect-gateway def1"
Firefox has nothing to do with your tunnel. If the connection is on, then you can sent almost any traffic through it.
The problem for you is probably your dns server. By adding the route to your tunnel gateway it cannot longer connect to you dns server in your network.
You can check by trying to ping your dns server that is put in /etc/resolv.conf
There are two options: you either push the dns server from the openvpn server(for me my vpn server is also dns server).
Code:
push "dhcp-option DNS 192.168.200.1"
Or you can add another route that points to your local dns ip.

I hope what I said was clear
 
0 members found this post helpful.
Old 04-18-2010, 05:40 AM   #5
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Quote:
Originally Posted by deadeyes View Post
This directive in your server config should do it.
Code:
push "redirect-gateway def1"
That is an OpenVPN directive, but the OP is using PPTP.
 
Old 04-18-2010, 11:24 AM   #6
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

Original Poster
Rep: Reputation: 16
As I said yesterday, I now have the thing working correctly.
 
Old 04-20-2010, 03:27 AM   #7
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Sorry confused this thread with another one.
 
  


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
Udp Broadcast from PPTP Vpn not working satish Linux - Networking 0 06-18-2009 12:27 AM
Why is my pptp vpn not working? redhatwannabe Linux - Networking 0 01-11-2009 08:54 PM
PPTP VPN and lan access eXor Linux - Networking 3 11-26-2007 04:49 AM
LXer: Linux Configure point to point tunneling PPTP VPN client for Microsoft PPTP vpn server LXer Syndicated Linux News 0 06-13-2007 08:46 AM
use of pptp client to access vpn krish87 Linux - Networking 0 08-20-2004 01:32 PM

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

All times are GMT -5. The time now is 10:00 AM.

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