[ale] diald question
Eric Ayers
eric.ayers at mindspring.com
Sun Apr 11 22:21:03 EDT 1999
Nick Lucent wrote:
>
> In my never ending attempt to make it easy for my girlfriend to dial out
> from windows I am trying to get diald to work. The problem that Im having
> is that it is completely hosing my route when it starts. The question I
> have is should I tell pppd to use defaultroute and diald to use
> defaultroute, or should I just tell diald to and remove it from pppd?
>
> Nick
Why is everyone still using diald? I am having great luck just using
pppd by itself to connect to mindspring. It runs as a daemon and
dials out whenever I have traffic to send. In my rc.local script I have:
pppd /dev/modem 115200 asyncmap 00000000 crtscts modem demand idle 300
connect /etc/ppp/mindspring.chat :168.121.1.1 defaultroute
and masquerading setup with ipchains:
ipchains -P forward DENY
ipchains -A forward -j MASQ -s 10.207.162.0/24 -d 0.0.0.0/0
my /etc/ppp/mindspring.chat script:
#!/bin/bash
#
DEVICE=modem
CHAT=/usr/sbin/chat
PPPD=/usr/sbin/pppd
PASSWORD="mypassword"
USERNAME="myusername at mindspring.com"
CONSOLE=`tty`
(
stty 115200 -tostop
echo -n "Dialing..."
${CHAT} -t 120 -v ABORT "NO DIALTONE" ABORT "NO CARRIER" ABORT
BUSY ABORT "ERROR" "" ATS7=45S0=0V1E1Q0M1 OK ATDT4042873038 CONNECT ""
"ogin" "$USERNAME" "assword" "$PASSWORD" "PPP"
)</dev/modem </dev/modem
More information about the Ale
mailing list