Guest User!

You are not Sophos Staff.

Rules error?

Is this by design?

   I have 2 simple rules
LAN > ANY > ANY > ALLOW
LAN > HTTP > ANY > DENY 

Simple rules.  I want to allow everything out NAT, and force users to use PROXY ...  so I block Port 80.  Now when I put the LAN > ANY > ANY rule above the DENY one it doesn't work.  But with the DENY rule above it it does work?


Usering version 3.04
Just wondering if this is by design?
Thanks
Resistance
Parents Reply Children
  • The idea of packet filters goes like this:

    for all packets do the following

    check rule number 1,
    if it does match, do what it says
    and forget other rules -
    if it doesn't, check rule 2
    and so on

    (and there is additional deny all rule)

    so, if you have rules

    LAN > ANY > ANY > ALLOW
    LAN > HTTP > ANY > DENY 

    and try to go from lan to http it goes thru
    because it stops checking rules after 1st rule.

    otherwise it first checks that it is forbidden,
    and leaves it like that.

    the rule deny all is 'inspected last'

    - M