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.\" 31057baf37SChris Costello.\" $FreeBSD$ 323cc3bf52SRuslan Ermilov.\" 333cc3bf52SRuslan Ermilov.Dd December 10, 2002 34057baf37SChris Costello.Os 35057baf37SChris Costello.Dt MAC_IFOFF 4 36057baf37SChris Costello.Sh NAME 37057baf37SChris Costello.Nm mac_ifoff 383cc3bf52SRuslan Ermilov.Nd "interface silencing policy" 39057baf37SChris Costello.Sh SYNOPSIS 40057baf37SChris CostelloTo compile the interface silencing policy into your kernel, 41057baf37SChris Costelloplace the following lines in your kernel 42057baf37SChris Costelloconfiguration file: 433cc3bf52SRuslan Ermilov.Bd -ragged -offset indent 44057baf37SChris Costello.Cd "options MAC" 45057baf37SChris Costello.Cd "options MAC_IFOFF" 463cc3bf52SRuslan Ermilov.Ed 47057baf37SChris Costello.Pp 48057baf37SChris CostelloAlternately, to load the interface silencing policy module at boot time, 49057baf37SChris Costelloplace the following line in your kernel configuration file: 503cc3bf52SRuslan Ermilov.Bd -ragged -offset indent 51057baf37SChris Costello.Cd "options MAC" 523cc3bf52SRuslan Ermilov.Ed 53057baf37SChris Costello.Pp 54057baf37SChris Costelloand in 55057baf37SChris Costello.Xr loader.conf 5 : 563cc3bf52SRuslan Ermilov.Bd -literal -offset indent 573cc3bf52SRuslan Ermilovmac_ifoff_load="YES" 583cc3bf52SRuslan Ermilov.Ed 59057baf37SChris Costello.Sh DESCRIPTION 60057baf37SChris CostelloThe 61057baf37SChris Costello.Nm 62057baf37SChris Costellointerface silencing module allows administrators to enable and disable 63057baf37SChris Costelloincoming and outgoing data flow on system network interfaces 64057baf37SChris Costellovia the 65057baf37SChris Costello.Xr sysctl 8 66057baf37SChris Costellointerface. 67057baf37SChris Costello.Pp 68057baf37SChris CostelloTo disable network traffic over the loopback 693cc3bf52SRuslan Ermilov.Pq Xr lo 4 70057baf37SChris Costellointerface, set the 71057baf37SChris Costello.Xr sysctl 8 72057baf37SChris CostelloOID 73057baf37SChris Costello.Va security.mac.ifoff.lo_enabled 743cc3bf52SRuslan Ermilovto 0 (default 1). 75057baf37SChris Costello.Pp 76057baf37SChris CostelloTo enable network traffic over other interfaces, 77057baf37SChris Costelloset the 78057baf37SChris Costello.Xr sysctl 8 79057baf37SChris CostelloOID 80057baf37SChris Costello.Va security.mac.ifoff.other_enabled 813cc3bf52SRuslan Ermilovto 1 (default 0). 82057baf37SChris Costello.Pp 83057baf37SChris CostelloTo allow BPF traffic to be received, 84057baf37SChris Costelloeven while other traffic is disabled, 85057baf37SChris Costelloset the 86057baf37SChris Costello.Xr sysctl 8 87057baf37SChris CostelloOID 88057baf37SChris Costello.Va security.mac.ifoff.bpfrecv_enabled 893cc3bf52SRuslan Ermilovto 1 (default 0). 90057baf37SChris Costello.Ss Label Format 91057baf37SChris CostelloNo labels are defined. 92057baf37SChris Costello.Sh SEE ALSO 93057baf37SChris Costello.Xr lomac 4 , 94ccf09d7cSChris Costello.Xr mac 4 , 95057baf37SChris Costello.Xr mac_bsdextended 4 , 969cad8863SChris Costello.Xr mac_lomac 4 , 97057baf37SChris Costello.Xr mac_mls 4 , 98057baf37SChris Costello.Xr mac_none 4 , 99057baf37SChris Costello.Xr mac_partition 4 , 1000c6e926fSChris Costello.Xr mac_portacl 4 , 101057baf37SChris Costello.Xr mac_seeotheruids 4 , 102057baf37SChris Costello.Xr mac_test 4 , 103057baf37SChris Costello.Xr mac 9 104057baf37SChris Costello.Sh HISTORY 105057baf37SChris CostelloThe 106057baf37SChris Costello.Nm 107057baf37SChris Costellopolicy module first appeared in 108057baf37SChris Costello.Fx 5.0 1093cc3bf52SRuslan Ermilovand was developed by the 1103cc3bf52SRuslan Ermilov.Tn TrustedBSD 1113cc3bf52SRuslan ErmilovProject. 112057baf37SChris Costello.Sh AUTHORS 113057baf37SChris CostelloThis software was contributed to the 114057baf37SChris Costello.Fx 115057baf37SChris CostelloProject by Network Associates Labs, 116057baf37SChris Costellothe Security Research Division of Network Associates 1173cc3bf52SRuslan ErmilovInc. under DARPA/SPAWAR contract N66001-01-C-8035 1183cc3bf52SRuslan Ermilov.Pq Dq CBOSS , 119057baf37SChris Costelloas part of the DARPA CHATS research program. 120057baf37SChris Costello.Sh BUGS 121057baf37SChris CostelloSee 122057baf37SChris Costello.Xr mac 9 123057baf37SChris Costelloconcerning appropriateness for production use. 1243cc3bf52SRuslan ErmilovThe 1253cc3bf52SRuslan Ermilov.Tn TrustedBSD 1263cc3bf52SRuslan ErmilovMAC Framework is considered experimental in 127057baf37SChris Costello.Fx . 128057baf37SChris Costello.Pp 129057baf37SChris CostelloWhile the MAC Framework design is intended to support the containment of 130057baf37SChris Costellothe root user, not all attack channels are currently protected by entry 131057baf37SChris Costellopoint checks. 132057baf37SChris CostelloAs such, MAC Framework policies should not be relied on, in isolation, 133057baf37SChris Costelloto protect against a malicious privileged user. 134