Enquiry on iptables and inverse mask

ccto

Verified User
Joined
Feb 24, 2005
Messages
290
Location
Hong Kong
Hello everybody,

Does anyone know how to configure the iptables for the inverse-mask?

More specifically, it is to load balance the NFQUEUE
-A INPUT -p tcp -d *.*.*.[0,4,8,12,...,252] -j NFQUEUE 0
-A INPUT -p tcp -d *.*.*.[1,5,9,13,...,253] -j NFQUEUE 1
-A INPUT -p tcp -d *.*.*.[2,6,10,14,...,254] -j NFQUEUE 2
-A INPUT -p tcp -d *.*.*.[3,7,11,15,...,255] -j NFQUEUE 3

(for unknown reason, NFQUEUE queue-balance works fine in CentOS 6.4 , but not in CentOS 6.5, so finding alternatives)

Thank you
Regards
George
 
Back
Top