LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-30-2005, 02:39 AM   #1
tmchardy
Member
 
Registered: Dec 2005
Distribution: Fedora Core
Posts: 55

Rep: Reputation: 15
PPTP local routing


I recently got pptp working under linux connecting to a Windows server. As much trouble as this was, it's now working and I can connect, dns resolution and all. However, when I connect it disconnects my local routing tables. Which means i can't even browse the internet anymore. Is there something I can set, some option or something to keep my local routing tables? (when I can type www . linuxquestions . org into a web browser I'll know it worked. ;-) )

I have to use pptpconfig to start the tunnel. If I use pppd or anything else it just hangs.

In windows it's just a check-box, but what do I do here in good ol' FC4?
 
Old 12-30-2005, 02:49 AM   #2
tmchardy
Member
 
Registered: Dec 2005
Distribution: Fedora Core
Posts: 55

Original Poster
Rep: Reputation: 15
Well,

I just thought I'd reply to my own thread. I don't know what I changed, if anything, but it now magically works. I'm confused as to why it didn't, I'm confused as to why it now does.... but I guess I won't look a gift horse in the mouth. Guess you can ignore this post unless you just want to share a little enlightenment.
 
Old 01-07-2006, 04:20 AM   #3
djuhl30
Member
 
Registered: Dec 2005
Location: IRAQ (BACK @ FT HOOD NOW)
Distribution: GENTOO now
Posts: 98

Rep: Reputation: 15
I am experiencing the same problem, but it hasnt magically worked again..
 
Old 03-07-2006, 05:13 PM   #4
tmchardy
Member
 
Registered: Dec 2005
Distribution: Fedora Core
Posts: 55

Original Poster
Rep: Reputation: 15
Well, it's a slightly different issue, but I need some help with this.

It appears that what is happening is that when I connect it sets up the new routing tables as I defined. However, it is overwriting my local routing tables. This is causing a problem in three instances:

1) The routing tables of the remote network I'm connecting to aren't set up properly. This means I can no longer access certain locations on the internet.
2) The pptp is unexpectedly dropped. This stops my original routing tables to restore and I'm stuck with no internet resolution until I manually go and change my resolv.conf
3) I connect to more than 1 remote network at a time. In this case the last connection is the one to specify its routing tables. I then lose any routing tables that came before.

So, what can I do here? Well, it seems to me, I have two options. The first I know how to do, the second I don't (and is my preferred method).

A. I can set all remote DNS servers up in my resolv.conf with my local being first. Then in my pptp config I can drop the setting of new DNS servers on connection. While a good method, it means I have a lot of garbage psuedo-DNS servers when I'm not remotely connected. I also don't know if secondary or tertiary DNS servers will do name resolution if the primary says it doesn't exist (e.g. Do DNS servers do a check-if-name-doesn't-exist *or* a check-if-dns-is-unavailble method for moving to the secondary/tertiary/etc. server)

B. I would like to *APPEND* the DNS entries instead of doing a full replace. This is my prefered method, but I don't actually know how to do this. I will do option A for now, but if anyone knows of a way to do this, plz let me know.

P.S. djuhl30, the original post is pretty old (but I'm still learning this stuff myself and so things get put on the back-burner a lot), you might want to try editing your resolv.conf with the suggestion A (if it works as mentioned above). Set your pptp to not define a new DNS server. This will mean that your local DNS always takes priority with your secondary or tertiary (on the remote network) picking up the slack when it can't find the name. I don't know if this will actually work or not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PPTP (MPPE) routing? nicholai Linux - Networking 0 02-16-2005 08:10 AM
Problem routing PPTP VPN connections - Mandrake 10.1 kalahari875 Linux - Networking 2 01-22-2005 10:55 AM
Routing or a pptp connection problem? l2g Linux - Networking 4 05-04-2004 06:29 PM
pptp server/client settings & routing issue csvke Linux - Networking 0 01-27-2004 08:55 AM
Routing PPTP through router running linux 2.4.x kernel mcukstorm Linux - Security 4 07-07-2003 12:30 PM


All times are GMT -5. The time now is 04:24 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration