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$ 32057baf37SChris Costello.Dd DECEMBER 10, 2002 33057baf37SChris Costello.Os 34057baf37SChris Costello.Dt MAC_IFOFF 4 35057baf37SChris Costello.Sh NAME 36057baf37SChris Costello.Nm mac_ifoff 37057baf37SChris Costello.Nd interface silencing policy 38057baf37SChris Costello.Sh SYNOPSIS 39057baf37SChris CostelloTo compile the interface silencing policy into your kernel, 40057baf37SChris Costelloplace the following lines in your kernel 41057baf37SChris Costelloconfiguration file: 42057baf37SChris Costello.Cd "options MAC" 43057baf37SChris Costello.Cd "options MAC_IFOFF" 44057baf37SChris Costello.Pp 45057baf37SChris CostelloAlternately, to load the interface silencing policy module at boot time, 46057baf37SChris Costelloplace the following line in your kernel configuration file: 47057baf37SChris Costello.Cd "options MAC" 48057baf37SChris Costello.Pp 49057baf37SChris Costelloand in 50057baf37SChris Costello.Xr loader.conf 5 : 51057baf37SChris Costello.Cd mac_ifoff_load= Ns \&"YES" 52057baf37SChris Costello.Sh DESCRIPTION 53057baf37SChris CostelloThe 54057baf37SChris Costello.Nm 55057baf37SChris Costellointerface silencing module allows administrators to enable and disable 56057baf37SChris Costelloincoming and outgoing data flow on system network interfaces 57057baf37SChris Costellovia the 58057baf37SChris Costello.Xr sysctl 8 59057baf37SChris Costellointerface. 60057baf37SChris Costello.Pp 61057baf37SChris CostelloTo disable network traffic over the loopback 62057baf37SChris Costello.Xr ( lo 4 ) 63057baf37SChris Costellointerface, set the 64057baf37SChris Costello.Xr sysctl 8 65057baf37SChris CostelloOID 66057baf37SChris Costello.Va security.mac.ifoff.lo_enabled 67057baf37SChris Costelloto 68057baf37SChris Costello.Li 0 69057baf37SChris Costello(default 70057baf37SChris Costello.Li 1 ) . 71057baf37SChris Costello.Pp 72057baf37SChris CostelloTo enable network traffic over other interfaces, 73057baf37SChris Costelloset the 74057baf37SChris Costello.Xr sysctl 8 75057baf37SChris CostelloOID 76057baf37SChris Costello.Va security.mac.ifoff.other_enabled 77057baf37SChris Costelloto 78057baf37SChris Costello.Li 1 79057baf37SChris Costello(default 80057baf37SChris Costello.Li 0 ) . 81057baf37SChris Costello.Pp 82057baf37SChris CostelloTo allow BPF traffic to be received, 83057baf37SChris Costelloeven while other traffic is disabled, 84057baf37SChris Costelloset the 85057baf37SChris Costello.Xr sysctl 8 86057baf37SChris CostelloOID 87057baf37SChris Costello.Va security.mac.ifoff.bpfrecv_enabled 88057baf37SChris Costelloto 89057baf37SChris Costello.Li 1 90057baf37SChris Costello(default 91057baf37SChris Costello.Li 0 ) . 92057baf37SChris Costello.Ss Label Format 93057baf37SChris CostelloNo labels are defined. 94057baf37SChris Costello.Sh SEE ALSO 95057baf37SChris Costello.Xr lomac 4 , 96ccf09d7cSChris Costello.Xr mac 4 , 97057baf37SChris Costello.Xr mac_bsdextended 4 , 989cad8863SChris Costello.Xr mac_lomac 4 , 99057baf37SChris Costello.Xr mac_mls 4 , 100057baf37SChris Costello.Xr mac_none 4 , 101057baf37SChris Costello.Xr mac_partition 4 , 102057baf37SChris Costello.Xr mac_seeotheruids 4 , 103057baf37SChris Costello.Xr mac_test 4 , 104057baf37SChris Costello.Xr mac 9 105057baf37SChris Costello.Sh HISTORY 106057baf37SChris CostelloThe 107057baf37SChris Costello.Nm 108057baf37SChris Costellopolicy module first appeared in 109057baf37SChris Costello.Fx 5.0 110057baf37SChris Costelloand was developed by the TrustedBSD Project. 111057baf37SChris Costello.Sh AUTHORS 112057baf37SChris CostelloThis software was contributed to the 113057baf37SChris Costello.Fx 114057baf37SChris CostelloProject by Network Associates Labs, 115057baf37SChris Costellothe Security Research Division of Network Associates 116057baf37SChris CostelloInc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), 117057baf37SChris Costelloas part of the DARPA CHATS research program. 118057baf37SChris Costello.Sh BUGS 119057baf37SChris CostelloSee 120057baf37SChris Costello.Xr mac 9 121057baf37SChris Costelloconcerning appropriateness for production use. 122057baf37SChris CostelloThe TrustedBSD MAC Framework is considered experimental in 123057baf37SChris Costello.Fx . 124057baf37SChris Costello.Pp 125057baf37SChris CostelloWhile the MAC Framework design is intended to support the containment of 126057baf37SChris Costellothe root user, not all attack channels are currently protected by entry 127057baf37SChris Costellopoint checks. 128057baf37SChris CostelloAs such, MAC Framework policies should not be relied on, in isolation, 129057baf37SChris Costelloto protect against a malicious privileged user. 130