//flex table opened by JP

Click to See Complete Forum and Search --> : Problems with dial-in setup on RH 7.3


mbabuskov
09-04-2002, 11:59 AM
HI all,

I'm trying to make dial-in server work on my RH 7.3 Linux box.
I have external modem connected to port ttyS1.

I Installed mgetty, a pppd was already installed.

I made changes to the following files:

/etc/mgetty+sendfax/login.config
removed comment (#) in line that starts with /AutoPPP/

I did: chmod u+s /usr/sbin/pppd

in /etc/ppp/options file:
-detach
crtscts
netmask 255.255.255.0
asyncmap 0
modem
proxyarp

/etc/ppp/options.ttyS1:
192.168.0.1:192.196.1.1

I also tried with:
192.168.0.1:192.168.0.2
with same results.

I added the following line to pap-secrets file:
* * "" *

in /etc/inittab I added this:
S1:2345:respawn:/sbin/mgetty -D ttyS1

And I did: init q

I'm trying to connect from Win98 machine. The modem receives the call, answera, and I got CARRIER. Then mgetty runs pppd (I was monitoring all this with: ps ax) and there everything just stops!!!

On Win98 I have "Verifying username and password..." on the screen for about 30 sec, and then the connection is broken. (it looks like there's some timeout at 30 seconds???).

I also tried to use "silent" option (read it from pppd man), and the only difference is that instead of 30, I waited 60 seconds (Win98 was setup to diconnect the call if not connected within 60 sec.)

Here's what I have in /var/log/messages

Oct 29 21:40:56 localhost mgetty[3656]: data dev=ttyS1, pid=3656, caller='none', conn='33600 V44', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
Oct 29 21:40:56 localhost pppd[3671]: pppd 2.4.1 started by a_ppp, uid 0
Oct 29 21:40:56 localhost pppd[3671]: Using interface ppp0
Oct 29 21:40:56 localhost pppd[3671]: Connect: ppp0 <--> /dev/ttyS1
Oct 29 21:40:56 localhost /etc/hotplug/net.agent: assuming ppp0 is already up
Oct 29 21:40:59 localhost pppd[3671]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Oct 29 21:41:29 localhost pppd[3671]: LCP: timeout sending Config-Requests
Oct 29 21:41:29 localhost pppd[3671]: Connection terminated.
Oct 29 21:41:29 localhost pppd[3671]: Exit.
Oct 29 21:41:29 localhost /etc/hotplug/net.agent: NET unregister event not supported

or this:

Oct 29 21:33:27 localhost init: Re-reading inittab
Oct 29 21:34:13 localhost mgetty[3492]: data dev=ttyS1, pid=3492, caller='none', conn='33600 V44', name='', cmd='/etc/ppp/ppplogin', user='/AutoPPP/'
Oct 29 21:34:14 localhost pppd[3583]: pppd 2.4.1 started by a_ppp, uid 0
Oct 29 21:34:14 localhost pppd[3583]: Using interface ppp0
Oct 29 21:34:14 localhost pppd[3583]: Connect: ppp0 <--> /dev/ttyS1
Oct 29 21:34:14 localhost /etc/hotplug/net.agent: assuming ppp0 is already up
Oct 29 21:34:16 localhost pppd[3583]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Oct 29 21:34:46 localhost pppd[3583]: Modem hangup
Oct 29 21:34:46 localhost pppd[3583]: Connection terminated.
Oct 29 21:34:46 localhost pppd[3583]: Hangup (SIGHUP)
Oct 29 21:34:46 localhost pppd[3583]: Exit.


As you can see in this log, that 30 second delay is happening just when ppp connection should be established, right?

Also, I couldn't figure out what does this: /etc/hotplug/net.agent do...

Can someone help me, please?

TIA
Milan