Re: Dummynet

From: Anders Soendergaard (none@Anders.Soendergaard--nokia.com.lh.bsd-dk.dk)
Date: Wed 25 Sep 2002 - 16:08:01 CEST


Date: Wed, 25 Sep 2002 16:08:01 +0200
From: Anders Soendergaard <none@Anders.Soendergaard--nokia.com.lh.bsd-dk.dk>
To: bsd-dk@bsd-dk.dk
Subject: Re: Dummynet

On Wed, Sep 25, 2002 at 03:06:04PM +0200, ext Søren Elleby Sørensen wrote:
> Jeg er rimelig grøn på dummynet - har læst på
> http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO, hvor der et lille eksempel,
> og hvis jeg har fattet det korrekt - ville det se sådanne ud i mit tilfælde:
>
> ipfw pipe 10 config mask src-ip 0xffffff00 bw 512Kbit/s
> ipfw pipe 20 config mask dst-ip 0xffffff00 bw 512Kbit/s
> ipfw add pipe 10 all from 10.0.0.0/24 to any out via fxp0
> ipfw add pipe 20 all from 10.0.0.0/24 to any in via fxp

Jeg ville umiddelbart sige:

ipfw add pipe 10 all from 10.0.0.0/24 to any out via fxp0
ipfw add pipe 20 all from any to 10.0.0.0/24 in via fxp0
ipfw pipe 10 config queue 512Kbit/s
ipfw pipe 20 config queue 512Kbit/s
 
> Jeg har smidt de 4 linier ind i et lille shellscript,
> der kører ved boot

Det rigtige ville være at rette i /etc/rc.firewall og fx kopiere og
tilrette 'simple' sectionen til 'myconfiguration' og så kalde
firewall_type="myconfiguration" fra /etc/rc.conf

/Anders
======================================================================
*Anders Søndergaard Jensen*Sen. Specialist, IT Infrastructure/Systems*
          *Nokia,Frederikskaj,DK-1790 Copenhagen*+4520976251*
"Jazz is not dead. It just smells funny!" -Frank Zappa
======================================================================



This archive was generated by hypermail 2b30 : Wed 15 Nov 2006 - 18:24:23 CET