Home system =========================================== ------------------------------------------- File name: ppp-isp (run as root) #!/bin/sh if [ $1 ]; then PPPFILE=/home/mylogin/bin/.ppp_isp$1 [ -f $PPPFILE ] || (echo "$PPPFILE missing" >/dev/console;exit 0) $CALL="`awk "/ATDT/{print $7}" $PPPFILE`" echo '\n'$CALL $PPPFILE /usr/sbin/pppd connect "/usr/sbin/chat -v -f $PPPFILE" defaultroute 57600 /dev/ttyS1 & echo PPP to $CALL >/dev/console else echo "Usage: ppp-isp [12]" fi ------------------------------------------- File name: bin/.ppp_isp1 ABORT BUSY ABORT 'NO CARRIER' '' ATDT1-650-2XX-XXXX ogin itsme assword mypasswd dialinux bin/ppp dialinux is server's host id. ------------------------------------------- Network test: netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 204.xxx.xx.yy 0.0.0.0 255.255.255.255 UH 552 0 0 ppp0 10.0.0.0 0.0.0.0 255.0.0.0 U 1500 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 3584 0 0 lo 0.0.0.0 204.xxx.xx.yy 0.0.0.0 UG 552 0 0 ppp0 ------------------------------------------- flie: /etc/hosts 127.0.0.1 localhost 10.1.1.5 home home.corp.com 204.xxx.xx.yz ns ns.corp.com 204.xxx.xx.yu ppp-1 ppp-1.corp.com ------------------------------------------- line in .fvwmrc Exec "PPP corp -1" exec /home/itsme/bin/ppp-isp 1 & =========================================== Server side ------------------------------------------- file /etc/ppp/options.ttyS0 dialinux:ppp-1 "dialinux" is hostname of the server and ppp-1 is the name of the ppp connection so that the calling system has a hostname ppp-1 on local network. Easy for tracking log files. If you have more than one dial-in line then create similar options.ttyS# ------------------------------------------- script /home/raffi/bin/ppp #!/bin/sh exec /usr/sbin/pppd -detach starts automatically after the login/authentication. You could setup a special account with /usr/sbin/pppd as a login shell but I don't like that because sometimes I want to login to the same account without ppp. Modem in the office is external USR 28.8 with LEDs while the modem at home is Zoom, internal without LEDs.