Solved How to add an interface to a group automatically (on-boot)?

I can add an interface to a group easily enough with

Code:
ifconfig <interface> group <group name>

However, I want this to be automatic (if possible). I can write a script and place it in /usr/local/etc/rc.d and enable that, but is there an existing way to do this? I tried editing /etc/rc.conf as follows (just guessing if it was a configuration option):

/etc/rc.conf
Code:
ifconfig_em0_group=local
ifconfig_em0_groups=local

However, neither worked. I also checked to see if group was in /etc/rc.d/netif and it was not. I'm hoping there is a hidden configuration somewhere that will let me do this because I would like to use this with pf and want to ensure the groups are configured prior to starting pf.
 
Back
Top