From owner-freebsd-isp Tue Mar 25 07:13:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA17407 for isp-outgoing; Tue, 25 Mar 1997 07:13:51 -0800 (PST) Received: from obiwan.aceonline.com.au (obiwan.aceonline.com.au [203.103.90.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA17401 for ; Tue, 25 Mar 1997 07:13:46 -0800 (PST) Received: from localhost (adrian@localhost) by obiwan.aceonline.com.au (8.8.5/8.8.5) with SMTP id XAA04035; Tue, 25 Mar 1997 23:10:10 +0800 (WST) Date: Tue, 25 Mar 1997 23:10:09 +0800 (WST) From: Adrian Chadd To: Damian Hamill cc: freebsd-isp@freebsd.org Subject: Re: routing to a dialup network In-Reply-To: <3337A893.167EB0E7@cablenet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 25 Mar 1997, Damian Hamill wrote: > > > Date: Mon, 24 Mar 1997 19:26:14 +0000 > > > From: Damian Hamill > > > To: freebsd-isp@freebsd.org > > > Subject: routing to a dialup network > > > > > > What's the best way of routing to a network over dialup ppp ? > > Thanks Andrew, but that's the easy bit. I was asking the question from > the point of view of the ISP providing routing to a customers network > over a dialup ppp link. > I just run a script in /etc/ppp/ip-up which checks for the IP of whats being brought up, and if it matches, it sets up the static route. Note this is a linux script, there isn't any reason why it won't work in FreeBSD (except you have to "fix" up the route lines). Hope this helps, Adrian Chadd -- Begin #! /bin/sh # This assigns the IP of whatever is being brought up in ppp to $RIP. RIP=$5 # Ignore this bit, this is just for some pedantic logging. :) /etc/ppp/ppplog UP $2 " %6s %12s %s" $1 $2 $5 >>/etc/ppp/logins /etc/ppp/ipup $1 $2 $3 $4 $5 # Here is the important bits. case $RIP in # Add route for Rod 203.19.29.20) /sbin/route add 203.19.29.20 gw 203.19.29.3 $1 ;; # Add route for Trevor 203.19.29.34) /sbin/route add -net 203.19.28.0 netmask 255.255.255.252 $1 ;; # Add route for AISWA 203.19.29.40) /sbin/route add -net 203.19.28.128 netmask 255.255.255.224 $1 ;; # Add route for Cybertown 203.19.29.41) /sbin/route add -net 203.19.28.40 netmask 255.255.255.248 $1 ;; # Add route for Consultech 203.19.29.42) /sbin/route add -net 203.19.28.32 netmask 255.255.255.248 $1 /sbin/route add -net 203.19.28.24 netmask 255.255.255.248 $1 ;; # Add route for Terminator Technologies 203.19.29.39) /sbin/route add -net 203.19.28.96 netmask 255.255.255.224 $1 ;; # Add route for Adrian 203.19.29.37) /sbin/route add -net 203.19.28.56 netmask 255.255.255.248 $1 ;; # Add route for Sapient 203.19.29.35) /sbin/route add -net 203.19.28.8 netmask 255.255.255.248 $1 ;; # Add route for Mike Stokfams sbunet 203.19.29.45) /sbin/route add -net 203.19.28.64 netmask 255.255.255.248 $1 ;; # Add route for cybertown 203.19.29.41) /sbin/route add -net 203.19.28.40 netmask 255.255.255.248 $1 ;; 203.19.29.50) /sbin/route add -net 203.19.28.72 netmask 255.255.255.248 $1 ;; # Add route to intra - 6-Mar-97 203.19.29.17) /sbin/route add -net 203.19.28.16 netmask 255.255.255.252 $1 ;; esac