Well,

Sad to say, Im still going on this one. (trying to setup a pppd server)
I have tried many options, along with all suggestions made from the last post.

Win95 Client --> Linux ppp Server

Debian box is Default install NOTHING out of the ordinary
IP of debian box on the local network is 192.168.1.109 .. I am trying yto give
the
Win95 box an IP of 192.168.1.19

So Far (from my reading and testing)
1. mgetty is working. It passes detects that Windows95 is asking for a PAP ppp
session
   and fires off pppd (the cmd line from /etc/mgetty/login.config )
2. pppd doesn't log squat! (not this version)... it seems to be hanging on
something
   my guess is pam .. anything weird here, can I turn on logging at pam to see
what is
   going on

---- what happens
1. Win95 Dials up (ive forced modems to 19200 as my line to line is noisy ..
same house .. go Telstra)
2. mgetty answers, negotiates
3. mgetty disappears from process list and up comes pppd (as expected)
4. pppd sits there .. modem lights don't flash much (once every so seconds)
5. Win95 quits claiming it couldn't negotiate protocol
6. Modems hang up (After [ok] on Win95) but pppd stays about
7. The SIGHUP is me killing the pppd

---- logs and settings
Here are the log files below from mgetty and /var/log/messages,
if you notice, pppd isn't doing much at all, it's not logging, nothing,
why is this, ESPECIALLY when i explicitally declare the debug option as a
parameter ?

---------------- /etc/inittab
T3:23:respawn:/sbin/mgetty -n 3 -s 19200 ttyS0

---------------- /etc/mgetty/login.config
/AutoPPP/ -     a_ppp   /usr/sbin/pppd -detach file /etc/ppp/options

---------------- /etc/pam.d/ppp
#%PAM-1.0
# Information for the PPPD process with the 'login' option.
auth    required        pam_nologin.so
auth    required        pam_unix.so
account required        pam_unix.so
session required        pam_unix.so

---------------- /etc/ppp/options
-detach
asyncmap 0
auth
crtscts
debug
lcp-echo-failure 4
lcp-echo-interval 30
lock
login
modem
ms-dns 192.168.1.1
ms-wins 192.168.1.1
noipx
proxyarp
--------------- /etc/ppp/options.ttyS0
192.168.1.109:192.168.1.19

---------------- /var/log/message
Aug 12 23:07:08 ccps-dialin pppd[1652]: pppd 2.4.1 started by a_ppp, uid 0
Aug 12 23:07:54 ccps-dialin pppd[1652]: Hangup (SIGHUP)
Aug 12 23:07:54 ccps-dialin pppd[1652]: Exit.

---------------- /var/log/mgetty/mg_ttyS0.log
08/12 23:06:43 yS0    select returned 1
08/12 23:06:43 yS0   checking lockfiles, locking the line
08/12 23:06:43 yS0   makelock(ttyS0) called
08/12 23:06:43 yS0   do_makelock: lock='/var/lock/LCK..ttyS0'
08/12 23:06:43 yS0   lock made
08/12 23:06:43 yS0  wfr: waiting for ``RING''
08/12 23:06:43 yS0   got: [0d][0a]RING[0d]
08/12 23:06:43 yS0    CND: RING
08/12 23:06:43 yS0   wfr: rc=0, drn=0
08/12 23:06:43 yS0  wfr: waiting for ``RING''
08/12 23:06:43 yS0   got: [0a][0d][0a]RING[0d]
08/12 23:06:46 yS0    CND: RING
08/12 23:06:46 yS0   wfr: rc=0, drn=0
08/12 23:06:46 yS0  wfr: waiting for ``RING''
08/12 23:06:46 yS0   got: [0a][0d][0a]RING[0d]
08/12 23:06:49 yS0    CND: RING
08/12 23:06:49 yS0   wfr: rc=0, drn=0
08/12 23:06:49 yS0    CND: check no: 'none'
08/12 23:06:49 yS0  send: ATA[0d]
08/12 23:06:49 yS0  waiting for ``CONNECT''
08/12 23:06:49 yS0   got: ATA[0d]
08/12 23:06:49 yS0    CND: OKATA[0d][0a]CONNECT ** found **
08/12 23:07:04 yS0  send:
08/12 23:07:04 yS0  waiting for ``_''
08/12 23:07:04 yS0   got:  19200[0d]
08/12 23:07:04 yS0    CND: CONNECT 19200
08/12 23:07:04 yS0    CND: found: 19200[0a] ** found **
08/12 23:07:04 yS0   waiting for line to clear (VTIME), read:
~[ff]}#[c0]!}!}!} }7}"}&} }*} } }%}&} }4[dc]#}'}"}(}"}-}#}&[a7]]~
08/12 23:07:05 yS0    looking for utmp entry... (my PID: 1652)
08/12 23:07:05 yS0   utmp + wtmp entry made
08/12 23:07:05 yS0   tio_set_flow_control( HARD )
08/12 23:07:05 yS0   print welcome banner (/etc/issue.mgetty)
08/12 23:07:05 yS0   getlogname (FIDO AUTO_PPP), read:~[ff]}#[c0]!
08/12 23:07:08 yS0   input finished with '\r', setting ICRNL ONLCR
08/12 23:07:08 yS0   tio_get_rs232_lines: status: RTS CTS DSR DTR
08/12 23:07:08 yS0  WARNING: starting login while DCD is low!
08/12 23:07:08 yS0    login: use login config file /etc/mgetty/login.config
08/12 23:07:08 yS0   match: user='/AutoPPP/', key=''
08/12 23:07:08 yS0   match: user='/AutoPPP/', key=''
08/12 23:07:08 yS0   match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
08/12 23:07:08 yS0   login: utmp entry: a_ppp
08/12 23:07:08 yS0    looking for utmp entry... (my PID: 1652)
08/12 23:07:08 yS0   utmp + wtmp entry made
08/12 23:07:08 yS0   calling login: cmd='/usr/sbin/pppd', argv[]='pppd -detach
file /etc/ppp/options'
08/12 23:07:08 ##### data dev=ttyS0, pid=1652, caller='none', conn='19200',
name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'

