From owner-freebsd-hackers Thu Jul 18 22:25:11 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA01332 for hackers-outgoing; Thu, 18 Jul 1996 22:25:11 -0700 (PDT) Received: from mail0.iij.ad.jp (root@mail0.iij.ad.jp [192.244.176.61]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id WAA01313 for ; Thu, 18 Jul 1996 22:25:08 -0700 (PDT) Received: from uucp1.iij.ad.jp (uucp1.iij.ad.jp [192.244.176.73]) by mail0.iij.ad.jp (8.6.12+2.4W/3.3W9-MAIL) with ESMTP id OAA21724; Fri, 19 Jul 1996 14:24:52 +0900 Received: (from uucp@localhost) by uucp1.iij.ad.jp (8.6.12+2.4W/3.3W9-UUCP) with UUCP id OAA07677; Fri, 19 Jul 1996 14:24:51 +0900 Received: from xxx.fct.kgc.co.jp by yyy.kgc.co.jp (8.7.5/3.4W:95122611) id NAA23643; Fri, 19 Jul 1996 13:48:18 +0900 (JST) Received: from localhost by xxx.fct.kgc.co.jp (8.6.12/3.3W8:95062916) id NAA08589; Fri, 19 Jul 1996 13:48:17 +0900 Message-Id: <199607190448.NAA08589@xxx.fct.kgc.co.jp> To: Thomas Graichen cc: hackers@FreeBSD.org Subject: Re: iijppp server In-reply-to: Thomas Graichen's message of 18 Jul 1996 17:29:09 +0900 References: <199607180724.JAA04819@oberon.physik.fu-berlin.de> Date: Fri, 19 Jul 1996 13:48:16 +0900 From: Toshihiro Kanda Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > has anyone gotten iijppp working as server - or are there any bugs in 2.1.0 > which prevent it from running correctly or has anybody any more documentation > he would like to add to the handbook about setting up a iijppp server ? I'm running iijppp as a server. > * i tried it - due to the debug output the two machines negotiate fine > (exchanging the adresses etc - looks good so far) I assume this means carriar signal is up. > * but then nothing more happens and the server blocks the modem with ppplogin > until i reboot (but maybe a setup problem from me) Then, what does `ps axww' say? Is there getty, login or ppp? I recommend you test first you can login as a normal user via modems. > my questions are: > > * has anyone got this working (then please send me a mail with all your config > stuff) I use both `login: password:' and PAP authentication. First, a user login as a user `ppp' by (almost public) password. Then the user authenticate his/herself by PAP (name/passwd keys are stored in ppp.secret). (1) server side setting -------8<------- /etc/ttys ttyd1 "/usr/local/sbin/getty std.38400" unknown on insecure -------8<------- /etc/gettytab std.38400|38400-baud:\ :np:sp#38400: -------8<------- /etc/passwd ppp:*:32001:117:PPP login:/home/ppp:/usr/local/sbin/ppplogin ( I assume ppp's password is 'FOO8BAR' ) -------8<------- /usr/local/sbin/ppplogin (-rwxr-xr-x 1 root bin ) #!/bin/sh exec /usr/sbin/ppp -direct ppp -------8<------ ppp.conf ppp: set speed 115200 set timeout 99999999 disable chap enable pap enable proxy -------8<------- ppp.secret YOURNAME YOURPASSWD 192.168.1.1 Folloings are optional. -------8<------- /etc/sysconfig gateway=YES # Set NO if you don't want to a client access other than this host. -------8<------- /etc/rc.local # if peer_ip_address has the same network address, enable proxy arp arp -s 192.168.1.1 xx:xx:xx:xx:xx:xx pub # xx:.. is this hosts' MAC address (2) client side setting (for iijppp) -------8<------- ppp.conf myserver: set device /dev/cuaa2 set phone 123-4567 set login "TIMEOUT 5 login:-\\r-login: ppp word: FOO8BAR" deny chap accept pap set authname YOURNAME set authkey YOURPASSWD set openmode active set timeout 180 30 10 dial Then run `ppp myserver'. candy@fct.kgc.co.jp (Toshihiro Kanda)