"Yellow Arrow" question?

Discussion in 'LnS English Forum' started by nuser, Jun 6, 2007.

Thread Status:
Not open for further replies.
  1. nuser

    nuser Registered Member

    Joined:
    May 31, 2007
    Posts:
    105
    Location:
    Singapore
    Hi Frederic,
    Sorry for starting an similar topic, but I have been confused about the 'yellow arrow' for a long time and wonder if you can give some advices.

    I understand that:
    Normally, this yellow arrow is set in 99.99% cases. In this case, when a packet matches all criteria of a rule, lns applies the rule to this packet immediately, whatever the following rules.

    The question confusing me is that:
    If I change the 'yellow arrow' to a 'dot', theoretically, lns should continue to match the following rules, even if it has found a matched rule in the ruleset.

    A very simple example:

    Rule 1: block 139 (turn off 'yellow arrow')
    Rule 2: allow 139 (turn on 'yellow arrow')

    In this case, if a inbounding packet with the destination port 139 is received, Rule 1 matches, LnS should block this packet.

    But, since 'yellow arrow' is NOT checked, LnS will continue to match the following rules with this packet. LnS then matches Rule 2. This packet matches Rule 2 exactly again. But, rule 2 is an allowing rule.
    So, Should LnS allow this packeto_O?
    Logically, It should (because the 'yellow arrow' of rule 1 is cleared)

    I hope I have expressed my question clearly.
    Any help would be greatly appreciated.:thumb:
    thanks in advance.
     
  2. Frederic

    Frederic LnS Developer

    Joined:
    Jan 9, 2003
    Posts:
    4,353
    Location:
    France
    Hi nuser,

    Yes, the last rule matching the packet is the one that is applied.

    So for this example:
    Rule 1: block 139 (turn off 'yellow arrow')
    Rule 2: allow 139 (turn on 'yellow arrow')

    A packet on port 139 will be allowed.

    Usually, turning off the "yellow arrow" is only used to add a logging rule at the top of the ruleset, and the block/allow attribute is not relevant.
    This kind of rule acts like a sniffer, and doesn't interfer with the rest of the ruleset. This is the only purpose of the "yellow arrow".

    Regards,

    Frederic
     
  3. nuser

    nuser Registered Member

    Joined:
    May 31, 2007
    Posts:
    105
    Location:
    Singapore
    thanks, Frederic and Climenole,:thumb:
    I understand now.

    The last question:
    What will happen if I turn off 'yellow arrow' of the last rule (block All other packets) of ruleset? since there are NO following rules.
    Actually, nobody will do that.:cool:
     
  4. Climenole

    Climenole Look 'n' Stop Expert

    Joined:
    Jun 3, 2005
    Posts:
    1,637
    Hi nuser :)

    Here's, in the series of Climenole's paradoxes ©, the first one:

    " In all well built rules set, the last locking rule is mandatory and never used
    since, in a such rules set, all packets are processed by one of the previous rules,
    therefore the last rule is simultaneously mandatory and unused."


    :cool:
     
  5. nuser

    nuser Registered Member

    Joined:
    May 31, 2007
    Posts:
    105
    Location:
    Singapore
    Hi, Frederic,
    I just tested more and found that the block/allow attribute does affect the filtering result!o_O
    Just create an empty rule (click Add, OK), clear the yellow arrow, and set 'logging'
    If I set 'allow', all the traffic are logged.
    If I set "block', Web browser gets nothing. (blocked really).
     
  6. Frederic

    Frederic LnS Developer

    Joined:
    Jan 9, 2003
    Posts:
    4,353
    Location:
    France
    Yes, you are right the Blocking attribute is anyway handled for rules without the "Yellow Arrow".
    But there is no real usage for that. You should not create a blocking rule when you remove the "Yellow Arrow".

    Frederic
     
  7. nuser

    nuser Registered Member

    Joined:
    May 31, 2007
    Posts:
    105
    Location:
    Singapore
    Hi, Frederic,
    Seems this statement is wrong:blink:
     
  8. Frederic

    Frederic LnS Developer

    Joined:
    Jan 9, 2003
    Posts:
    4,353
    Location:
    France
    Yes, it was. Sorry for that.

    Frederic
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.