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. |

| Subject: | Re: Minimal secure iptables firewall |
|---|---|
| Date: | Wed, 20 Jul 2005 09:13:06 +0200 |
I was trusting in local traffic, but you are ok. More restrictions, more security (in general). On 7/19/05, Security Admin <security@rbmail.de> wrote:
Hi in my opinion it is not a good idea to leave output on accept. If somebody successfully runs an exploit on your machine, which tries to load a rootkit or something else from somewhere onto the box, it will fail if you restrict the access to outside... Greetings, Flo Carlos Costa schrieb: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.
-- [ http://www.improveyourweb.com/ ] web.log.about.web.development
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Linux client connecting to checkpoint VPN-1, David Ballester |
|---|---|
| Next by Date: | Netscreen Question, dattatray narayan vaidya |
| Previous by Thread: | Re: Minimal secure iptables firewall, Security Admin |
| Next by Thread: | RE: Minimal secure iptables firewall, Meidinger Chris |
| Indexes: | [Date] [Thread] [Top] [All Lists] |