Algu�m tinha perguntado h� algum tempo atr�s como funcionava quando duas regras tinham o mesmo n�mero.

Elas s�o verificadas na ordem de entrada; A que foi criada primeiro � verificada primeiro.

veja o texto da man page:

rule_number
        Each rule is associated with a rule_number in the range 1..65535,
        with the latter reserved for the default rule.  Rules are checked
        sequentially by rule number.  Multiple rules can have the same
        number, in which case they are checked (and listed) according to
        the order in which they have been added.  If a rule is entered
        without specifying a number, the kernel will assign one in such a
        way that the rule becomes the last one before the default rule.
        Automatic rule numbers are assigned by incrementing the last non-
        default rule number by the value of the sysctl variable
        net.inet.ip.fw.autoinc_step which defaults to 100.  If this is
        not possible (e.g. because we would go beyond the maximum allowed
        rule number), the same number of the last non-default value is
        used instead.
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/


Responder a