xref: /freebsd/share/man/man4/mac_ifoff.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1057baf37SChris Costello.\" Copyright (c) 2002 Networks Associates Technology, Inc.
2057baf37SChris Costello.\" All rights reserved.
3057baf37SChris Costello.\"
45792da74SChris Costello.\" This software was developed for the FreeBSD Project by Chris Costello
55792da74SChris Costello.\" at Safeport Network Services and Network Associates Laboratories, the
65792da74SChris Costello.\" Security Research Division of Network Associates, Inc. under
7057baf37SChris Costello.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8057baf37SChris Costello.\" DARPA CHATS research program.
9057baf37SChris Costello.\"
10057baf37SChris Costello.\" Redistribution and use in source and binary forms, with or without
11057baf37SChris Costello.\" modification, are permitted provided that the following conditions
12057baf37SChris Costello.\" are met:
13057baf37SChris Costello.\" 1. Redistributions of source code must retain the above copyright
14057baf37SChris Costello.\"    notice, this list of conditions and the following disclaimer.
15057baf37SChris Costello.\" 2. Redistributions in binary form must reproduce the above copyright
16057baf37SChris Costello.\"    notice, this list of conditions and the following disclaimer in the
17057baf37SChris Costello.\"    documentation and/or other materials provided with the distribution.
18057baf37SChris Costello.\"
19057baf37SChris Costello.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
20057baf37SChris Costello.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21057baf37SChris Costello.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22057baf37SChris Costello.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
23057baf37SChris Costello.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24057baf37SChris Costello.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25057baf37SChris Costello.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26057baf37SChris Costello.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27057baf37SChris Costello.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28057baf37SChris Costello.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29057baf37SChris Costello.\" SUCH DAMAGE.
30057baf37SChris Costello.\"
31*208a8b95SEdward Tomasz Napierala.Dd July 25, 2015
32057baf37SChris Costello.Dt MAC_IFOFF 4
33aa12cea2SUlrich Spörlein.Os
34057baf37SChris Costello.Sh NAME
35057baf37SChris Costello.Nm mac_ifoff
363cc3bf52SRuslan Ermilov.Nd "interface silencing policy"
37057baf37SChris Costello.Sh SYNOPSIS
38057baf37SChris CostelloTo compile the interface silencing policy into your kernel,
39057baf37SChris Costelloplace the following lines in your kernel
40057baf37SChris Costelloconfiguration file:
413cc3bf52SRuslan Ermilov.Bd -ragged -offset indent
42057baf37SChris Costello.Cd "options MAC"
43057baf37SChris Costello.Cd "options MAC_IFOFF"
443cc3bf52SRuslan Ermilov.Ed
45057baf37SChris Costello.Pp
46057baf37SChris CostelloAlternately, to load the interface silencing policy module at boot time,
47057baf37SChris Costelloplace the following line in your kernel configuration file:
483cc3bf52SRuslan Ermilov.Bd -ragged -offset indent
49057baf37SChris Costello.Cd "options MAC"
503cc3bf52SRuslan Ermilov.Ed
51057baf37SChris Costello.Pp
52057baf37SChris Costelloand in
53057baf37SChris Costello.Xr loader.conf 5 :
543cc3bf52SRuslan Ermilov.Bd -literal -offset indent
553cc3bf52SRuslan Ermilovmac_ifoff_load="YES"
563cc3bf52SRuslan Ermilov.Ed
57057baf37SChris Costello.Sh DESCRIPTION
58057baf37SChris CostelloThe
59057baf37SChris Costello.Nm
60057baf37SChris Costellointerface silencing module allows administrators to enable and disable
61057baf37SChris Costelloincoming and outgoing data flow on system network interfaces
62057baf37SChris Costellovia the
63057baf37SChris Costello.Xr sysctl 8
64057baf37SChris Costellointerface.
65057baf37SChris Costello.Pp
66057baf37SChris CostelloTo disable network traffic over the loopback
673cc3bf52SRuslan Ermilov.Pq Xr lo 4
68057baf37SChris Costellointerface, set the
69057baf37SChris Costello.Xr sysctl 8
70057baf37SChris CostelloOID
71057baf37SChris Costello.Va security.mac.ifoff.lo_enabled
723cc3bf52SRuslan Ermilovto 0 (default 1).
73057baf37SChris Costello.Pp
74057baf37SChris CostelloTo enable network traffic over other interfaces,
75057baf37SChris Costelloset the
76057baf37SChris Costello.Xr sysctl 8
77057baf37SChris CostelloOID
78057baf37SChris Costello.Va security.mac.ifoff.other_enabled
793cc3bf52SRuslan Ermilovto 1 (default 0).
80057baf37SChris Costello.Pp
81057baf37SChris CostelloTo allow BPF traffic to be received,
82057baf37SChris Costelloeven while other traffic is disabled,
83057baf37SChris Costelloset the
84057baf37SChris Costello.Xr sysctl 8
85057baf37SChris CostelloOID
86057baf37SChris Costello.Va security.mac.ifoff.bpfrecv_enabled
873cc3bf52SRuslan Ermilovto 1 (default 0).
88057baf37SChris Costello.Ss Label Format
89057baf37SChris CostelloNo labels are defined.
90057baf37SChris Costello.Sh SEE ALSO
91ccf09d7cSChris Costello.Xr mac 4 ,
92057baf37SChris Costello.Xr mac_bsdextended 4 ,
939cad8863SChris Costello.Xr mac_lomac 4 ,
94057baf37SChris Costello.Xr mac_mls 4 ,
95057baf37SChris Costello.Xr mac_none 4 ,
96057baf37SChris Costello.Xr mac_partition 4 ,
970c6e926fSChris Costello.Xr mac_portacl 4 ,
98057baf37SChris Costello.Xr mac_seeotheruids 4 ,
99057baf37SChris Costello.Xr mac_test 4 ,
100057baf37SChris Costello.Xr mac 9
101057baf37SChris Costello.Sh HISTORY
102057baf37SChris CostelloThe
103057baf37SChris Costello.Nm
104057baf37SChris Costellopolicy module first appeared in
105057baf37SChris Costello.Fx 5.0
1063cc3bf52SRuslan Ermilovand was developed by the
1073cc3bf52SRuslan Ermilov.Tn TrustedBSD
1083cc3bf52SRuslan ErmilovProject.
109057baf37SChris Costello.Sh AUTHORS
110057baf37SChris CostelloThis software was contributed to the
111057baf37SChris Costello.Fx
112057baf37SChris CostelloProject by Network Associates Labs,
113057baf37SChris Costellothe Security Research Division of Network Associates
1145203edcdSRuslan ErmilovInc.
1155203edcdSRuslan Ermilovunder DARPA/SPAWAR contract N66001-01-C-8035
1163cc3bf52SRuslan Ermilov.Pq Dq CBOSS ,
117057baf37SChris Costelloas part of the DARPA CHATS research program.
118057baf37SChris Costello.Sh BUGS
119057baf37SChris CostelloWhile the MAC Framework design is intended to support the containment of
120057baf37SChris Costellothe root user, not all attack channels are currently protected by entry
121057baf37SChris Costellopoint checks.
122057baf37SChris CostelloAs such, MAC Framework policies should not be relied on, in isolation,
123057baf37SChris Costelloto protect against a malicious privileged user.
124