Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there anything wrong with these rules? They cannot be added to iptables, no error but they just don't show up in iptables -vnL

iptables  -I FORWARD 1 -s 1.2.3.4 -p udp -m connlimit --connlimit-above 20 --connlimit-mask 24 -j DROP

iptables -I FORWARD 1 -s 1.2.3.4 -p udp -m connlimit --connlimit-above 10 -j DROP

iptables -I FORWARD 1 -s 1.2.3.4/24 -p udp -m connlimit --connlimit-above 10 --connlimit-mask 24 -j DROP
share|improve this question

1 Answer 1

Try the following command:

iptables -vnL FORWARD
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.