iptables rule to deny all ports except the ones allowed

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

Please leave a Comment

Solve : *
30 × 5 =