Skip to contentSkip to conversation

Firewall Script Help

DISCUSSION [email protected] 2 participants 2 messages Mar 8, 2004

lore
Share & tools
lore
#0 lore raw

Anthony:

Quoted 11 lines

-----Original Message-----
From: Antony Stone [mailto:[email protected]]
Sent: Monday, March 8, 2004 08:32 PM
To: [email protected]
Subject: Re: Firewall Script Help

Quoted 3 lines · David Cannings
Quoted 2 lines

0 0 DROP tcp -- any any anywhere
anywhere tcp flags:FIN,ACK/FIN

Quoted 7 lines
Quoted 4 lines

As I understand it, this means "check the flags FIN and ACK, only match if FIN is set and ACK isn't". This would match packets that only have the FIN flag set, which I am fairly sure are valid. I may need correcting on this issue, however.

You are correct.

[...]
Packets that only have the FIN flag set are valid -- but I believe would be taken care of by the ESTABLISHED,RELATED rule. The FIN FLAG rule I entered just in case someone decided to bombard my systems with FIN flag packets only... Is that an unneeded rule to protect against a DoS attack?

#1 lore raw
Quoted 11 lines · On Monday 08 March 2004 9:14 pm, [email protected] wrote:

Antony:

Quoted 7 lines
Quoted 5 lines

As I understand it, this means "check the flags FIN and ACK, only match if FIN is set and ACK isn't". This would match packets that only have the FIN flag set, which I am fairly sure are valid. I may need correcting on this issue, however.

You are correct.

Packets that only have the FIN flag set are valid -- but I believe would be taken care of by the ESTABLISHED,RELATED rule.

Yes, that's a fair point.

Quoted 3 lines

The FIN FLAG rule I entered
just in case someone decided to bombard my systems with FIN flag packets only... Is that an unneeded rule to protect against a DoS attack?

I'm not aware of a DoS attack using FIN flags (since no resources get used by a system when it receives a FIN packet), however people certainly do carry out port scans using FIN packets, and therefore I agree with you, it's probably a sensible thing to block.

Antony.

Signature · 6 lines
Software development can be quick, high quality, or low cost.

The customer gets to pick any two out of three.

                                                     Please reply to the list;
                                                           please don't CC me.