Date: Tue, 25 Mar 1997 23:10:09 +0800 (WST) From: Adrian Chadd <adrian@obiwan.aceonline.com.au> To: Damian Hamill <damian@cablenet.net> Cc: freebsd-isp@freebsd.org Subject: Re: routing to a dialup network Message-ID: <Pine.BSF.3.95q.970325230535.3799A-100000@obiwan.aceonline.com.au> In-Reply-To: <3337A893.167EB0E7@cablenet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Mar 1997, Damian Hamill wrote: > > > Date: Mon, 24 Mar 1997 19:26:14 +0000 > > > From: Damian Hamill <damian@cablenet.net> > > > 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 <adrian@psinet.net.au> -- 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 <adrian@psinet.net.au 11-August-1996> 203.19.29.45) /sbin/route add -net 203.19.28.64 netmask 255.255.255.248 $1 ;; # Add route for cybertown <adrian@psinet.net.au 7-Jan-1997> 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 <adrian@psinet.net.au> - 6-Mar-97 203.19.29.17) /sbin/route add -net 203.19.28.16 netmask 255.255.255.252 $1 ;; esac
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970325230535.3799A-100000>