This script has options for three different VPN connections.Remember to put the #'s back in when you are done testing. Output will be written to the /tmp/ip-up-debug.txt file. Uncomment (remove the #'s) from the debug lines to see what this script is doing.In this instance, the remote IP is 192.168.3.1, and the remote network is 192.168.30.0/24 (the remote VPN box is doing the routing - this is so SAMBA will work without needing to proxy ARP). In the first case statement, change the entry to the first three octets of your remote network.The $5 variable is your remote IP address (your IP address on the remote network).Once you create the file, do a chmod u+x /etc/ppp/ip-up.ppp3)# $2 the tty device name# $3 the tty device speed# $4 the local IP address for the interface# $5 the remote IP address# $6 the parameter specified by the 'ipparam' option to pppdDEBUGFILE=/tmp/ip-up-debug.txt# echo "1:$1 2:$2 3:$3 4:$4 5:$5 6:$6" > $DEBUGFILENET=`echo $5 | cut -d. To make a custom route to the subnet on the other side of the VPN connection, read the rest of the hint.Īs root, create /etc/ppp/ip-up, and put in the following code: #!/bin/sh# When the ppp link comes up, this script is called with the following# parameters# $1 the interface name used by pppd (e.g. Choose Options from the Connect menu, then uncheck the "Send all traffic over VPN connection" option. To stop OS X 10.4 from creating a default route to your VPN connection, open Internet Connect (in Applications).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |