http://murga-linux.com/puppy/viewtopic.php?t=93384
***[ Updated 10-20-2011] *** New version compiled for lupu 5.xx
*** [ Updated 5/25/2009 ] *** new versions of gpptp and the script posted below ....
***************
How to connect puppy to your M$ VPN corporate network.
(assumes you have a working internet connection and functional DNS)
1. in /etc/ppp, copy "ip-up-EXAMPLE" to just "ip-up" (if you haven't done it already.. the defaults work ok ) *SEE NOTE BELOW
2. in the /etc/options.pptp file, uncomment the: "require-mppe-128" line, and save the file.
3. Start gpptp and enter the authentication info. (i.e: vpn.mycorp.com (or ip addr), mycorp-domainname\myusername, mysupersekritpassword)
4. press "connect". Wait for "VPN pppX - (pid XXXXXX) created..."
Technically interesting:
at this point you won't be able to ping anything on your corp network except the vpn server itself. If you open a console and type the "route" command you will find an entry with the lanside ip of your corp's vpn server.
If you type "ip addr" you'll find you have a new ip address (supplied by your corp's dhcp server) matching your corp's lan subnet and the address of the vpn peer.
So:
5. in a console window type:
route add -net 172.16.1.0 netmask 255.255.255.0 gw 172.16.1.142
where 172.16.1.0 represents your corp subnet and 172.16.1.142 is the theoretical "peer" ip from the "ip addr" command.
Once this command executes you'll have total access to your corporate network.
To simplify things I created an executable script in my-applications/bin for each connection, that reads a variation of:
Code: Select all
gpptp
route add -net 172.16.1.0 netmask 255.255.255.0 gw 172.16.1.142
Adding the following to the end of the "/etc/ppp/ip-up" file will solve the default gateway issue
Code: Select all
# The following figures out our most current "ppp" number
# and sets default route to it.
MYPPP="ppp"
ppp_count=$(ifconfig |grep -c ppp) # Find highest ppp* number which is the one we want.
if [ $ppp_count -gt "0" ] # It MUST find a ppp* before we set routes
then
ppp_count=`expr $ppp_count - 1` # Decrement the count by one to match dev number
MYPPP="$MYPPP$ppp_count" # Append dev number to the ppp variable
route add default $MYPPP # Set the default route
fi
I do exactly this from a 4.12 LiveCD and it works. The changes to files, etc will be permanent on your other installs. I make a symlink to the script and put it on my desktop.
good luck, and post any questions ...
search tags: ppp, pptp, vpn, msvpn, ms vpn
This is the most recent compile of Gpptp (as of Oct 20, 2011):