Block all ports except SSH/HTTP in ipchains and iptables

Posted by user198003 on Super User See other posts from Super User or by user198003
Published on 2010-06-15T14:35:18Z Indexed on 2010/06/15 16:43 UTC
Read the original article Hit count: 176

Filed under:
|
|
|
|

How can I block all ports except

  1. ssh (port 22)
  2. httpd (port 80)

using iptables and iphains?

© Super User or respective owner

Related posts about linux

Related posts about firewall