Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 1999 10:04:44 +1000
From:      "Robert Chalmers" <robert@chalmers.com.au>
To:        <freebsd-questions@freebsd.org>
Subject:   help needed. ppp dialin not working. What is wrong with this setup
Message-ID:  <018301beb78b$d7ce20e0$1a6001cb@chalmers.com.au>

next in thread | raw e-mail | index | archive | help
Hi,
sorry to repeat myself on the mailing list. I put the same questions to the
newsgroups, but there is no answer there. and I have to get this going asap.

I have a freebsd 2.2 machine that is permanently connected with a dial-out
ppp link. I want to allow myself and a few users DIAL-IN access from our
Windows 98 PCs, but I can't get it to work.

Firstly, I can actually connect and get a login/password prompt, so the
modem setup is ok.

Idealy, I would like to use PAP or CHAP, so the person dialing in doesn''t
need to worry about login prompts and scripts at all, but in the first
place, I would like to get anything working.!!!

I am using a PPP version from December 1998, from Brians site. Works fine on
the dialout.

These are my configs for the dialin setup, exactly according to the manual
pages at freebsd.org/manual/ppp-slip. There are only a few llines, and it
couldn't be simpler - It just doesn't work.... The log messages - only
short - follow.
----------------------------------------------------------------------------
------------------------------
There are 2 ports, so there are two tun devices
There is an entry in ttys for dialup.
There is a user called ppp, who's shell is ppp-dialup, a link to ppp-shell.
There is the ppp-shell script.
There is an entry in ppp.conf called ttyd1
There are dev entries for ttyd1

So why doesn't it work?
.......................................
crw-rw-rw-  1 root  wheel   28,   0 Jan 31  1997 /dev/ttyd0
crw-------    1 root  wheel   28,   1 Jun 15 19:50 /dev/ttyd1
........................................
crw-------  1 uucp  dialer   52,   0 Jun 15 21:10 /dev/tun0
crw-------  1 uucp  dialer   52,   1 Jun 15 16:48 /dev/tun1
..........................................
ttyd1 "/usr/libexec/getty std.38400" dialup on secure
...........................................
ppp:*:1008:1008:ppp:/usr/home/ppp:/etc/ppp/ppp-dialup

............................................
#!/bin/sh
IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'`
CALLEDAS="$IDENT"
TTY=`tty`
if [ x$IDENT = xdialup ]; then
IDENT=`basename $TTY`
fi
echo "PPP for $CALLEDAS on $TTY"
echo "Starting PPP for $IDENT"
exec /usr/sbin/ppp -direct $IDENT
.............................................
###############
ttyd1:
 enable proxy
 set ifaddr 203.1.96.5 203.1.96.201 255.255.255.255
 allow users ppp
#
.............................................

--------------------------------------------------------------
ppp.log. very short.  connects - errors - dies --------

Jun 15 18:30:20 nanguo ppp[1685]: Phase: Using interface: tun1
Jun 15 18:30:20 nanguo ppp[1685]: Phase: deflink: Created in closed state
Jun 15 18:30:20 nanguo ppp[1685]: Phase: PPP Started (direct mode).
Jun 15 18:30:20 nanguo ppp[1685]: Phase: bundle: Establish
Jun 15 18:30:20 nanguo ppp[1685]: Phase: deflink: closed -> opening
Jun 15 18:30:20 nanguo ppp[1685]: Phase: deflink: Connected!
Jun 15 18:30:20 nanguo ppp[1685]: Phase: deflink: ioctl error (Inappropriate
ioctl for device)!
Jun 15 18:30:20 nanguo ppp[1685]: Phase: deflink: Disconnected!
Jun 15 18:30:20 nanguo ppp[1685]: Phase: deflink: Connect time: 0 secs: 0
octets in, 0 octets out
Jun 15 18:30:20 nanguo ppp[1685]: Phase:  total 0 bytes/sec, peak 0
bytes/sec on Tue Jun 15 18:30:20 1999
Jun 15 18:30:20 nanguo ppp[1687]: Phase: 1685 -> 1687: Dropped session
control
Jun 15 18:30:20 nanguo ppp[1687]: Phase: deflink: opening -> closed
Jun 15 18:30:20 nanguo ppp[1687]: Phase: bundle: Dead
Jun 15 18:30:20 nanguo ppp[1687]: Phase: deflink: closed -> lcp
Jun 15 18:30:36 nanguo ppp[1687]: Phase: deflink: lcp -> closed
Jun 15 18:30:36 nanguo ppp[1687]: Phase: PPP Terminated (normal).
Jun 15 19:50:19 nanguo ppp[2145]: Warning: Label ttyd1 rejected -direct
connection


I would REALLY appreciate any help on this - I'm getting desperate....


ps. Is that 'pp' option in gettytab a new thing?  I tried that route, but it
failed altogether. Didn't even try to start ppp,


Thanks for any help.

Bob



---  http://4qir.quantum-radio.net.au - Where Only The Dedicated Survive!
4QIR Quantum Radio. Bringing you the original sounds of AFVN, with some of
the
original DJ's - back on air - and supporting not only the original Vets, in
comprehensive AFVN Archives, but putting together segments for the fighting
men and
women of todays services all around the world. World Music, for people of
the world.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?018301beb78b$d7ce20e0$1a6001cb>