pf  

Binat and if macro issue

Karl O. Pinc
Tue, 29 Sep 2009 09:13:44 -0700

Hi,

I may be missing something obvious, but I've
a problem with macros for interfaces and binat.

OpenBSD 4.4 stable

------------<snip>---------
net_main_if = "vr1"
net_stndby_if = "vr2"
net_if = "{" $net_main_if $net_stndby_if "}"

binat on $net_if inet from $static_intwks_block1 \
                           to any -> $static_pubwks_block1
------------<snip>---------

When I do pfctl -s nat I see a binat only on vr1.
Changing the binat to nat and rdr I see nat and rdr
on both vr1 and vr2.

Karl <k...@meme.com>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein

  • Binat and if macro issue Karl O. Pinc