On Wednesday 13 November 2002 14:21, Alejandro Valdez wrote:
> Hello,
>
> I'm OpenServer user trying to setup a firewall with ipfilter, lasts days I
> have been reading as much information as I can, but there are some things
> that I don't understand at all.
>
> For example, when I define a rule with "flags" keyword what is the
> propouse of the flags mask?. I mean, what is the difference in the rule
> match between
>
> .... flags S/SA

>From man 5 ipf:

                      # will match any packet with just the SYN flag set
                      # out of the SYN-ACK pair; the common "establish"
                      # keyword action.  "S/SA" will NOT match a packet
                      # with BOTH SYN and ACK set, but WILL match "SFP".

> .... flags S        (it's taked as S/FSRPAU)

                      # becomes "flags S/AUPRFS" and will match
                      # packets with ONLY the SYN flag set.

>
> The how-to says something about some protocols that uses PUSH and URG tcp
> flags, do anyone know some common protocols that uses that?
> (it will save me a lot of time, when such protocols stop working at my site
> :-) )
>
> Alejandro Valdez

All TCP protocol implementations (as far as I know), when they make the 
initial connection set the SYN flag, and do not set the ACK flag. (I.E. in 
the first packet that is sent).

So flags S/SA is safe.

flags S/SA is normally used when you wish to use the "keep state" keywords, if 
the packet matches this, then it will be allowed through the firewall, 
subsequent packets, with the same src host / port, and dst host / port will 
match this rule, until such time as the connection is closed (I believe this 
is done my removing the entry from the state table when a packet with the FIN 
flag is sent through the firewall ????)

-Antony

*************************************************************************
This e-mail and any attachments may contain confidential or privileged
information.  If you are not the intended recipient, please contact the
sender immediately and do not use, store or disclose their contents.
Any views expressed are those of the individual sender and not of Kinetic 
Information System Services Limited unless otherwise stated.

                           www.kinetic.co.uk


Reply via email to