Whats the iptables rule/command to allow all traffic from INPUT and source 10.0.0.0/255.255.0.0, i.e. anything either UDP or TCP? Thanks.

link|improve this question

48% accept rate
feedback

1 Answer

iptables -A INPUT -s 10.0.0.0/16 -j ACCEPT

or

iptables -A INPUT -s 10.0.0.0/16 -p tcp -j ACCEPT
iptables -A INPUT -s 10.0.0.0/16 -p udp -j ACCEPT

if you need only TCP and UDP

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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