Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2006 12:29:05 +0200
From: (Peter N. M. Hansteen)
Subject:   Re: Limit p2p with pf n altq
Message-ID:  <>
In-Reply-To: <> (sonjaya's message of "Tue, 26 Sep 2006 00:34:12 -0700 (PDT)")
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> also how to limit  some ip not port with pf .

you set up your queues, then assign traffic to them via your pass
rules.  Your pass rules can use whichever criteria you like, ie

altq on $ext_if cbq bandwidth 10Mb queue { def, mostofmybandwidth, notalot }
     queue def bandwidth 20% cbq(default borrow red)
     queue mostofmybandwidth 77% cbq(default borrow red) { most_lowdelay, most_bulk }
     queue most_lowdelay priority 7
     queue most_bulk priority 7
     queue notalot 3% cbq
block all
pass from $localnet to any port $allowedports keep state queue mostofmybandwidth 
pass from $iptostarve to any port $allowedports keep state queue notalot 

- you get the idea.
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
20:11:56 delilah spamd[26905]: disconnected after 36099 seconds

Want to link to this message? Use this URL: <>