|
|
Avoid creating PPTP default routes
To anyone looking to do this, I recommend using the hint directly above me (the end of the thread) rather than the one at the beginning of the thread. The one at the end is very elegant, works perfectly and gives great control. In short, it is the "right" way to do this under os x (at least 10.3.4 on- didn't try anything in earlier versions). The original hint is more of a hack (and didn't work for me- internet connect complained).
Avoid creating PPTP default routes
this looks very promising, but i'm too much of a newbie to implement it. i was hoping it would fix the following problem: when i connect into my work VPN, i lose internet connection and am not able to access websites, use iChat, etc...
i was hoping someone might take my hand and walk me through...
Then, to patch up routing you need an ip-up and an ip-down. Here, we assume that your remote network has two independent class C subnets, a.b.c1/24 and a.b.c2/24. If your remote has a single class B, you would use a.b/16, and so on.uh??? what the hell is a class C or a class B? how do I find out which one my Win XP box at work (which I VPN into) has? /etc/ppp/ip-up: #!/bin/sh /sbin/route -n add -net a.b.c1 $IPREMOTE >> /tmp/ppp.log 2>&1 /sbin/route -n add -net a.b.c2 $IPREMOTE >> /tmp/ppp.log 2>&1 /etc/ppp/ip-down: #!/bin/sh route -n delete -net a.b.c1 $IPREMOTE >> /tmp/ppp.log 2>&1 route -n delete -net a.b.c2 $IPREMOTE >> /tmp/ppp.log 2>&1am i supposed to substitute $IPREMOTE with that win xp machine's IP address? or leave it as is? Patching DNS is even easier. There's a special set of redirects in /etc/resolver. Add appropriate ones for your VPN.how do i find out what the "appropriate ones for your VPN" are? are these the same DNS servers that my work win xp box has in its LAN properties? anything else in this that I am supposed to substitute with my own values?? thanks in advance!
Avoid creating PPTP default routes
Yeah, he's using network admin terms. A Class C network is simply one who's subnet mask would be 255.255.255.0 , So if the network was 192.168.1.0 with 255.255.255.0, it would be a class C network describing all addresses between 192.168.1.0 and 192.168.1.254.
Avoid creating PPTP default routes
To clarify a bit further, in my ip-up I have
Re: Avoid creating PPTP default routes
Also to the guy wondering why anyone does this, basically if you are connecting to a VPN (Virtual Private Network), internet connect routes all your traffic through the private network by default... I'm using Panther 10.3.8 and VPN without customizations but I am not getting the default route changed. The default route instead remains the local public network that I was connected to before connecting to my VPN server. Has the behavior of VPN changed since these postings were written? I'm trying to do what everyone in this thread is trying to avoid, that is, set my default route to my VPN server when I'm on a particular network.
Re: Avoid creating PPTP default routes
This is still a problem for me with 10.3.8. I used these hints and they worked perfectly for me. You can following these hints and create a file in /etc/ppp/peers with the option defaultroute instead of nodefaultroute. Look at the posts above to see what I mean. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|