*BSD News Article 45039


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!uhog.mit.edu!bloom-beacon.mit.edu!gatech!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!narcisa.sax.de!not-for-mail
From: j@narcisa.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help on sliplogin
Date: 6 Jun 1995 11:41:10 +0200
Organization: Private U**x site, Dresden.
Lines: 50
Message-ID: <3r17rm$g04@bonnie.tcd-dresden.de>
References: <3qohsb$dbi@mars.earthlink.net>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

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. ;-)