pfsync and pf tables

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

pfsync and pf tables

Wayne Cuddy
I have the requirement to NAT one address to 1 of 2 possible destination
addresses for a large number of devices. So I have 3 address pools which
are composed of these blocks: (well known address pool) (NAT'd pool A) (NAT'd pool B)

Target devices allocate addresses from pool A or pool B depending on
network conditions and they are always assigned the same host bits in
the address. For example device X will always be assigned
or In either case this corresponds to the well known
address Obviously only one of device X's addresses from
pools A & B will be active at any particular time.

I think I can use 2 pf tables, one for pool A and one for pool B, by
moving the well known address to the corresponding pool at runtime using
pfctl and applying rules based on table contents? Correct me if I'm wrong.

I'd also like to use carp and pfsync so that I have pair of these
systems for redundancy. The man-page for pfsync states that it "exposes
certain state changes" for synchronization purposes. Are change to pf
tables considered parts of pf's state? Or will I need to update tables
on both systems running pf in order to keep the tables in sync?

Thank you for your time,