Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-30-2005, 01:39 AM
|
#1
|
|
Member
Registered: Dec 2005
Distribution: Fedora Core
Posts: 55
Rep:
|
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?
|
|
|
|
12-30-2005, 01:49 AM
|
#2
|
|
Member
Registered: Dec 2005
Distribution: Fedora Core
Posts: 55
Original Poster
Rep:
|
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. 
|
|
|
|
01-07-2006, 03:20 AM
|
#3
|
|
Member
Registered: Dec 2005
Location: IRAQ (BACK @ FT HOOD NOW)
Distribution: GENTOO now
Posts: 98
Rep:
|
I am experiencing the same problem, but it hasnt magically worked again..
|
|
|
|
03-07-2006, 04:13 PM
|
#4
|
|
Member
Registered: Dec 2005
Distribution: Fedora Core
Posts: 55
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:05 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|