Firewall and trusting state ESTABLISHED :)
Hello,
I have finished setting up a linux based firewall (slackware) and I feel it is locked down well enough.
In order to allow internal clients to access external web servers I added a rule to forward port 80.
I then found that no packets would make it back in, so I added another rule allowing ext to int interface forwarding for established connections.
What I want to know is can I trust having one rule saying
iptables -A FORWARD -i external -o internal -m state --state ESTABLISHED -j ACCEPT
or should I have many rules like
iptables -A FORWARD -i external -o internal -p tcp --sport 80 -m state --state ESTABLISHED -j ACCEPT
Seems like a dumb question -- I guess what I really should be asking is how secure is "-m state --state ESTABLISHED" ?
Signature · 3 lines
Michael Gale Network Administrator Utilitran Corporation
Quoted 2 lines · Michael Gale
Seems like a dumb question -- I guess what I really should be asking is how secure is "-m state --state ESTABLISHED" ?
As far as I'm aware, the strength of this rule is exactly the same as whatever rules you have allowing NEW connections to become ESTABLISHED.
In other words, I think the simpler version of the rule is perfectly good
enough. Specifying things like the source port adds nothing, because the
connection tracking system is already based on {source,destination}{IP,port}.
If packets which you don't want seem to be coming in as ESTABLISHED, then there's something wrong with what you accepted as NEW in the first place.
Antony.
Signature · 5 lines
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.
Please reply to the list;
please don't CC me.Thanks -- that provided the perfect definition :)
P.S -- I like your quotes that get added
Michael.
Quoted 26 lines · On Tue, 9 Dec 2003 20:15:49 +0000 Antony Stone <[email protected]>…
Quoted 2 lines · Michael Gale
Seems like a dumb question -- I guess what I really should be asking is how secure is "-m state --state ESTABLISHED" ?
As far as I'm aware, the strength of this rule is exactly the same as whatever rules you have allowing NEW connections to become ESTABLISHED.
In other words, I think the simpler version of the rule is perfectly good
enough. Specifying things like the source port adds nothing, because the
connection tracking system is already based on {source,destination}{IP,port}.If packets which you don't want seem to be coming in as ESTABLISHED, then there's something wrong with what you accepted as NEW in the first place.
Antony.
Signature · 5 lines
If the human brain were so simple that we could understand it, we'd be so simple that we couldn't. Please reply to the list; please don't CC me.
Signature · 3 lines
Michael Gale Network Administrator Utilitran Corporation