I decided I'd try to set up my dual 450 box for dialin service, so when I was away or
at work I could dial in on my second line and connect to the Internet. I had
many many problems and this will show you what exactly to check.
I started out with the dial-in section in the FreeBSD Handbook which ended up being
semi-useless and outdated as I am running a 3.2-stable machine.What I ended up doing
was:
in /etc/rc.conf:
enable proxy
gateway=enable
I used getty, not mgetty.
Add a new user whom you want to let use ppp. In this test circumstance, I used
the user "ppp" with home being /home/ppp and shell being /etc/ppp/ppp-shell.
/etc/ppp/ppp-shell:
#!/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
I then made 2 files in the ppp home directory:
-r--r--r-- 1 root wheel 0 Jul 26 05:43 .hushlogin
-r--r--r-- 1 root wheel 0 Jul 26 05:45 .rhosts
I then added a /etc/ppp/ppp.conf script:
ttyd0:
enable pap
enable passwdauth
set ifaddr 209.64.46.23 209.64.46.25 255.255.255.255
enable proxy
This set the dialin with the IP 209.64.46.25.
I then added a /etc/ppp/ppp.linkup addition:
ttyd0:
add 209.64.46.25 netmask 255.255.255.255 HISADDR
I then made a ppp.secret addition (for use with PAP). If you aren't
using PAP you will not need this:
# Authname Authkey Peer's IP address
ppp password 209.64.46.25
After that I checked /etc/ttys and /etc/gettytab and enabled ttyd0
and made sure that a reasonable speed setting was there and placed.
After all this I was ready to try.....Nothing....the box wouldn't answer the phone. |