[CentOS] combining iptables parameters

Marcus Moeller mail at marcus-moeller.de
Thu Oct 29 20:50:47 UTC 2009

Dear James.

>> is there a way to combine iptables parameters like: iptables
>> -A OUTPUT -p UDP & -p TCP -d $IP1 & -d $IP2 ?

I should have better written something like:

-A OUTPUT -p UDP OR -p TCP -d $IP1 OR -d $IP2

as that's what I was looking for. Sorry.

Best Regards

More information about the CentOS mailing list