Updating my original post of about a week ago; unfortunately I'm trying to
get this going in my spare time, and I have don't *have* much in the way of
spare time lately.
I have made no progress since the last time I posted this question.
Below are the error messages in "/var/log/messages" and in "/var/log/syslog"
/var/log/messages
Mar 13 22:15:32 test2 diald[108]: Running connect (pid = 114).
Mar 13
22:15:33 test2 diald[108]: Running pppd (pid = 119).
Mar 13 22:15:35 test2
kernel: registered device ppp0
Mar 13 22:15:40 test2 pppd[119]: pppd 2.2.0
started by root, uid 0
Mar 13 22:15:40 test2 pppd[119]: Using interface
ppp0
Mar 13 22:15:41 test2 pppd[119]: Connect: ppp0 <--> /dev/cua1
Mar 13
22:15:41 test2 pppd[119]: Serial line is looped back.
Mar 13 22:15:41 test2
pppd[118]: pppd 2.2.0 started by root, uid 0
Mar 13 22:15:41 test2
pppd[119]: Connection terminated.
Mar 13 22:15:41 test2 pppd[119]:
Exit.
Mar 13 22:15:43 test2 chat[121]: timeout set to 60 seconds
Mar 13
22:15:43 test2 chat[121]: abort on (ERROR)
Mar 13 22:15:43 test2
chat[121]: abort on (BUSY)
Mar 13 22:15:43 test2 chat[121]: abort on (NO
CARRIER)
Mar 13 22:15:43 test2 chat[121]: abort on (NO DIALTONE)
Mar 13
22:15:43 test2 chat[121]: send (AT&FH0^M)
Mar 13 22:15:43 test2 chat[121]:
expect (OK)
Mar 13 22:15:43 test2 chat[121]: AT&FH0^M^M
Mar 13 22:15:43
test2 chat[121]: OK -- got it
Mar 13 22:15:43 test2 chat[121]: send
(atdp2655133^M)
Mar 13 22:15:43 test2 chat[121]: timeout set to 75
seconds
Mar 13 22:15:43 test2 chat[121]: expect (CONNECT)
Mar 13 22:15:43
test2 chat[121]: ^M
Mar 13 22:15:45 test2 diald[108]: Delaying 30 seconds
before clear to dial.
Mar 13 22:16:08 test2 chat[121]: atdp2655133^M^M
Mar
13 22:16:08 test2 chat[121]: CONNECT -- got it
Mar 13 22:16:08 test2
pppd[118]: Serial connection established.
Mar 13 22:16:09 test2 pppd[118]:
Using interface ppp0
Mar 13 22:16:09 test2 pppd[118]: Connect: ppp0 <-->
/dev/cua1
Mar 13 22:16:10 test2 pppd[118]: Remote message:
Mar 13 22:16:10
test2 pppd[118]: local IP address 209.127.120.49
Mar 13 22:16:10 test2
pppd[118]: remote IP address 209.127.120.223
Mar 13 22:16:18 test2
diald[108]: Running connect (pid = 136).
Mar 13 22:16:18 test2 pppd[118]:
Terminating on signal 2.
Mar 13 22:16:18 test2 pppd[118]: Connection
terminated.
Mar 13 22:16:18 test2 pppd[118]: Exit.
Error messages from
/var/log/syslog (in "syslog" all of the lines below were duplicated
endlessly; to keep this post shorter I deleted duplicate lines)
Mar 13
22:15:31 test2 diald[108]: failed to get initial modem terminal attributes:
I/O error
Mar 13 22:15:31 test2 diald[108]: could not get initial terminal
attributes: I/O error
Mar 13 22:15:31 test2 diald[108]: failed to set
terminal attributes: I/O error
Mar 13 22:16:27 test2 pppd[141]: tcsetattr:
Invalid argument
Mar 13 22:21:24 test2 pppd[227]: tcsetattr: Invalid
argument
Mar 13 22:24:23 test2 chat[261]: SIGTERM
Mar 13 22:29:15 test2
pppd[420]: ppp not replacing existing default route to sl0[0.0.0.0]
Regards,
Paul Greene
The lines below this were in my original post.
At 11:27 PM 3/8/99 +0000, you wrote:
>I'm trying to setup a server on my home network (two computers connected
>through a hub) that can function as an e-mail server and that can allow IP
>masquerading to enable both computers to have internet access through a
>single modem.
>
>The first step is to get diald working properly.
>
>The computer is an older 486 with Slackware, kernel 2.0.34, console based
>(no X windows)
>
>I've reached the point where I can fire up "diald", then use the command
>"lynx www.linux.org" and the computer will dial up the ISP, make the
>connection, receive both the local and remote IP addresses, and then
>........ die.
>
>The modem doesn't hang up the line, but I can't ping anywhere ( I get the
>error message "network not available"), and if I do a "ps" command, diald
>is no longer running.
>
>Here's copies of the relevent files (if I need to submit any others please
>feel free to let me know):
>
>"diald.def" is unchanged from the standard file
>
>"host.conf"
>
> order hosts,bind
> multi on
>
>/etc/ppp/options (I commented out the commands that the man pages said
>should be configured through diald)
>
> #lock
> #defaultroute
> noipdefault
> #modem
> /dev/cua1
> #19200
> #crtscts
>
>debug
> passive
> asyncmap 0
> name "pgreene"
>
>resolv.conf
>
> search c-com.net
> nameserver 209.127.0.18
>
>diald.conf
>
> mode ppp
> connect /usr/sbin/ppp-go
> device /dev/ttyS2
> speed 38400
> modem
>
>lock
> crtscts
> local 192.168.0.1
> remote 192.168.0.2
> dynamic
>
>defaultroute
> include /usr/lib/diald/standard.filter
>
>"ppp-go" (the dial up script automatically generated by the Slackware
>"pppsetup" program; sorry, this one's kind of long; the connection is a PAP
>connection)
>
>#!/bin/bash
>
>ifconnect() {
>
>if ! ( ifconfig | grep "P-t-P" >/dev/null );
>then
>echo "* NO! not PPP connected. *"
>echo
>else
>exit 0
>fi
>
>if [ -s
>/var/log/debug ] && ( ps xc 2>/dev/null | grep -q syslogd 2>/dev/null );
>then
>echo "Look at /var/log/messages and or debug for more
>info."
>echo
>else
>exit 0
>fi
>
>echo "Do you want to see /var/log/messages &
>debug?"
>echo "The PAGER less or more will be used: Q = Quit!"
>echo "The
>last 30 lines of each file will be shown, there"
>echo -n "may be some
>overlap from previous attempts: (N/y) : "
>read ans
>
>if [ "$ans" = "y" -o
>"$ans" = "Y" ]; then
>tail -n 30 /var/log/messages /var/log/debug
>2>/dev/null | less -aCMrsi || more -ds || echo "No PAGER found, no more or
>less."
>grepauth
>else
>grepauth
>fi
>}
>
>grepauth() {
>
>tail -n 30 /var/log/debug
>2>/dev/null | grep -i -s "rcvd" > /var/log/setup/tmp/grep.tmp
>
>if ( grep -i
>-q "auth pap" /var/log/setup/tmp/grep.tmp ); then
>echo
>echo "They seem to
>be requesting PAP = <auth pap> for authentication."
>echo "I don't know if
>you're setup for 'PAP' or not."
>echo "Did you answer 'PAP' when you ran
>pppsetup?"
>echo
>elif ( grep -E -i -q "auth chap msoft|auth chap 80"
>/var/log/setup/tmp/grep.tmp ); then
>echo
>echo "They seem to be requesting
>MS-CHAP-80 = <auth chap 80> for authentication."
>echo "I don't know if
>you're setup for 'MS-CHAP' or not."
>echo "Did you answer 'MS-CHAP' when you
>ran pppsetup?"
>echo
>elif ( grep -i -q "auth chap"
>/var/log/setup/tmp/grep.tmp ); then
>echo "They seem to be requesting CHAP =
><auth chap> for authentication."
>echo "I don't know if you're setup for
>'CHAP' or not."
>echo "Did you answer 'CHAP' when you ran
>pppsetup?"
>echo
>else
>rm -f /var/log/setup/tmp/grep.tmp
>exit 0
>fi
>
>if ( grep
>-i -q "callback" /var/log/setup/tmp/grep.tmp ); then
>echo "They seem to be
>requesting CALLBACK."
>echo "I don't know if you're setup for 'callback' or
>not."
>echo "Did you answer 'CALLBACK' when you ran pppsetup?"
>echo
>fi
>
>rm
>-f /var/log/setup/tmp/grep.tmp
>}
>
>if [ "$1" = "" ]; then
>killall -INT pppd
>2>/dev/null
>rm -f /var/lock/LCK* /var/run/ppp*.pid
>(/usr/sbin/pppd -detach
>connect "/usr/sbin/chat -v -f /etc/ppp/pppscript" &) || exit
>1
>#read
>#ifconnect
>exit 0
>fi
>
>if [ "$1" = "-q" ]; then
>killall -INT pppd
>2>/dev/null
>rm -f /var/lock/LCK* /var/run/ppp*.pid
>(/usr/sbin/pppd connect
>"/usr/sbin/chat -v -f /etc/ppp/pppscript" 1> /dev/null 2> /dev/null ) ||
>exit 1
>exit 0
>fi
>
>if [ "$1" = "-d" ]; then
>killall -INT pppd 2>/dev/null
>rm
>-f /var/lock/LCK* /var/run/ppp*.pid
>(/usr/sbin/pppd file
>"/etc/ppp/options.demand" &) || exit 1
>echo "Demand Dialing Started."
>exit
>0
>fi
>
>if [ "$1" = "-h" ]; then
>echo "USAGE: ppp-go <Make PPP connection,
>print messages to screen.>"
>echo "USAGE: ppp-go -q <Make PPP connection, do
>not print messages to screen.>"
>echo "USAGE: ppp-go -r <Remove contents of
>/var/log/messages & debug files.>"
>echo "USAGE: ppp-go -d <Put pppd in
>demand dialing mode.>"
>echo "USAGE: ppp-go -h <Help>"
>exit 0
>fi
>
>if [ "$1"
>= "-r" ]; then
>echo -n "Remove contents of /var/log/messages file? (N/y) :
>"
>read ans
>if [ "$ans" = "y" -o "$ans" = "Y" ]; then
>cat /dev/null
>>/var/log/messages
>echo "Contents of /var/log/messages file
>removed."
>else
>echo "Cancelled."
>fi
>echo -n "Remove contents of
>/var/log/debug file? (N/y) : "
>read ans
>if [ "$ans" = "y" -o "$ans" = "Y"
>]; then
>cat /dev/null >/var/log/debug
>echo "Contents of /var/log/debug file
>removed."
>exit 0
>else
>echo "Cancelled."
>exit 0
>fi
>fi
>
>echo "USAGE: ppp-go
>-h <Help>"
>exit 1
>
>Any suggestions what needs to be done?
>
>TIA
>
>Paul Greene
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-diald" in
>the body of a message to [EMAIL PROTECTED]
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]