From owner-freebsd-isp Mon Apr 19 1:38:18 1999 Delivered-To: freebsd-isp@freebsd.org Received: from monk.lz.space.ru (monk.lz.space.ru [194.135.176.77]) by hub.freebsd.org (Postfix) with ESMTP id 65E2C14CE1 for ; Mon, 19 Apr 1999 01:38:08 -0700 (PDT) (envelope-from Andrew.Karjagin@tdis.gctc.rssi.ru) Received: from tdis.gctc.rssi.ru (tdis.gctc.rssi.ru [193.232.26.70]) by monk.lz.space.ru (8.9.1/8.9.1) with SMTP id MAA20112; Mon, 19 Apr 1999 12:35:27 +0400 (MSD) Received: from tdis.gctc.rssi.ru by tdis.gctc.rssi.ru (SMI-8.6/SMI-SVR4) id MAA01811; Mon, 19 Apr 1999 12:32:23 +0400 Message-ID: <371AE9BF.FA13529A@tdis.gctc.rssi.ru> Date: Mon, 19 Apr 1999 12:30:55 +0400 From: "Andrew A.Karjagin" Organization: Gagarin Cosmonaut Training Center X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4m) X-Accept-Language: ru, en MIME-Version: 1.0 To: "Pavel V. Antipov" , freebsd-isp@freebsd.org Subject: Re: PPP works abnormally References: Content-Type: multipart/mixed; boundary="------------E6C7D6B02965D8472FA34BB3" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------E6C7D6B02965D8472FA34BB3 Content-Type: multipart/alternative; boundary="------------ECB9233CC593BBDC93825EEF" --------------ECB9233CC593BBDC93825EEF Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit "Pavel V. Antipov" wrote: > Hi, > > I try to create PPP server for MS clients. I have FreeBSD 2.2.5. > When client dialups my server in terminal mode (via HyperTerminal) > everything works correctly with shell for ppp: /bin/csh. > But when I set ppp shell to /usr/local/ppplogin, client-side drops > the connection. > > What can I do to make ppp-server to work correctly ? > > I have some settings: > > /etc/ppp/ppp.conf > # > # ppp.conf showing possible setup for ppp server > # > > # default is to enable extentions to ppp to have Microsoft clients > # negotiate nameservers and netbios nameservers > > default: > disable lqr > set log phase lcp chat > set timeout 0 > enable msext > > # dial-in PPP where mgetty has "auto" detected PPP packets and ran > # /usr/sbin/ppp -direct pap(line) > # (see sample.ppp-pap-dialup) > # we enable pap to authenticate the user, and enable passwdauth > # (another modification) to use the password file to authenticate > # the user, and log them on to the system > > papcuaa1: You can use PAP auth only with mgetty compiled with AUTO_PPP option (see comments) > > enable pap > enable passwdauth > set log phase lcp chat > set ifaddr 192.168.25.23 192.168.25.24 255.255.255.224 > enable msext > enable proxy > > /etc/passwd > root:*:0:0:Charlie &:/root:/bin/csh > toor:*:0:0:Bourne-again Superuser:/root: > daemon:*:1:1:Owner of many system processes:/root:/nonexistent > operator:*:2:20:System &:/usr/guest/operator:/bin/csh > bin:*:3:7:Binaries Commands and Source,,,:/:/nonexistent > games:*:7:13:Games pseudo-user:/usr/games:/nonexistent > news:*:8:8:News Subsystem:/:/nonexistent > man:*:9:9:Mister Man Pages:/usr/share/man:/nonexistent > uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/libexec/uucp/uucico > xten:*:67:67:X-10 daemon:/usr/local/xten:/nonexistent > pop:*:68:6:Post Office Owner:/nonexistent:/nonexistent > nobody:*:65534:65534:Unprivileged user:/nonexistent:/nonexistent > ppp:*:69:69:PPP User Login:/home/ppp:/usr/local/bin/ppplogin > > /etc/ttys > # > # @(#)ttys 5.1 (Berkeley) 4/17/89 > # > # name getty type status comments > # > # This entry needed for asking password when init goes to single-user mode > # If you want to be asked for password, change "secure" to "insecure" here > console none unknown off secure > # > ttyv0 "/usr/libexec/getty Pc" cons25r on secure > # Virtual terminals > ttyv1 "/usr/libexec/getty Pc" cons25r on secure > ttyv2 "/usr/libexec/getty Pc" cons25r on secure > # Serial terminals > ttyd0 "/usr/libexec/getty std.9600" unknown off secure > ttyd1 "/usr/libexec/getty std.38400" unknown off secure > ttyd2 "/usr/libexec/getty std.9600" unknown off secure > ttyd3 "/usr/libexec/getty std.9600" unknown off secure > # > cuaa1 "/usr/libexec/getty std.19200" dialup on secure > > /etc/gettytab is standard > > /usr/local/bin/ppplogin > #!/bin/sh -p > exec /usr/sbin/ppp -direct papcuaa1 Use /etc/ppp/ppp.* files as dot files for your purposes. Also you can use information for PPP-server from my HomePage ( http://tdis.gctc.rssi.ru/~richi only in Russian!) > > > ----------- > Please help me ! > > Your's sincerly > Pavel > E-mail:pavel@ikar.elect.ru > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message --------------ECB9233CC593BBDC93825EEF Content-Type: text/html; charset=koi8-r Content-Transfer-Encoding: 7bit "Pavel V. Antipov" wrote:
Hi,

