Traffic shaping part 2



Hello Guys!

I decided between freebsd. Anyone can give me a real life example, full ipfw traffic shaping ruleset or something like that. I written one myself but I hardly can find even examples on the net so pls some1 send me to private if it's possible.
I don't want to share bandwith among hosts, I only want to define 4-5 class of flow for example 1 for ssh, telnet etc. delay sensitive traffic, 1 for heavy ftp and P2P traffic ( and this is another part when i lacked, I haven't got any idea how could I manage the passive ftp sessions or bittorrent traffic with ipfw).

In few words what I did:

ipfw pipe 1 config bw 50Kbit/s queue 30
ipfw pipe 6 config bw 300Kbit/s queue 40
....
$cmd 200 pipe 1 tcp from any to any 22 in via $LANINT keep-state
$cmd 30000 pipe 1 tcp from any to any 22,24,25,110,389,993,995 out via $LANINT
$cmd 60000 pipe 6 ip from any to any out
...

And stuff like this. I know it's not the best, because i statically attach 1 kind of traffic to a pipe, but this way file transfer don't disturb down ssh traffic as far as i know, but as i told you i'm new in this topic.

Any help appreciated!

Regards,

Jax


_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • pf + squid
    ... My config files look like this: ... pass in on $int_if inet proto tcp from any to 127.0.0.1 port 3128 keep state ... ipfw -f flush ... ipfw pipe 10 config bw 12KBytes/s ...
    (freebsd-questions)
  • Bandwidth shaping for different flows
    ... a bridge only and no layer-3 filtering. ... ipfw add pipe 1 ip from any to Network-A ... ipfw add pipe 2 ip from Network-B to Network-A ... ipfw pipe 2 config bw 1000Kbit/s queue 10 ...
    (freebsd-questions)
  • Re: Re[2]: Net statistics for single user
    ... That is almost exactly the same as I still do with ipfw and dummynet ... ipfw pipe 1 config mask src-ip 0xffffffff buckets 512 ... ipfw pipe 2 config mask dst-ip 0xffffffff buckets 512 ... and then read the counters with "ipfw pipe show". ...
    (freebsd-isp)
  • Re: jitter and dummynet
    ... ipfw pipe 1 config delay 50ms ... ipfw pipe 2 config delay 300ms ... ipfw add prob 0.2 pipe 1 ip from any to any ...
    (comp.unix.bsd.freebsd.misc)
  • Re: ipfw & fBSD 4.11
    ... > I'm currently trying to win battle with ipfw and setting up bandwidth ... > All machines in my network 192.168.10.0/24, ... ipfw pipe 10 config bw 0Kbit/s ...
    (comp.unix.bsd.freebsd.misc)