Auto_PPP and FreeBSD

Richard Jones (rich@apricot.mee.com)
Mon, 7 Sep 1998 11:51:08 +0200



Rick Knight writes:
> 
> Somehow when I install FreeBSD, I didn't get the kernal ppp installed, so
> I'm useing user ppp and it works ok.

The GENERIC kernel comes with kernel PPP disabled by default, its a simple
case of uncommenting, or adding as appropriate, the following line to your
kernel config file and rebuilding.

pseudo-device  ppp     1

> I just can't get mgetty+snedfax to
> work. Can I take a look at your /etc/ttys file? It might help me with
> command structure.
> 

/etc/ttys isn't very exciting:-

cuaa0   "/usr/local/sbin/mgetty"        dialup  on
cuaa1   "/usr/local/sbin/mgetty"        dialup  on


The problem is far more likely to be with login.config or /etc/ppp/*. What
follows is kernel ppp specific but should still be helpful as a checklist
of things that you would probably also need to do with iijppp albeit in
different ways.

-- here is my current AutoPPP entry from login.config --

/AutoPPP/ - autoppp /usr/sbin/pppd debug

-- the user autoppp looks like --

autoppp:*:1000:1000:Auto PPP:/usr/home/autoppp:/nonexisten

I would guess that this user doesn't really need a real home directory, but
occasionally being able to use a .ppprc file is useful.

-- /etc/ppp/options --

crtscts                                 # hardware flow control
passive                                 # wait for LCP
modem                                   # modem line
netmask 255.255.255.0                   # force a class c (/24) mask
+chap                                   # force CHAP authentication
-pap                                    # refuse to authenticate with pap
#deflate 15,15                          # request gzip compression
bsdcomp 15,15                           # request bsd compression

Since I'm using chap authentication there is also a chap-secrets file and
I use options.cuaa0 and options.cuaa1 to allocate a fixed IP address to each
modem line.

-- chap-secrets (for example) --
auser	*	a'a-password
buser	*	b's-password

-- options.cuaa0 --

192.168.116.1:192.168.116.10            # ip's of local and remote hosts

Remember /var/log/messages and /var/log/ppp are you're friends as are the
mgetty log files (-x 5 or better).

If you have any more questions mail me off line since your problem is with
PPP config not MGetty.

Regards

	Rick

-- 
 _ __              Mitsubishi Electric PC Division
' )  )      /      3500 Parkside                     Tel:   (+44) 121 717 7171
 /--' o _. /_      Birmingham Business Park          Fax:   (+44) 121 717 0123
/  \_<_(__/ <_     BIRMINGHAM  B37 7YS 
Richard Jones      United Kingdom              Email: richardj@apricot.mee.com