Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Oct 2003 13:15:25 -0700
From:      Sean Hafeez <sahafeez@edgefocus.com>
To:        Aleksandar Simonovski <aleksandar@unet.com.mk>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: freebsd shaper
Message-ID:  <7BE7878D-FB5E-11D7-8CBD-003065F1EE08@edgefocus.com>
In-Reply-To: <20031010155911.31ae5f3a.aleksandar@unet.com.mk>

next in thread | previous in thread | raw e-mail | index | archive | help
ipfw -f flush
/sbin/natd -interface rl0
ipfw add 999 divert natd all from any to any via rl0
ipfw add pipe 1 ip from any to any in recv rl1
ipfw add pipe 2 ip from any to any out xmit rl1
ipfw pipe 1 config mask src-ip 0xffffffff bw 1024kbits/s
ipfw pipe 2 config mask dst-ip 0xffffffff bw 1024kbits/s

this limits all users to 1mb, rl1 is internal. rl0 is external. you 
need to read the docs. very simple to use.

On Friday, October 10, 2003, at 06:59 AM, Aleksandar Simonovski wrote:

> Hi,
> This is my scenario, now it is working on Slackware 9.1 with CBQ
> but i wanna do it on FreeBSD 5.1
>
>    1.---------
> 		|
>    2.---------
> 		| <-------> HUB <-----> ETH1 <--- SHAPER ---> ETH0 <-----> INTERNET
>    3.---------
> 		|
>    4.---------
>
> 1,2,3 and 4 are all different networks
> 1 has  192.168.0.199/24 that is 192.168.0.199 is alias on ETH1
> so a need NAT for this one.
> ETH1 has four aliases which are gateways for 1,2,3, and 4
> this is working on the linux box but i have some troubles with 
> limiting thr traffic with CBQ
> so am asking if anyone knows how to do this on FreeBSD 5.1 with IPFW 
> and DUMMYNET
>
> thaks,
> Aleksandar
>
>
>
> _______________________________________________
> freebsd-ipfw@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7BE7878D-FB5E-11D7-8CBD-003065F1EE08>