|
|
A script to provide VPN split routing via PPPTP
I wanted to share a script I wrote that sort of extends this functionality and allows it to be run automatically. (RobG, this may be worth a hint in itself?). Anyway, this is a Perl script:
I then added a line at the end of
Now, when you connect to the VPN, the script will automatically update the routing for you. When you disconnect, or change location to a non-VPN connection, the routing will be handled as normal by the OS. If anyone has any enhancements, I'd love to see them!
A script to provide VPN split routing via PPPTP
I've been doing this for a while now manually. Good to see someone scripted it. :)
A script to provide VPN split routing via PPPTP
Has anyone got this to work? It didn't work for me. I added teh fix_vpn_routing.pl file to /usr/local/bin not /usr/local/bin/admin. Is that important? Also, I added the two lines to set-hostname and finally I changed the permissions of fix_vpn_routing.pl to 755. What else is needed? I even rebooted my Mac.
A script to provide VPN split routing via PPPTP
I had trouble with my connections "lagging out" at first. What you need to do is explicitly add DNS information to the PPTP section of your Network Preferences. These should be the ones that you pick up from AT&T when you're normally connected to that network.
A script to provide VPN split routing via PPPTP
This hint is awesome.
A script to provide VPN split routing via PPPTP
I don't understand what is the "real gateway" is ? Where can i found it ?
A script to provide VPN split routing via PPPTP
The "real gateway" is your normal gateway when not connected to the VPN. For example, if you use a little wireless hub or similar, it's probably 192.168.1.1. If you go to the Network Preference Pane details for the non-VPN connection you're using, the "real gateway" IP address is labelled as "Router" (at least in Panther).
A fix for Panther and possibly 10.2.8
If you had implemented this hint before 10.2.8 and found that it suddenly stopped working here is why...
The hint says to modify the file
But it has been moved to (and probably overwritten)
Modify the set-hostname file in its new location as the hint spells out and everything should start working again.
Wait, my bad
This script trick just won't work in Panther. It looks like you'll have to use one of the other tricks listed in this hint and its replies.
A script to provide VPN split routing via PPPTP
That script basically worked for me in panther, except that the get_location_from_scutil was returning my vpn-assigned client IP address as opposed to the vpn server address.
A script to provide VPN split routing via PPPTP
I don't understand this line:
my @vpn_nets = ('123.45.67.0/24', '199.164.165.0/24');
I have 2 subnets that I want to connect to over VPN: 128.112.x.x and 140.180.x.x . How do I write them using the notation you use? I don't understand what the 0/24 part means.
Thanks.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks 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.13 seconds |
|