Eliran try making the following changes to the script:
cablestart script (provided by Amir Tal): ^^^^^^^^^^ #!/bin/bash USERNAME="username" /sbin/ifdown eth0 /sbin/ifup eth0 CABLEGW=`cat /etc/dhcpc/dhcpcd-eth0.info | grep GATEWAY | cut -d"=" -f2` /sbin/route add -host pns.inter.net.il gw $CABLEGW /sbin/route del default gw $CABLEGW # delete the default gw here so pptp could create one itself /usr/sbin/pptp-linux pns.inter.net.il debug user $USERNAME remotename pns.inter.net.il mtu 1460 mru 1460 defaultroute noauth #### sleep 5 # If i am right then pptp should add a new default gw by itself # Try typing this script manually until this line and write "route -n" to see if there # actually is a new default gw. if there is one don't execute next two lines.\ NEWGW=$(/sbin/ifconfig ppp0 | grep inet | cut -d":" -f3 | tail -1 | cut -d" " -f1) /sbin/route add default gw $NEWGW ---------------------------------------------- I have published my own script a month ago on IGLU's FAQ but it's not there now. Tzafrir migh have it though. Regards Boris Ratner. 053-891578 ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
