adsl cable connction:
script:
#!/bin/bash
USERNAME=ronen-s2@CActcom
PASSWORD=a386c7
IF=eth1
#VPN=cable.netvision.net.il
#VPN=192.117.122.13 #pns.actcom.net.il
VPN=212.199.26.28 #012 kave zahav dns:212.117.129.5/3
#VPN=172.26.255.17 #013 barak dns:212.150.48.169 , 206.49.94.234
#VPN=212.179.61.76 #014
#VPN=pns.inter.net.il #zahav dns:192.116.202.222 , 213.8.172.83
/sbin/ifdown $IF
/sbin/ifup $IF
CABLEGW=`grep routers /var/lib/dhcp/dhclient-$IF.leases |
tail -n 1| cut -d ";" -f1 | cut -d -f5`
/sbin/route add -host $VPN gw $CABLEGW
/sbin/route del default
/usr/sbin/pptp $VPN debug user $USERNAME password $PASSWORD
mtu 1460 mru 1460 defaultroute usepeerdns noauth
/bin/echo "nameserver 192.114.47.52" >/etc/resolv.conf
|