Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Firewalls
[Top] [All Lists]

Minimal secure iptables firewall

Subject: Minimal secure iptables firewall
Date: Sat, 16 Jul 2005 21:25:57 +0200
Hello all:

Suppose the typical situation where we have a web server we can
secure. What about this minimal iptables configuration?

-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -s <admin_ip> -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -j DROP
-A FORWARD -j DROP
-A OUTPUT -j ACCEPT

That is, 
INPUT:
 accept local
 accept port 80
 accept port 22 from admin_ip(s)
 accept related and established connections ('related' could be
removed, since I don't permit ftp connections, imho)
 deny all other connections

FORWARD:
 deny

OUTPUT:
 accept (I trust my webserver)

 Is this configuration secure? Am I miss something?

 Thank you very much,
   Carlos.

<Prev in Thread] Current Thread [Next in Thread>