iptables rule to deny all ports except the ones allowed

By Posted in - Blog on July 27th, 2016 1 Comments
sudo iptables -A INPUT -p tcp -m tcp -m multiport ! --dports 80,443,22 -j DROP

(1) awesome folk have had something to say...

Please leave a Comment

Solve : *
6 × 30 =