Hi misc,

I'm looking at how to apply the use of the stick-address option.  Can
someone confirm for me that I only need to use the option for the
first pool based rule, and that any subsequent rule utilising that
same pool spec will also have the option applied ?

IE.

I have 2 rules as follows:

pass in log on $int_if \
    route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin
sticky-address \
    from any to any \
    tag INT_INET_BAL

pass in log on $int_if \
    route-to { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin \
    inet proto icmp from <net_int> to any icmp-type $icmp_types \
    tag INT_INET_BAL

It's a syntax error to declare 'sticky-address' on that second rule.
Is that because the first rule's pool specification 'creates' the pool
with the sticky option enabled, and the second rule just 'matches'
that pool spec and uses it as the first rule created it ?  Or will
that second rule not have the sticky-address option and I'm doing
something wrong ?

Cheers
Dave

Reply via email to