Skip to contentSkip to conversation

block uid range in 1 rule with match owner ?

DISCUSSION [email protected] 2 participants 2 messages Jan 20, 2005

lore
Share & tools
lore
#0 lore raw

How can I block a range of uid's in 1 rule ?

I tried this, but that gave an error.
iptables -A OUTPUT -p tcp --match owner --uid-owner 1000:2000 -j DROP

Is it at all possible?

#1 lore raw
Quoted 6 lines · On Thu, 2005-01-20 at 16:16, [email protected] wrote:

How can I block a range of uid's in 1 rule ?

I tried this, but that gave an error.
iptables -A OUTPUT -p tcp --match owner --uid-owner 1000:2000 -j DROP

Is it at all possible?

that's not how the owner match works. it only matches a single uid. dunno how hard it would be to hack the source to support the range operator, as i know zip about C/C++.

-j

--
"Facts are meaningless. You could use facts to prove anything that's
even remotely true!"
--The Simpsons