I try to create PPP server for MS clients. I have FreeBSD 2.2.5.
When client dialups my server in terminal mode (via HyperTerminal)
everything works correctly with shell for ppp: /bin/csh.
But when I set ppp shell to /usr/local/ppplogin, client-side drops
the connection.

What can I do to make ppp-server to work correctly ?

I have some settings:

/etc/ppp/ppp.conf
#
# ppp.conf showing possible setup for ppp server
#

# default is to enable extentions to ppp to have Microsoft clients
# negotiate nameservers and netbios nameservers

default:
 disable lqr
 set log phase lcp chat
 set timeout 0
 enable msext

# dial-in PPP where mgetty has "auto" detected PPP packets and ran
#   /usr/sbin/ppp -direct pap(line)
# (see sample.ppp-pap-dialup)
# we enable pap to authenticate the user, and enable passwdauth
# (another modification) to use the password file to authenticate
# the user, and log them on to the system

papcuaa1:

You can use PAP auth only with mgetty compiled with AUTO_PPP option (see comments)
 
 enable pap
 enable passwdauth
 set log phase lcp chat
 set ifaddr 192.168.25.23 192.168.25.24 255.255.255.224
 enable msext
 enable proxy

/etc/passwd
root:*:0:0:Charlie &:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/nonexistent
operator:*:2:20:System &:/usr/guest/operator:/bin/csh
bin:*:3:7:Binaries Commands and Source,,,:/:/nonexistent
games:*:7:13:Games pseudo-user:/usr/games:/nonexistent
news:*:8:8:News Subsystem:/:/nonexistent
man:*:9:9:Mister Man Pages:/usr/share/man:/nonexistent
uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/libexec/uucp/uucico
xten:*:67:67:X-10 daemon:/usr/local/xten:/nonexistent
pop:*:68:6:Post Office Owner:/nonexistent:/nonexistent
nobody:*:65534:65534:Unprivileged user:/nonexistent:/nonexistent
ppp:*:69:69:PPP User Login:/home/ppp:/usr/local/bin/ppplogin

/etc/ttys
#
#       @(#)ttys        5.1 (Berkeley) 4/17/89
#
# name  getty                           type    status          comments
#
# This entry needed for asking password when init goes to single-user mode
# If you want to be asked for password, change "secure" to "insecure" here
console none                            unknown off secure
#
ttyv0   "/usr/libexec/getty Pc"         cons25r on  secure
# Virtual terminals
ttyv1   "/usr/libexec/getty Pc"         cons25r on secure
ttyv2   "/usr/libexec/getty Pc"         cons25r on secure
# Serial terminals
ttyd0   "/usr/libexec/getty std.9600"   unknown off secure
ttyd1   "/usr/libexec/getty std.38400"  unknown off secure
ttyd2   "/usr/libexec/getty std.9600"   unknown off secure
ttyd3   "/usr/libexec/getty std.9600"   unknown off secure
#
cuaa1   "/usr/libexec/getty std.19200"  dialup  on secure

/etc/gettytab is standard

/usr/local/bin/ppplogin
#!/bin/sh -p
exec /usr/sbin/ppp -direct papcuaa1

Use /etc/ppp/ppp.* files as dot files for your purposes.
Also you can use information for PPP-server from my HomePage ( http://tdis.gctc.rssi.ru/~richi only in Russian!)
 

-----------
Please help me !

                        Your's sincerly
                        Pavel
                        E-mail:pavel@ikar.elect.ru

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

--------------ECB9233CC593BBDC93825EEF-- --------------E6C7D6B02965D8472FA34BB3 Content-Type: text/x-vcard; charset=koi8-r; name="Andrew.Karjagin.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Andrew A.Karjagin Content-Disposition: attachment; filename="Andrew.Karjagin.vcf" begin:vcard n:Karjagin;Andrew x-mozilla-html:FALSE url:http://tdis.gctc.rssi.ru/~richi org:Gagarin Cosmonaut Training Center adr:;;;Star Town;;;Russia version:2.1 email;internet:Andrew.Karjagin@tdis.gctc.rssi.ru x-mozilla-cpt:;-15056 fn:Andrew Karjagin end:vcard --------------E6C7D6B02965D8472FA34BB3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message