Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2006 07:55:56 +0200
From:      Jax <cybercorecentre@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Traffic shaping part 2
Message-ID:  <449E256C.4080203@gmail.com>

next in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?449E256C.4080203>