Le Mon, 25 Jun 2018 16:12:49 -0400,
Joseph Ward <jbwli...@hilltopgroup.com> a écrit :

Hello,

> My goal is for this pf.conf to be able to be used on multiple systems
> which unfortunately have different network cards, so the interface
> names are different.  If "egress" isn't going to work, is there
> another way to accomplish that goal?

You can use some interface groups.
ifconfig_ix0="inet 192.168.20.251/24 group CARPDEV group IFFOO"

then in pf.conf use the groups
pass in on IFFOO ...

or
pass quick on CARPDEV proto carp keep state (no-sync)

There are several restrictions, you can't use group interface in
pf rules "set skip" and on nat/route-to rules. And the name of a group
cannot end by a number (IFFOO1 -> invalid)

But that's work fine, we use groups a lot here.

Regards

_______________________________________________
freebsd-pf@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to "freebsd-pf-unsubscr...@freebsd.org"

Reply via email to