*BSD News Article 45423


Return to BSD News archive

#! rnews 2807 sserve.cc.adfa.oz.au
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!quagga.ru.ac.za!wabe.csir.co.za!goofy.unisa.ac.za!risc6.unisa.ac.za!radova
From: radova@risc6.unisa.ac.za (A. Radovanovic)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help on sliplogin
Date: 8 Jun 1995 12:38:16 GMT
Organization: University of South Africa
Lines: 86
Message-ID: <3r6qvo$slp@goofy.unisa.ac.za>
References: <3r17rm$g04@bonnie.tcd-dresden.de>
NNTP-Posting-Host: risc6.unisa.ac.za
X-Newsreader: TIN [version 1.1 PL9]

J Wunsch (j@narcisa.sax.de) wrote:
> Robert Nusbaum  <rnusbaum@earthlink.net> wrote:
> >Has anyone set up sliplogin to use freebsd 2.0 as a dial-in server?  I 
> >have read the man pages, FAQs, and news tips but can't get this puppy to 
> >talk.  I'm having difficulty in particular with what to put in the 
> >slip.login script.  Any advice would be greatly appreciated.

> Here are the contents of a slip.hosts and slip.login files of a live
> configuration:

> #
> # login local addr      remote addr     mask            opt-args
> #
> sluriah 192.109.108.139 193.175.26.65   0xffffffe0      autocomp
> slrade  192.109.108.139 192.109.108.201 0xffffff00      autocomp
> slwern  192.109.108.139 192.109.108.202 0xffffff00      autocomp
> sljames 192.109.108.139 192.9.200.6     0xffffff00      autocomp


> #!/bin/sh
> #
> #       @(#)slip.login  5.1 (Berkeley) 7/1/90

> #
> # Login file for a slip line.  sliplogin invokes this as
> #
> # /etc/slip.login slipunit ttyspeed login local-addr remote-addr mask opt-args
> #

> PATH=/sbin:/usr/sbin:/bin:/usr/bin; export PATH

> UNIT=$1
> SPEED=$2
> LOGIN=$3
> LOCAL=$4
> REMOTE=$5
> MASK=$6

> if [ -f /etc/slip.debug ] ; then
>         /usr/bin/logger -p daemon.debug -t slip.login "$LOGIN attached \
> @ $SPEED via sl$UNIT, $LOCAL -> $REMOTE, mask $MASK"
> fi

> /sbin/ifconfig sl$UNIT inet $LOCAL $REMOTE netmask $MASK

> exit
> -- 
> cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
>                                    http://www.sax.de/~joerg/

> Never trust an operating system you don't have sources for. ;-)


Another configuration which uses ARP.

Alex

slip.hosts:
---------------
#
# login local-addr      remote-addr     mask            opt
#
username 163.200.97.33   163.200.101.76  0xffffe000      normal



slip.login:
-------------
#!/bin/sh -
#
# slipuint ttyspeed loginname local-addr remote-addr mask args
#
/sbin/ifconfig sl$1 inet $4 $5 netmask $6
# Answer ARP requests for the SLIP client with our Ethernet addr
/usr/sbin/arp -s $5 00:00:c0:54:23:7a pub

slip.logout:
--------------
#!/bin/sh -
#
# slipuint ttyspeed loginname local-addr remote-addr mask args
#
/sbin/ifconfig sl$1 down
# Quit answering ARP requests for the SLIP client
/usr/sbin/arp -d $5