mac_ifoff4
Interface silencing policy
Usage
To compile the interface silencing policy into your kernel, place the following lines in your kernel configuration file:
options MAC options MAC_IFOFF
Alternately, to load the interface silencing policy module at boot time, place the following line in your kernel configuration file:
options MAC
and in loader.conf(5):
mac_ifoff_load="YES"
Overview
The mac_ifoff interface silencing module allows administrators to enable and disable incoming and outgoing data flow on system network interfaces via the sysctl(8) interface.
To disable network traffic over the loopback (lo(4)) interface, set the sysctl(8) OID security.mac.ifoff.lo_enabled to 0 (default 1).
To enable network traffic over other interfaces, set the sysctl(8) OID security.mac.ifoff.other_enabled to 1 (default 0).
To allow BPF traffic to be received, even while other traffic is disabled, set the sysctl(8) OID security.mac.ifoff.bpfrecv_enabled to 1 (default 0).
Label Format
No labels are defined.