On Mon, 11 Nov 2002, Michael Schwendt wrote:
> On Mon, 11 Nov 2002 13:43:48 +0800 (WST), Luke Brown wrote:
> > Just a quick question, is there a way to specify multiple addresses in
> > an iptables statement?
>
> No, there isn't. Use a loop and your favourite shell.

Well, not exactly. You can specify subnets, like

iptables -I OUTPUT 1 -p tcp -d 192.168.0.0/24 --destination-port 80 -j REJECT

which will reject 192.168.0.0 all the way through 192.168.0.255


-- 
\ \/ / _       |~\  _ In God We Trust. All Others Pay Cash.
 >  < / \|\  /|+-< | |   "The world is a comedy to those that think,
/ /\ \\_/| \/ ||__)|_|    a tragedy to those who feel." - Horace Walpole



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to