freebsd shaper
Sean Hafeez
sahafeez at edgefocus.com
Fri Oct 10 13:15:27 PDT 2003
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe at freebsd.org"
>
More information about the freebsd-ipfw
mailing list