Hello,
I am trying to set up IPMASQ on my Red Hat Linux 6.1 box. I am trying to
surf the web on a Win95 machine using the Linux box as a gateway. I connect
to the Internet through a dial up modem.
I have created a ppp connection through linuxconf and have set up the Win95
client to use my ISPs name servers, and to use my server's IP address as the
gateway. If I bring up the ppp connection manually using /sbin/ifup ppp0
then everything works fine and I can surf away without any problems.
However, I would like the connection to dial out automatically, and drop the
line once I have finished with it. I am trying to do this using DIALD.
I have set up DIALD according to the (complex) instructions, but I don't
seem to be able to get it to work. What happens is:
1. Access a web page on the Win95 box.
2. The SLIP connection grabs the packets and makes the modem dial out.
3. A PPP connection is successfully established (according to
/sbin/ifconfig)
4. BUT, the Win95 machine never gets to the destination web page. It is as
though the SLIP connection is grabbing the packets and keeping them... If I
kill the SLIP connection then the Win95 machine can see the web pages.
I have the following output in /var/log/messages. There are a few error
messages in there which I hope someone can explain to me.
Apr 1 21:12:43 server kernel: CSLIP: code copyright 1989 Regents of the
University of California
Apr 1 21:12:43 server kernel: SLIP: version 0.8.4-NET3.019-NEWTTY-MODULAR
(dynamic channels, max=256) (6 bit encapsulation enabled).
Apr 1 21:12:43 server kernel: SLIP linefill/keepalive option.
Apr 1 21:12:43 server diald[584]: start sl0: SIOCSIFMETRIC: Operation not
supported
Apr 1 21:27:28 server diald[584]: Trigger: udp 192.168.1.1/61000
158.43.240.4/53
Apr 1 21:27:28 server diald[584]: Calling site 127.0.0.3
Apr 1 21:27:32 server ifup-ppp: pppd started for ppp0 on /dev/modem at
115200
Apr 1 21:27:34 server modprobe: can't locate module char-major-108
Apr 1 21:27:35 server kernel: PPP: version 2.3.7 (demand dialling)
Apr 1 21:27:35 server kernel: PPP line discipline registered.
Apr 1 21:27:35 server kernel: registered device ppp0
Apr 1 21:27:35 server pppd[671]: pppd 2.3.10 started by root, uid 0
Apr 1 21:27:37 server chat[683]: abort on (BUSY)
Apr 1 21:27:37 server chat[683]: abort on (ERROR)
Apr 1 21:27:37 server chat[683]: abort on (NO CARRIER)
Apr 1 21:27:37 server chat[683]: abort on (NO DIALTONE)
Apr 1 21:27:37 server chat[683]: abort on (Invalid Login)
Apr 1 21:27:37 server chat[683]: abort on (Login incorrect)
Apr 1 21:27:37 server chat[683]: send (ATZ^M)
Apr 1 21:27:37 server chat[683]: expect (OK)
Apr 1 21:27:37 server chat[683]: ATZ^M^M
Apr 1 21:27:37 server chat[683]: OK
Apr 1 21:27:37 server chat[683]: -- got it
Apr 1 21:27:37 server chat[683]: send (ATDT0000000000^M)
Apr 1 21:27:37 server chat[683]: expect (CONNECT)
Apr 1 21:27:37 server chat[683]: ^M
Apr 1 21:27:58 server chat[683]: ATDT00000000000^M^M
Apr 1 21:27:58 server chat[683]: CONNECT
Apr 1 21:27:58 server chat[683]: -- got it
Apr 1 21:27:58 server chat[683]: send (^M)
Apr 1 21:27:58 server chat[683]: expect (ogin:)
Apr 1 21:27:58 server chat[683]: 28800/ARQ/V34/LAPM/V42BIS^M
Apr 1 21:28:03 server chat[683]: ^M
Apr 1 21:28:03 server chat[683]:
Apr 1 21:28:03 server last message repeated 23 times
Apr 1 21:28:03 server chat[683]: tnt3.uk4.uk.uudial.net UQKT2^M
Apr 1 21:28:03 server chat[683]: ^M
Apr 1 21:28:03 server chat[683]: ^M
Apr 1 21:28:03 server chat[683]: Login:
Apr 1 21:28:03 server chat[683]: -- got it
Apr 1 21:28:03 server chat[683]: send (XXXXXXXXXX^M)
Apr 1 21:28:03 server chat[683]: expect (ord:)
Apr 1 21:28:03 server chat[683]: XXXXXXXXXX^M
Apr 1 21:28:03 server chat[683]: Password:
Apr 1 21:28:03 server chat[683]: -- got it
Apr 1 21:28:03 server chat[683]: send (XXXXXXXX^M)
Apr 1 21:28:03 server chat[683]: timeout set to 5 seconds
Apr 1 21:28:03 server chat[683]: expect (~)
Apr 1 21:28:03 server chat[683]: ^M
Apr 1 21:28:04 server chat[683]: Protocol: Enabled IPCP address
negotiation for^M
Apr 1 21:28:04 server chat[683]: ^M
Apr 1 21:28:04 server chat[683]: Entering PPP Session.^M
Apr 1 21:28:04 server chat[683]: IP address is 62.188.132.147^M
Apr 1 21:28:04 server chat[683]: MTU is 1524.^M
Apr 1 21:28:08 server chat[683]: alarm
Apr 1 21:28:08 server chat[683]: send (^M)
Apr 1 21:28:08 server chat[683]: send (^M)
Apr 1 21:28:08 server pppd[671]: Serial connection established.
Apr 1 21:28:08 server pppd[671]: Using interface ppp0
Apr 1 21:28:08 server pppd[671]: Connect: ppp0 <--> /dev/modem
Apr 1 21:28:10 server kernel: PPP BSD Compression module registered
Apr 1 21:28:11 server kernel: PPP Deflate Compression module registered
Apr 1 21:28:11 server pppd[671]: not replacing existing default route to
eth0 [192.168.1.254]
Apr 1 21:28:11 server pppd[671]: local IP address 62.188.132.147
Apr 1 21:28:11 server pppd[671]: remote IP address 158.43.173.249
Apr 1 21:28:11 server pppd[671]: primary DNS address 158.43.240.4
Apr 1 21:28:11 server pppd[671]: secondary DNS address 158.43.240.3
Apr 1 21:28:14 server diald[584]: failed to set terminal attributes:
Invalid argument
Apr 1 21:28:14 server diald[584]: Connected to site 127.0.0.3
Apr 1 21:28:14 server diald[584]: Running pppd (pid = 726).
Apr 1 21:28:14 server diald[584]: PPP negotiated mtu of 552 does not match
requested setting 1500.
Apr 1 21:28:14 server diald[584]: Attempting to auto adjust mtu.
Apr 1 21:28:14 server diald[584]: Restart diald with mtu set to 552 to
avoid errors.
Apr 1 21:28:14 server diald[584]: New addresses: local 62.188.132.147,
remote 158.43.173.249, broadcast 0.0.0.0
Apr 1 21:28:14 server diald[584]: start ppp0: SIOCSIFMETRIC: Operation not
supported
Apr 1 21:28:14 server pppd[726]: unrecognized option '^M'
Apr 1 21:28:14 server pppd[671]: Modem hangup
Apr 1 21:28:14 server pppd[671]: Connection terminated.
Apr 1 21:28:14 server pppd[671]: Connect time 0.1 minutes.
Apr 1 21:28:14 server pppd[671]: Sent 238 bytes, received 286 bytes.
Apr 1 21:28:15 server diald[584]: start ppp0: SIOCADDRT: Network is down
Apr 1 21:28:15 server diald[584]: start ppp0: SIOCADDRT: Network is down
Apr 1 21:28:15 server diald[584]: stop sl0: SIOCDELRT: No such process
Apr 1 21:28:15 server pppd[671]: Exit.
Apr 1 21:28:15 server diald[584]: PPP network layer died, but link did not.
Probable configuration error.
Apr 1 21:28:15 server diald[584]: start sl0: SIOCSIFMETRIC: Operation not
supported
Apr 1 21:28:16 server diald[584]: stop ppp0: SIOCDELRT: No such process
Apr 1 21:28:16 server kernel: ppp: ppp0 not active
Apr 1 21:28:16 server diald[584]: stop ppp0: SIOCSIFFLAGS: Device not
configured
Apr 1 21:28:16 server diald[584]: start sl0: SIOCSIFMETRIC: Operation not
supported
Apr 1 21:28:16 server diald[584]: start sl0: SIOCADDRT: File exists
Apr 1 21:28:16 server diald[584]: start sl0: SIOCADDRT: File exists
Apr 1 21:28:16 server diald[584]: start sl0: SIOCSIFMETRIC: Operation not
supported
Apr 1 21:28:17 server diald[584]: start sl0: SIOCADDRT: File exists
Apr 1 21:28:17 server diald[584]: start sl0: SIOCADDRT: File exists
Apr 1 21:28:18 server diald[584]: Delaying 30 seconds before clear to dial.
Apr 1 21:28:21 server ifup-ppp: pppd started for ppp0 on /dev/modem at
115200
Apr 1 21:28:22 server modprobe: can't locate module char-major-108
Apr 1 21:28:22 server pppd[756]: pppd 2.3.10 started by root, uid 0
Apr 1 21:28:23 server chat[766]: abort on (BUSY)
Apr 1 21:28:23 server chat[766]: abort on (ERROR)
Apr 1 21:28:23 server chat[766]: abort on (NO CARRIER)
Apr 1 21:28:23 server chat[766]: abort on (NO DIALTONE)
Apr 1 21:28:23 server chat[766]: abort on (Invalid Login)
Apr 1 21:28:23 server chat[766]: abort on (Login incorrect)
Apr 1 21:28:23 server chat[766]: send (ATZ^M)
Apr 1 21:28:23 server chat[766]: expect (OK)
Apr 1 21:28:23 server chat[766]: ^M
Apr 1 21:28:23 server chat[766]: NO CARRIER
Apr 1 21:28:23 server chat[766]: -- failed
Apr 1 21:28:23 server chat[766]: Failed (NO CARRIER)
Apr 1 21:28:23 server pppd[756]: Connect script failed
Apr 1 21:28:24 server pppd[756]: Exit.
Apr 1 21:28:29 server ifup-ppp: pppd started for ppp0 on /dev/modem at
115200
Apr 1 21:28:30 server modprobe: can't locate module char-major-108
Apr 1 21:28:30 server pppd[767]: pppd 2.3.10 started by root, uid 0
Apr 1 21:28:31 server chat[777]: abort on (BUSY)
Apr 1 21:28:31 server chat[777]: abort on (ERROR)
Apr 1 21:28:31 server chat[777]: abort on (NO CARRIER)
Apr 1 21:28:31 server chat[777]: abort on (NO DIALTONE)
Apr 1 21:28:31 server chat[777]: abort on (Invalid Login)
Apr 1 21:28:31 server chat[777]: abort on (Login incorrect)
Apr 1 21:28:31 server chat[777]: send (ATZ^M)
Apr 1 21:28:31 server chat[777]: expect (OK)
Apr 1 21:28:32 server chat[777]: ATZ^M^M
Apr 1 21:28:32 server chat[777]: OK
Apr 1 21:28:32 server chat[777]: -- got it
Apr 1 21:28:32 server chat[777]: send (ATDT00000000000^M)
Apr 1 21:28:32 server chat[777]: expect (CONNECT)
Apr 1 21:28:32 server chat[777]: ^M
Apr 1 21:28:50 server chat[777]: ATDT00000000000^M^M
Apr 1 21:28:50 server chat[777]: CONNECT
Apr 1 21:28:50 server chat[777]: -- got it
Apr 1 21:28:50 server chat[777]: send (^M)
Apr 1 21:28:50 server chat[777]: expect (ogin:)
Apr 1 21:28:50 server chat[777]: 28800/ARQ/V34/LAPM/V42BIS^M
Apr 1 21:28:55 server chat[777]: ^M
Apr 1 21:28:55 server chat[777]:
Apr 1 21:28:55 server last message repeated 23 times
Apr 1 21:28:55 server chat[777]: tnt15.uk4.uk.uudial.net UQKT2^M
Apr 1 21:28:55 server chat[777]: ^M
Apr 1 21:28:55 server chat[777]: ^M
Apr 1 21:28:55 server chat[777]: Login:
Apr 1 21:28:55 server chat[777]: -- got it
Apr 1 21:28:55 server chat[777]: send (XXXXXXXXXX^M)
Apr 1 21:28:56 server chat[777]: expect (ord:)
Apr 1 21:28:56 server chat[777]: XXXXXXXXXX^M
Apr 1 21:28:56 server chat[777]: Password:
Apr 1 21:28:56 server chat[777]: -- got it
Apr 1 21:28:56 server chat[777]: send (XXXXXXXX^M)
Apr 1 21:28:56 server chat[777]: timeout set to 5 seconds
Apr 1 21:28:56 server chat[777]: expect (~)
Apr 1 21:28:56 server chat[777]: ^M
Apr 1 21:28:56 server chat[777]: Protocol: Enabled IPCP address
negotiation for^M
Apr 1 21:28:56 server chat[777]: ^M
Apr 1 21:28:56 server chat[777]: Entering PPP Session.^M
Apr 1 21:28:56 server chat[777]: IP address is 62.188.144.149^M
Apr 1 21:28:56 server chat[777]: MTU is 1524.^M
Apr 1 21:29:01 server chat[777]: alarm
Apr 1 21:29:01 server chat[777]: send (^M)
Apr 1 21:29:01 server chat[777]: send (^M)
Apr 1 21:29:01 server pppd[767]: Serial connection established.
Apr 1 21:29:01 server pppd[767]: Using interface ppp0
Apr 1 21:29:01 server pppd[767]: Connect: ppp0 <--> /dev/modem
Apr 1 21:29:03 server pppd[767]: local IP address 62.188.144.149
Apr 1 21:29:03 server pppd[767]: remote IP address 158.43.173.237
Apr 1 21:29:03 server pppd[767]: primary DNS address 158.43.240.4
Apr 1 21:29:03 server pppd[767]: secondary DNS address 158.43.240.3
I know there is a patch for ppp available from Red Hat but it has been
unavailable for the last few days.
Thanks
Darren.
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]