Date: Fri, 19 Jul 1996 13:48:16 +0900 From: Toshihiro Kanda <candy@fct.kgc.co.jp> To: Thomas Graichen <graichen@axp5.physik.fu-berlin.de> Cc: hackers@FreeBSD.org Subject: Re: iijppp server Message-ID: <199607190448.NAA08589@xxx.fct.kgc.co.jp> In-Reply-To: Thomas Graichen's message of 18 Jul 1996 17:29:09 %2B0900 References: <199607180724.JAA04819@oberon.physik.fu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607190448.NAA08589>