08/12 23:07:08 yS0   setenv: 'CALLER_ID=none'
08/12 23:07:08 yS0   setenv: 'CALLED_ID='
08/12 23:07:08 yS0   setenv: 'CONNECT=19200'
08/12 23:07:08 yS0   setenv: 'DEVICE=ttyS0'
--------------------------------------------------------------------



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> ramon buckland
> Sent: Monday, 5 August 2002 5:03 PM
> To: [EMAIL PROTECTED]
> Subject: [SLUG] Problems setting up a PPP Dial in Server
>
>
> Hi peoples,
>
> Over the past few days Ive been trying to setup a PPP Dialin
> server so that a client can dialin to it's linux machine from a
> win32 (win95)
> box remotely.
>
> I thought, yep shouldn't be too hard, but stumped I am.
>
> Here's what I have.
>
> + Windows 95 Box, Bog standard, 28.8k modem (USRobotics Sportster) on COM1.
>
> + Linux Server (Box on an internal network)
>   Debian Woody, with 2.2.20 kernel. - VERY basic install, nothing fancy.
>   IP: 192.168.1.109
>   33.6k Modem attached on ttyS0
>
> See at the bottom nitty gritty config details, the problem is.. the
> Win95 box
> connects, the modems
> negotiate. and the mgetty hands off to pppd. pppd starts up (see it in the
> process list)
> but nothing happens and the win95 box times out complaining that
>  "a list of netrwork protocols could not be negotiated"
>
> One issue I had was that at 28.8 the modems wouldn't negotiate, and mgetty
> complain about noise.
> so I dropped them to 19200 (from win95 selecting connection speed),
> this then
> allows it to connect
> to mgetty and hand over to pppd. but no go.
>
> So Look at the logs ...
> So.. I figure, look at the pppd debug logs (since I have that in
> there TWICE,
> once in /et/mgetty/login.config
> and then also in the /etc/ppp/options)
> But I don't get ANY debug from pppd as to what it's doing, ..
>
> /var/log/messages
> Aug  5 15:21:11 ccps-dialin pppd[326]: pppd 2.4.1 started by LOGIN, uid 0
> Aug  5 15:22:02 ccps-dialin pppd[326]: Terminating on signal 15.
> Aug  5 15:22:02 ccps-dialin pppd[326]: Exit.
>
> The 'Terminating' is from me forcing (kill) it to die because it
> stays running
> even after the WIn95 modem
> disconnects..
>
> Any ideas ?
>
>
>   mgetty installed.
>   -----------------
>   # mgetty in /etc/inittab
>   T3:23:respawn:/sbin/mgetty ttyS0
>
>   # mgetty /etc/mgetty/login.config
>   /AutoPPP/ -     -       /usr/sbin/pppd debug file /etc/ppp/options
>
>   # mgetty /etc/mgetty/mgetty.config
>   debug 4
>   speed 38400
>   issue-file /etc/issue.mgetty
>   port ttyS0
>     debug 8
>     data-only y
>
>   pppd installed
>   --------------
>   pppd is setuid.
>   # /etc/ppp/options.ttyS0
>   192.168.1.109:192.168.1.144
>
>   # /etc/ppp/options
>   ms-dns 192.168.1.1
>   ms-wins 192.168.1.1
>   asyncmap 0
>   auth
>   crtscts
>   lock
>   modem
>   -detach
>   +pap
>   -chap
>   debug
>   proxyarp
>   lcp-echo-interval 30
>   lcp-echo-failure 4
>   noipx
>   mru 576
>   mtu 576
>   passive
>   login
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>   _____
>
> This email was sent to you by Ramon Buckland, Software Engineer at f5.
> You can reach Ramon directly on 0421 379 694.
>
>
> --
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
>
>

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to