4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd system configuration information
36 contains descriptive information about the local host name, configuration
37 details for any potential network interfaces and which services should be
38 started up at system initial boot time.
39 In new installations, the
41 file is generally initialized by the system installation utility,
46 is not to run commands or perform system startup actions
48 Instead, it is included by the
49 various generic startup scripts in
51 which conditionalize their
52 internal actions according to the settings found there.
56 file is included from the file
57 .Pa /etc/defaults/rc.conf ,
58 which specifies the default settings for all the available options.
59 Options need only be specified in
61 when the system administrator wishes to override these defaults.
63 .Pa /etc/rc.conf.local
64 is used to override settings in
66 for historical reasons.
68 .Pa /etc/rc.conf.local
69 you can also place smaller configuration files for each
73 directory, which will be included by the
76 For jail configurations you could use the file
77 .Pa /etc/rc.conf.d/jail
78 to store jail specific configuration options.
84 .Dq Ar name Ns Li = Ns Ar value
88 The following list provides a name and short description for each
89 variable that can be set in the
92 .Bl -tag -width indent-two
97 enable output of debug messages from rc scripts.
98 This variable can be helpful in diagnosing mistakes when
99 editing or integrating new scripts.
100 Beware that this produces copious output to the terminal and
106 disable informational messages from the rc scripts.
107 Informational messages are displayed when
108 a condition that is not serious enough to warrant a warning or
116 when faststart is used (e.g., at boot time).
117 .It Va early_late_divider
119 The name of the script that should be used as the
120 delimiter between the
124 stages of the boot process.
125 The early stage should contain all the services needed to
126 get the disks (local or remote) mounted so that the late
127 stage can include scripts contained in the directories
130 variable (see below).
131 Thus, the two likely candidates for this value are
133 for the typical system, and
135 if the system needs remote file
136 systems mounted to get access to the
138 directories; for example when
146 is likely to be an appropriate value.
147 Extreme care should be taken when changing this value,
148 and before changing it one should ensure that there are
149 adequate provisions to recover from a failed boot
150 (such as physical contact with the machine,
151 or reliable remote console access).
152 .It Va always_force_depends
156 scripts use the force_depend function to check whether required
157 services are already running, and to start them if necessary.
158 By default during boot time this check is bypassed if the
159 required service is enabled in
160 .Pa /etc/rc.conf[.local] .
161 Setting this option will bypass that check at boot time and
162 always test whether or not the service is actually running.
163 Enabling this option is likely to increase your boot time if
164 services are enabled that utilize the force_depend check.
169 no swapfile is installed, otherwise the value is used as the full
170 pathname to a file to use for additional swap space.
175 enable support for Automatic Power Management with
183 to handle APM event from userland.
184 This also enables support for APM.
191 these are the flags to pass to the
198 to handle device added, removed or unknown events from the kernel.
205 scripts at boot time.
208 Configuration file for
214 A list of kernel modules to load right after the local
216 Loading modules at this point in the boot process is
217 much faster than doing it via
218 .Pa /boot/loader.conf
219 for those modules not necessary for mounting local disk.
220 .It Va kldxref_enable
227 to automatically rebuild
232 .It Va kldxref_clobber
242 will overwrite existing
249 .It Va kldxref_module_path
254 delimited list of paths containing
266 enable the system power control facility with the
275 these are the flags to pass to the
279 Controls the creation of a
282 Always happens if set to
284 and never happens if set to
286 If set to anything else, a memory file system is created if
290 Controls the size of a created
294 Extra options passed to the
296 utility when the memory file system for
301 which inhibits the use of softupdates on
303 so that file system space is freed without delay
304 after file truncation or deletion.
307 for other options you can use in
310 Controls the creation of a
313 Always happens if set to
315 and never happens if set to
317 If set to anything else, a memory file system is created if
321 Controls the size of a created
325 Extra options passed to the
327 utility when the memory file system for
332 which inhibits the use of softupdates on
334 so that file system space is freed without delay
335 after file truncation or deletion.
338 for other options you can use in
341 Controls the automatic population of the
344 Always happens if set to
346 and never happens if set to
348 If set to anything else, a memory file system is created if
351 Note that this process requires access to certain commands in
355 is mounted on normal systems.
356 .It Va cleanvar_enable
363 List of directories to search for startup script files.
364 .It Va script_name_sep
366 The field separator to use for breaking down the list of startup script files
367 into individual filenames.
368 The default is a space.
369 It is not necessary to change this unless there are startup scripts with names
371 .It Va hostapd_enable
380 The fully qualified domain name (FQDN) of this host on the network.
381 This should almost certainly be set to something meaningful, even if
382 there is no network connection.
385 is used to set the hostname via DHCP,
386 this variable should be set to an empty string.
387 If this value remains unset when the system is done booting
388 your console login will display the default hostname of
392 The NIS domain name of this host, or
395 .It Va dhclient_program
397 Path to the DHCP client program
398 .Pa ( /sbin/dhclient ,
403 .It Va dhclient_flags
405 Additional flags to pass to the DHCP client program.
410 manpage for a description of the command line options available.
411 .It Va dhclient_flags_ Ns Aq Ar iface
412 Additional flags to pass to the DHCP client program running on
415 When specified, this variable overrides
417 .It Va background_dhclient
421 to start the DHCP client in background.
422 This can cause trouble with applications depending on
423 a working network, but it will provide a faster startup
425 .It Va background_dhclient_ Ns Aq Ar iface
426 When specified, this variable overrides the
427 .Va background_dhclient
428 variable for interface
431 .It Va synchronous_dhclient
437 synchronously at startup.
438 This behavior can be overridden on a per-interface basis by replacing
442 .Va ifconfig_ Ns Aq Ar interface
447 .It Va defaultroute_delay
449 When set to a positive value, wait up to this long after configuring
450 DHCP interfaces at startup to give the interfaces time to receive a lease.
451 .It Va firewall_enable
455 to load firewall rules at startup.
456 If the kernel was not built with
457 .Cd "options IPFIREWALL" ,
460 kernel module will be loaded.
462 .Va ipfilter_enable .
463 .It Va firewall_script
465 This variable specifies the full path to the firewall script to run.
467 .Pa /etc/rc.firewall .
470 Names the firewall type from the selection in
471 .Pa /etc/rc.firewall ,
472 or the file which contains the local firewall ruleset.
473 Valid selections from
477 .Bl -tag -width ".Li simple" -compact
479 unrestricted IP access
481 all IP services disabled, except via
484 basic protection for a workstation
486 basic protection for a LAN.
489 If a filename is specified, the full path
491 .It Va firewall_quiet
495 to disable the display of firewall rules on the console during boot.
496 .It Va firewall_logging
500 to enable firewall event logging.
501 This is equivalent to the
502 .Dv IPFIREWALL_VERBOSE
504 .It Va firewall_flags
510 specifies a filename.
511 .It Va firewall_coscripts
513 List of executables and/or rc scripts to run after firewall starts/stops.
515 .\" ----- firewall_nat_enable setting --------------------------------
516 .It Va firewall_nat_enable
528 .It Va firewall_nat_interface
534 This is the name of the public interface or IP address on which
535 kernel NAT should run.
536 .It Va firewall_nat_flags
538 Additional configuration parameters for kernel NAT should be placed here.
539 .It Va dummynet_enable
543 will automatically load the
549 .\" -------------------------------------------------------------------
565 sockets must be enabled in the kernel.
566 If the kernel was not built with
567 .Cd "options IPDIVERT" ,
570 kernel module will be loaded.
571 .It Va natd_interface
573 This is the name of the public interface on which
576 The interface may be given as an interface name or as an IP address.
581 flags should be placed here.
586 flag is automatically added with the above
589 .\" ----- ipfilter_enable setting --------------------------------
590 .It Va ipfilter_enable
601 Typical usage will require putting
603 ipfilter_enable="YES"
621 can be enabled independently.
625 both require at least one of
635 options IPFILTER_DEFAULT_BLOCK
638 in the kernel configuration file is a good idea, too.
639 .\" ----- ipfilter_program setting ------------------------------
640 .It Va ipfilter_program
646 .\" ----- ipfilter_rules setting --------------------------------
647 .It Va ipfilter_rules
652 This variable contains the name of the filter rule definition file.
653 The file is expected to be readable for the
656 .\" ----- ipv6_ipfilter_rules setting ---------------------------
657 .It Va ipv6_ipfilter_rules
662 This variable contains the IPv6 filter rule definition file.
663 The file is expected to be readable for the
666 .\" ----- ipfilter_flags setting --------------------------------
667 .It Va ipfilter_flags
670 This variable contains flags passed to the
673 .\" ----- ipnat_enable setting ----------------------------------
683 network address translation.
686 for a detailed discussion.
687 .\" ----- ipnat_program setting ---------------------------------
694 .\" ----- ipnat_rules setting -----------------------------------
700 This variable contains the name of the file
701 holding the network address translation definition.
702 This file is expected to be readable for the
705 .\" ----- ipnat_flags setting -----------------------------------
709 This variable contains flags passed to the
712 .\" ----- ipmon_enable setting ----------------------------------
727 Setting this variable needs setting
734 for a detailed discussion.
735 .\" ----- ipmon_program setting ---------------------------------
742 .\" ----- ipmon_flags setting -----------------------------------
748 This variable contains flags passed to the
751 Another typical example would be
752 .Dq Fl D Pa /var/log/ipflog
755 log directly to a file bypassing
758 .Pa /etc/newsyslog.conf
759 in such case like this:
761 /var/log/ipflog 640 10 100 * Z /var/run/ipmon.pid
763 .\" ----- ipfs_enable setting -----------------------------------
773 saving the filter and NAT state tables during shutdown
774 and reloading them during startup again.
775 Setting this variable needs setting
784 for a detailed discussion.
790 because the raised securelevel will prevent
792 from saving the state tables at shutdown time.
793 .\" ----- ipfs_program setting ----------------------------------
800 .\" ----- ipfs_flags setting ------------------------------------
804 This variable contains flags passed to the
807 .\" ----- end of added ipf hook ---------------------------------
819 Typical usage will require putting
834 into the kernel, otherwise the
835 kernel module will be loaded.
840 ruleset configuration file
855 these flags are passed to the
857 program when loading the ruleset.
867 which logs packets from the
880 .Pa /var/log/pflog ) .
882 .Pa /etc/newsyslog.conf
883 to adjust logfile rotation for this.
893 This variable contains additional flags passed to the
896 .It Va ftpproxy_enable
907 packet filter in translating ftp connections.
908 .It Va ftpproxy_flags
911 This variable contains additional flags passed to the
923 state changes to other hosts over the network by means of
928 must also be set then.
929 .It Va pfsync_syncdev
932 This variable specifies the name of the network interface
934 should operate through.
935 It must be set accordingly if
939 .It Va pfsync_syncpeer
942 This variable is optional.
943 By default, state change messages are sent out on the synchronisation
944 interface using IP multicast packets.
945 The protocol is IP protocol 240, PFSYNC, and the multicast group used is
947 When a peer address is specified using the
949 option, the peer address is used as a destination for the pfsync
950 traffic, and the traffic can then be protected using
954 manpage for more details about using
959 .It Va pfsync_ifconfig
962 This variable can contain additional options to be passed to the
964 command used to set up
966 .It Va tcp_extensions
973 disables certain TCP options as described by
979 might help remedy such problems with connections as randomly hanging
980 or other weird behavior.
981 Some network devices are known
982 to be broken with respect to these options.
989 .Va net.inet.tcp.log_in_vain
991 .Va net.inet.udp.log_in_vain ,
996 are set to the given value.
1004 will disable probing idle TCP connections to verify that the
1005 peer is still up and reachable.
1006 .It Va tcp_drop_synfin
1013 will cause the kernel to ignore TCP frames that have both
1014 the SYN and FIN flags set.
1015 This prevents OS fingerprinting, but may
1016 break some legitimate applications.
1017 .It Va icmp_drop_redirect
1024 will cause the kernel to ignore ICMP REDIRECT packets.
1027 for more information.
1028 .It Va icmp_log_redirect
1035 will cause the kernel to log ICMP REDIRECT packets.
1037 the log messages are not rate-limited, so this option should only be used
1038 for troubleshooting networks.
1041 for more information.
1042 .It Va icmp_bmcastecho
1046 to respond to broadcast or multicast ICMP ping packets.
1049 for more information.
1050 .It Va ip_portrange_first
1054 this is the first port in the default portrange.
1057 for more information.
1058 .It Va ip_portrange_last
1062 this is the last port in the default portrange.
1065 for more information.
1066 .It Va network_interfaces
1068 Set to the list of network interfaces to configure on this host or
1070 (the default) for all current interfaces.
1072 .Va network_interfaces
1073 variable to anything other than the default is deprecated.
1074 Interfaces that the administrator wishes to store configuration for,
1075 but not start at boot should be configured with the
1078 .Va ifconfig_ Ns Aq Ar interface
1079 variables as described below.
1082 .Va ifconfig_ Ns Aq Ar interface
1083 variable is also assumed to exist for each value of
1085 When an interface name contains any of the characters
1087 they are translated to
1090 The variable can contain arguments to
1092 as well as special case-insensitive keywords described below.
1093 Such keywords are removed before passing the value to
1095 while the order of the other arguments is preserved.
1097 One can configure more than one IPv4 address with the
1098 .Va ipv4_addrs_ Ns Aq Ar interface
1100 One or more IP addresses must be provided in Classless Inter-Domain
1101 Routing (CIDR) address notation, whose last byte can be a range like
1103 In this case the address 192.0.2.5 will be configured with the
1104 netmask /24 and the addresses 192.0.2.6 to 192.0.2.23 with
1105 the non-conflicting netmask /32 as explained in the
1108 With the interface in question being
1110 an example could look like:
1112 ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-5/28"
1115 It is also possible to add IP alias entries using
1120 Assuming that the interface in question was
1123 something like this:
1125 ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
1126 ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"
1131 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1134 keyword that is found,
1135 its contents are passed to
1137 Execution stops at the first unsuccessful access, so if
1138 something like this is present:
1140 ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff"
1141 ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff"
1142 ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff"
1143 ifconfig_ed0_alias4="inet 127.0.0.254 netmask 0xffffffff"
1146 Then note that alias4 would
1148 be added since the search would
1149 stop with the missing
1152 Due to this difficult to manage behavior, the
1153 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1157 .Pa /etc/start_if. Ns Aq Ar interface
1158 file is present, it is read and executed by the
1161 before configuring the interface as specified in the
1162 .Va ifconfig_ Ns Aq Ar interface
1164 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1168 .Va vlans_ Ns Aq Ar interface
1172 interface will be created for each item in the list with the
1176 If a vlan interface's name is a number,
1177 then that number is used as the vlan tag and the new vlan interface is
1179 .Ar interface . Ns Ar tag .
1181 the vlan tag must be specified via a
1184 .Va create_args_ Ns Aq Ar interface
1187 To create a vlan device named
1191 with the vlan tag 101 and the optional the IPv4 address 192.0.2.1/24:
1194 ifconfig_em0_101="inet 192.0.2.1/24"
1197 To create a vlan device named
1201 with the vlan tag 102:
1204 create_args_myvlan="vlan 102"
1208 .Va wlans_ Ns Aq Ar interface
1212 interface will be created for each item in the list with the
1216 Further wlan cloning arguments may be passed to the
1219 command by setting the
1220 .Va create_args_ Ns Aq Ar interface
1224 devices must be created for each wireless devices as of
1230 may be specified with an
1231 .Va wlandebug_ Ns Aq Ar interface
1233 The contents of this variable will be passed directly to
1237 .Va ifconfig_ Ns Aq Ar interface
1238 contains the keyword
1240 then the interface will not be configured
1242 .Pa /etc/pccard_ether
1244 .Va network_interfaces
1248 It is possible to bring up an interface with DHCP by adding
1251 .Va ifconfig_ Ns Aq Ar interface
1253 For instance, to initialize the
1256 it is possible to use something like:
1261 Also, if you want to configure your wireless interface with
1262 .Xr wpa_supplicant 8
1263 for use with WPA, EAP/LEAP or WEP, you need to add
1266 .Va ifconfig_ Ns Aq Ar interface
1269 Finally, you can add
1271 options in this variable, in addition to the
1272 .Pa /etc/start_if. Ns Aq Ar interface
1274 For instance, to configure an
1276 wireless device in station mode with an address obtained
1277 via DHCP, using WPA authentication and 802.11b mode, it is
1278 possible to use something like:
1281 ifconfig_wlan0="DHCP WPA mode 11b"
1285 .Va ifconfig_ Ns Aq Ar interface
1286 form, a fallback variable
1287 .Va ifconfig_DEFAULT
1289 It will be used for all interfaces with no
1290 .Va ifconfig_ Ns Aq Ar interface
1292 This is intended to replace the no longer supported
1296 It is also possible to rename an interface by doing:
1298 ifconfig_ed0_name="net0"
1299 ifconfig_net0="inet 192.0.2.1 netmask 0xffffff00"
1302 This variable is deprecated.
1304 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1306 .Va ipv6_activate_all_interfaces
1312 .Dq Li inet6 accept_rtadv
1314 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1316 .Va ipv6_activate_all_interfaces
1320 This variable is deprecated.
1322 .Va ip6addrctl_policy
1328 the default address selection policy table set by
1330 will be IPv6-preferred.
1334 the default address selection policy table set by
1336 will be IPv4-preferred.
1337 .It Va ipv6_activate_all_interfaces
1339 This controls initial configuration on IPv6-capable
1340 interfaces with no corresponding
1341 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1343 Note that it is not always necessary to set this variable to
1345 to use IPv6 functionality on
1347 In most cases, just configuring
1348 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1353 all interfaces which do not have a corresponding
1354 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1355 variable will be marked as
1358 This means that all of IPv6 functionality on that interface
1359 is completely disabled to enforce a security policy.
1360 If the variable is set to
1362 the flag will be cleared on all of the interfaces.
1364 In most cases, just defining an
1365 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1366 for an IPv6-capable interface should be sufficient.
1367 However, if an interface is added dynamically
1368 .Pq by some tunneling protocols such as PPP, for example ,
1369 it is often difficult to define the variable in advance.
1370 In such a case, configuring the
1372 flag can be disabled by setting this variable to
1375 For more details of the
1378 .Dq Li inet6 ifdisabled ,
1388 privacy addresses will be generated for each IPv6
1389 interface as described in RFC 4941.
1390 .It Va ipv6_network_interfaces
1392 This is the IPv6 equivalent of
1393 .Va network_interfaces .
1394 Normally manual configuration of this variable is not needed.
1396 .It Va ipv6_cpe_wanif
1398 If the variable is set to an interface name,
1402 .Dq inet6 -no_radr accept_rtadv
1403 will be added to the specified interface automatically before evaluating
1404 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6 ,
1408 .Va net.inet6.ip6.rfc6204w3
1410 .Va net.inet6.ip6.no_radr
1413 This means the specified interface will accept ICMPv6 Router
1414 Advertisement messages on that link and add the discovered
1415 routers into the Default Router List.
1416 While the other interfaces can still accept RA messages if the
1417 .Dq inet6 accept_rtadv
1418 option is specified, adding
1419 routes into the Default Router List will be disabled by
1426 Note that ICMPv6 Router Advertisement messages will be
1428 .Va net.inet6.ip6.forwarding
1430 .Pq packet forwarding is enabled
1432 .Va net.inet6.ip6.rfc6204w3
1437 .It Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1439 IPv6 functionality on an interface should be configured by
1440 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6 ,
1441 instead of setting ifconfig parameters in
1442 .Va ifconfig_ Ns Aq Ar interface .
1443 If this variable is empty, all of IPv6 configurations on the
1444 specified interface by other variables such as
1445 .Va ipv6_prefix_ Ns Ao Ar interface Ac
1448 Aliases should be set by
1449 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1455 ifconfig_ed0_ipv6="inet6 2001:db8:1::1 prefixlen 64"
1456 ifconfig_ed0_alias0="inet6 2001:db8:2::1 prefixlen 64"
1459 Interfaces that have an
1460 .Dq Li inet6 accept_rtadv
1462 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1463 setting will be automatically configured by SLAAC
1464 .Pq StateLess Address AutoConfiguration
1470 Note that a link-local address will be automatically configured in
1471 addition to the configured global-scope addresses because the IPv6
1472 specifications require it on each link.
1473 The address is calculated from the MAC address by using an algorithm
1480 If only a link-local address is needed on the interface,
1481 the following configuration can be used:
1483 ifconfig_ed0_ipv6="inet6 auto_linklocal"
1486 A link-local address can also be configured manually.
1487 This is useful for the default router address of an IPv6 router
1488 so that it does not change when the network interface
1492 ifconfig_ed0_ipv6="inet6 fe80::1 prefixlen 64"
1494 .It Va ipv6_prefix_ Ns Aq Ar interface
1496 If one or more prefixes are defined in
1497 .Va ipv6_prefix_ Ns Aq Ar interface
1498 addresses based on each prefix and the EUI-64 interface index will be
1499 configured on that interface.
1500 Note that this variable will be ignored when
1501 .Va ifconfig_ Ns Ao Ar interface Ac Ns _ipv6
1504 For example, the following configuration
1506 ipv6_prefix_ed0="2001:db8:1:0 2001:db8:2:0"
1509 is equivalent to the following:
1511 ifconfig_ed0_alias0="inet6 2001:db8:1:: eui64 prefixlen 64"
1512 ifconfig_ed0_alias1="inet6 2001:db8:1:: prefixlen 64 anycast"
1513 ifconfig_ed0_alias2="inet6 2001:db8:2:: eui64 prefixlen 64"
1514 ifconfig_ed0_alias3="inet6 2001:db8:2:: prefixlen 64 anycast"
1517 These Subnet-Router anycast addresses will be added only when
1518 .Va ipv6_gateway_enable
1520 .It Va ipv6_default_interface
1524 this is the default output interface for scoped addresses.
1525 This works only with ipv6_gateway_enable="NO".
1526 .It Va ip6addrctl_enable
1528 This variable is to enable configuring default address selection policy table
1530 The table can be specified in another variable
1531 .Va ip6addrctl_policy .
1533 .Va ip6addrctl_policy
1534 the following keywords can be specified:
1535 .Dq Li ipv4_prefer ,
1536 .Dq Li ipv6_prefer ,
1546 installs a pre-defined policy table described in Section 2.1
1554 is specified, it attempts to read a file
1555 .Pa /etc/ip6addrctl.conf
1557 If this file is found,
1559 reads and installs it.
1560 If not found, a policy is automatically set
1562 .Va ipv6_activate_all_interfaces
1563 variable; if the variable is set to
1565 the IPv6-preferred one is used.
1566 Otherwise IPv4-preferred.
1568 The default value of
1569 .Va ip6addrctl_enable
1571 .Va ip6addrctl_policy
1577 .It Va cloned_interfaces
1579 Set to the list of clonable network interfaces to create on this host.
1580 Further cloning arguments may be passed to the
1583 command for each interface by setting the
1584 .Va create_args_ Ns Aq Ar interface
1587 .Va cloned_interfaces
1588 are automatically appended to
1589 .Va network_interfaces
1591 .It Va fec_interfaces
1595 Fast EtherChannel interfaces to configure on this host.
1597 .Va fecconfig_ Ns Aq Ar interface
1598 variable is assumed to exist for each value of
1600 The value of this variable is used to configure link aggregated interfaces
1601 according to the syntax of the
1602 .Cm NGM_FEC_ADD_IFACE
1606 Additionally, this option ensures that each listed interface is created
1611 before attempting to configure it.
1614 fec_interfaces="fec0"
1615 fecconfig_fec0="em0 em1"
1616 ifconfig_fec0="DHCP"
1618 .It Va gif_interfaces
1622 tunnel interfaces to configure on this host.
1624 .Va gifconfig_ Ns Aq Ar interface
1625 variable is assumed to exist for each value of
1627 The value of this variable is used to configure the link layer of the
1628 tunnel according to the syntax of the
1632 Additionally, this option ensures that each listed interface is created
1637 before attempting to configure it.
1638 .It Va sppp_interfaces
1642 interfaces to configure on this host.
1644 .Va spppconfig_ Ns Aq Ar interface
1645 variable is assumed to exist for each value of
1647 Each interface should also be configured by a general
1648 .Va ifconfig_ Ns Aq Ar interface
1652 for more information about available options.
1662 The name of the profile to use from
1663 .Pa /etc/ppp/ppp.conf .
1664 Also used for per-profile overrides of
1669 .Va ppp_ Ns Ao Ar profile Ac Ns _unit .
1670 When the profile name contains any of the characters
1672 they are translated to
1674 for the proposes of the override variable names.
1677 Mode in which to run the
1680 .It Va ppp_ Ns Ao Ar profile Ac Ns _mode
1682 Overrides the global
1692 See the manual for a full description.
1697 enables network address translation.
1698 Used in conjunction with
1700 allows hosts on private network addresses access to the Internet using
1701 this host as a network address translating router.
1702 .It Va ppp_ Ns Ao Ar profile Ac Ns _nat
1704 Overrides the global
1708 .It Va ppp_ Ns Ao Ar profile Ac Ns _unit
1710 Set the unit number to be used for this profile.
1711 See the manual description of
1716 The name of the user under which
1724 .It Va rc_conf_files
1726 This option is used to specify a list of files that will override
1728 .Pa /etc/defaults/rc.conf .
1729 The files will be read in the order in which they are specified and should
1730 include the full path to the file.
1731 By default, the files specified are
1734 .Pa /etc/rc.conf.local
1740 will attempt to automatically mount ZFS file systems and initialize ZFS volumes
1742 .It Va gptboot_enable
1746 .Pa /etc/rc.d/gptboot
1747 will log if the system successfully (or not) booted from a GPT partition,
1753 .It Va gbde_autoattach_all
1758 will attempt to automatically initialize your .bde devices in
1762 List the devices that the script should try to attach,
1767 The directory where the
1769 lockfiles are located.
1770 The default lockfile directory is
1773 The lockfile for each individual
1775 device can be overridden by setting the variable
1776 .Va gbde_lock_ Ns Aq Ar device ,
1779 is the encrypted device without the
1784 .It Va gbde_attach_attempts
1786 Number of times to attempt attaching to a
1788 device, i.e., how many times the user is asked for the pass-phrase.
1792 List of devices to automatically attach on boot.
1793 Note that .eli devices from
1795 are automatically appended to this list.
1798 Number of times user is asked for the pass-phrase.
1799 If empty, it will be taken from
1800 .Va kern.geom.eli.tries
1802 .It Va geli_default_flags
1804 Default flags to use by
1806 when configuring disk encryption.
1807 Flags can be configured for every device separately by defining
1808 .Va geli_ Ns Ao Ar device Ac Ns Va _flags
1810 .It Va geli_autodetach
1812 Specifies if GELI devices should be marked for detach on last close after
1813 file systems are mounted.
1816 This can be changed for every device separately by defining
1817 .Va geli_ Ns Ao Ar device Ac Ns Va _autodetach
1819 .It Va geli_swap_flags
1820 Options passed to the
1822 utility when encrypted GEOM providers for swap partitions are created.
1824 .Dq Li "-e aes -l 256 -s 4096 -d" .
1825 .It Va root_rw_mount
1830 After the file systems are checked at boot time, the root file system
1831 is remounted as read-write if this is set to
1833 Diskless systems that mount their root file system from a read-only remote
1834 NFS share should set this to
1838 .It Va fsck_y_enable
1843 will be run with the
1845 flag if the initial preen
1846 of the file systems fails.
1847 .It Va background_fsck
1851 the system will attempt to run
1853 in the background where possible.
1854 .It Va background_fsck_delay
1856 The amount of time in seconds to sleep before starting a background
1858 It defaults to sixty seconds to allow large applications such as
1859 the X server to start before disk I/O bandwidth is monopolized by
1861 If set to a negative number, the background file system check will be
1862 delayed indefinitely to allow the administrator to run it at a more
1864 For example it may be run from
1866 by adding a line like
1868 .Dl "0 4 * * * root /etc/rc.d/bgfsck forcestart"
1874 List of file system types that are network-based.
1875 This list should generally not be modified by end users.
1877 .Va extra_netfs_types
1879 .It Va extra_netfs_types
1881 If set to something other than
1884 this variable extends the list of file system types
1885 for which automatic mounting at startup by
1887 should be delayed until the network is initialized.
1889 a whitespace-separated list of network file system descriptor pairs,
1890 each consisting of a file system type as passed to
1892 and a human-readable, one-word description,
1895 Extending the default list in this way is only necessary
1896 when third party file system types are used.
1897 .It Va syslogd_enable
1904 .It Va syslogd_program
1909 .Pa /usr/sbin/syslogd ) .
1910 .It Va syslogd_flags
1916 these are the flags to pass to
1925 .It Va inetd_program
1930 .Pa /usr/sbin/inetd ) .
1937 these are the flags to pass to
1946 .It Va hastd_program
1958 these are the flags to pass to
1967 .It Va named_program
1972 .Pa /usr/sbin/named ) .
1977 configuration file, (default
1978 .Pa /etc/namedb/named.conf ) .
1985 these are the flags to pass to
1991 process should be run as.
1992 .It Va named_chrootdir
1994 The root directory for a name server run in a
1996 environment (default
2000 will not be run in a
2003 .It Va named_chroot_autoupdate
2007 to disable automatic update of the
2010 .It Va named_symlink_enable
2014 to disable symlinking of
2023 loop until working name service is established.
2024 .It Va named_wait_host
2026 Name of host to lookup for the named_wait option.
2028 .It Va named_auto_forward
2030 Set to enable automatic creation of a forwarder
2031 configuration file derived from
2032 .Pa /etc/resolv.conf .
2033 .It Va named_auto_forward_only
2035 Set to change the default forwarder configuration from
2039 .It Va kerberos5_server_enable
2043 to start a Kerberos 5 authentication server
2045 .It Va kerberos5_server
2048 .Va kerberos5_server_enable
2051 this is the path to Kerberos 5 Authentication Server.
2052 .It Va kerberos5_server_flags
2055 This variable contains additional flags to be passed to the Kerberos 5
2056 authentication server.
2057 .It Va kadmind5_server_enable
2063 the Kerberos 5 Administration Daemon; set to
2066 .It Va kadmind5_server
2069 .Va kadmind5_server_enable
2072 this is the path to Kerberos 5 Administration Daemon.
2073 .It Va kpasswdd_server_enable
2079 the Kerberos 5 Password-Changing Daemon; set to
2082 .It Va kpasswdd_server
2085 .Va kpasswdd_server_enable
2088 this is the path to Kerberos 5 Password-Changing Daemon.
2095 daemon at boot time.
2102 these are the flags to pass to it.
2109 daemon at boot time.
2116 these are the flags to pass to it.
2119 manpage for more information.
2120 .It Va amd_map_program
2123 the specified program is run to get the list of
2128 maps are stored in NIS, one can set this to
2141 will be updated at boot time to reflect the kernel release
2146 will not be updated.
2147 .It Va nfs_client_enable
2151 run the NFS client daemons at boot time.
2152 .It Va nfs_access_cache
2155 .Va nfs_client_enable
2160 to disable NFS ACCESS RPC caching, or to the number of seconds for which
2162 results should be cached.
2163 A value of 2-10 seconds will substantially reduce network
2164 traffic for many NFS operations.
2165 .It Va nfs_server_enable
2169 run the NFS server daemons at boot time.
2170 .It Va nfs_server_flags
2173 .Va nfs_server_enable
2176 these are the flags to pass to the
2179 .It Va nfsv4_server_enable
2182 .Va nfs_server_enable
2186 .Va nfsv4_server_enable
2189 enable the server for NFSv4 as well as NFSv2 and NFSv3.
2190 .It Va nfsuserd_enable
2196 run the nfsuserd daemon, which is needed for NFSv4 in order
2197 to map between user/group names vs uid/gid numbers.
2199 .Va nfsv4_server_enable
2202 this will be forced enabled.
2203 .It Va nfsuserd_flags
2209 these are the flags to pass to the
2212 .It Va nfscbd_enable
2218 run the nfscbd daemon, which enables callbacks/delegations for the NFSv4 client.
2225 these are the flags to pass to the
2228 .It Va oldnfs_server_enable
2231 .Va oldnfs_server_enable
2234 force the NFS server daemons to run the old NFS server code
2235 that does not support NFSv4.
2236 .It Va mountd_enable
2241 .Va nfs_server_enable
2247 It is commonly needed to run CFS without real NFS used.
2254 these are the flags to pass to the
2257 .It Va weak_mountd_authentication
2261 allow services like PCNFSD to make non-privileged mount
2263 .It Va nfs_reserved_port_only
2267 provide NFS services only on a secure port.
2268 .It Va nfs_bufpackets
2270 If set to a number, indicates the number of packets worth of
2271 socket buffer space to reserve on an NFS client.
2272 The kernel default is typically 4.
2273 Using a higher number may be
2274 useful on gigabit networks to improve performance.
2275 The minimum value is
2276 2 and the maximum is 64.
2277 .It Va rpc_lockd_enable
2281 and also an NFS server or client, run
2284 .It Va rpc_lockd_flags
2287 .Va rpc_lockd_enable
2290 these are the flags to pass to the
2293 .It Va rpc_statd_enable
2297 and also an NFS server or client, run
2300 .It Va rpc_statd_flags
2303 .Va rpc_statd_enable
2306 these are the flags to pass to the
2309 .It Va rpcbind_program
2314 .Pa /usr/sbin/rpcbind ) .
2315 .It Va rpcbind_enable
2321 service at boot time.
2322 .It Va rpcbind_flags
2328 these are the flags to pass to the
2331 .It Va keyserv_enable
2337 daemon on boot for running Secure RPC.
2338 .It Va keyserv_flags
2344 these are the flags to pass to
2347 .It Va pppoed_enable
2353 daemon at boot time to provide PPP over Ethernet services.
2354 .It Va pppoed_ Ns Aq Ar provider
2357 listens to requests to this
2363 argument of the same name.
2366 Additional flags to pass to
2368 .It Va pppoed_interface
2370 The network interface to run
2373 This is mandatory when
2383 service at boot time.
2384 This command is intended for networks of
2385 machines where a consistent
2387 for all hosts must be established.
2388 This is often useful in large NFS
2389 environments where time stamps on files are expected to be consistent
2397 these are the flags to pass to the
2400 .It Va ntpdate_enable
2407 This command is intended to
2408 synchronize the system clock only
2410 from some standard reference.
2411 An option to set this up initially
2412 (from a list of known servers) is also provided by the
2414 program when the system is first installed.
2415 .It Va ntpdate_config
2417 Configuration file for
2421 .It Va ntpdate_hosts
2423 A whitespace-separated list of NTP servers to synchronize with at startup.
2424 The default is to use the servers listed in
2425 .Va ntpdate_config ,
2426 if that file exists.
2427 .It Va ntpdate_program
2432 .Pa /usr/sbin/ntpdate ) .
2433 .It Va ntpdate_flags
2439 these are the flags to pass to the
2441 command (typically a hostname).
2448 command at boot time.
2454 .Pa /usr/sbin/ntpd ) .
2468 these are the flags to pass to the
2471 .It Va ntpd_sync_on_start
2478 flag, which syncs the system's clock on startup.
2481 for more information regarding the
2484 This is a preferred alternative to using
2489 .It Va nis_client_enable
2495 service at system boot time.
2496 .It Va nis_client_flags
2499 .Va nis_client_enable
2502 these are the flags to pass to the
2505 .It Va nis_ypset_enable
2511 daemon at system boot time.
2512 .It Va nis_ypset_flags
2515 .Va nis_ypset_enable
2518 these are the flags to pass to the
2521 .It Va nis_server_enable
2527 daemon at system boot time.
2528 .It Va nis_server_flags
2531 .Va nis_server_enable
2534 these are the flags to pass to the
2537 .It Va nis_ypxfrd_enable
2543 daemon at system boot time.
2544 .It Va nis_ypxfrd_flags
2547 .Va nis_ypxfrd_enable
2550 these are the flags to pass to the
2553 .It Va nis_yppasswdd_enable
2559 daemon at system boot time.
2560 .It Va nis_yppasswdd_flags
2563 .Va nis_yppasswdd_enable
2566 these are the flags to pass to the
2569 .It Va rpc_ypupdated_enable
2575 daemon at system boot time.
2576 .It Va bsnmpd_enable
2582 daemon at system boot time.
2583 Be sure to understand the security implications of running SNMP daemon
2591 these are the flags to pass to the
2594 .It Va defaultrouter
2598 create a default route to this host name or IP address
2599 (use an IP address if this router is also required to get to the
2601 .It Va ipv6_defaultrouter
2603 The IPv6 equivalent of
2605 .It Va static_arp_pairs
2607 Set to the list of static ARP pairs that are to be added at system
2609 For each whitespace separated
2612 .Va static_arp_ Ns Aq Ar element
2613 variable is assumed to exist whose contents will later be passed to a
2618 static_arp_pairs="gw"
2619 static_arp_gw="192.168.1.1 00:01:02:03:04:05"
2621 .It Va static_ndp_pairs
2623 Set to the list of static NDP pairs that are to be added at system
2625 For each whitespace separated
2628 .Va static_ndp_ Ns Aq Ar element
2629 variable is assumed to exist whose contents will later be passed to a
2634 static_ndp_pairs="gw"
2635 static_ndp_gw="2001:db8:3::1 00:01:02:03:04:05"
2637 .It Va static_routes
2639 Set to the list of static routes that are to be added at system
2643 then for each whitespace separated
2646 .Va route_ Ns Aq Ar element
2647 variable is assumed to exist
2648 whose contents will later be passed to a
2653 static_routes="mcast gif0local"
2654 route_mcast="-net 224.0.0.0/4 -iface gif0"
2655 route_gif0local="-host 169.254.1.1 -iface lo0"
2657 .It Va ipv6_static_routes
2659 The IPv6 equivalent of
2663 then for each whitespace separated
2666 .Va ipv6_route_ Ns Aq Ar element
2667 variable is assumed to exist
2668 whose contents will later be passed to a
2669 .Dq Nm route Cm add Fl inet6
2671 .It Va natm_static_routes
2677 If not empty then for each whitespace separated
2680 .Va route_ Ns Aq Ar element
2681 variable is assumed to exist whose contents will later be passed to a
2682 .Dq Nm atmconfig Cm natm Cm add
2684 .It Va gateway_enable
2688 configure host to act as an IP router, e.g.\& to forward packets
2690 .It Va ipv6_gateway_enable
2692 The IPv6 equivalent of
2693 .Va gateway_enable .
2694 .It Va routed_enable
2698 run a routing daemon of some sort, based on the
2703 .It Va route6d_enable
2705 The IPv6 equivalent of
2709 run a routing daemon of some sort, based on the
2714 .It Va routed_program
2720 this is the name of the routing daemon to use.
2721 .It Va route6d_program
2723 The IPv6 equivalent of
2724 .Va routed_program .
2731 these are the flags to pass to the routing daemon.
2732 .It Va route6d_flags
2734 The IPv6 equivalent of
2736 .It Va mrouted_enable
2740 run the multicast routing daemon,
2742 .It Va mroute6d_enable
2744 The IPv6 equivalent of
2745 .Va mrouted_enable .
2748 run the IPv6 multicast routing daemon.
2750 Note that multicast routing daemons are no longer included in the
2752 base system, however, both
2756 may be installed from the
2759 .It Va mrouted_flags
2765 these are the flags to pass to the
2768 .It Va mroute6d_flags
2770 The IPv6 equivalent of
2776 these are the flags passed to the IPv6 multicast routing daemon.
2777 .It Va mroute6d_program
2783 this is the path to the IPv6 multicast routing daemon.
2784 .It Va rtadvd_enable
2790 daemon at boot time.
2793 utility sends ICMPv6 Router Advertisement messages to
2794 the interfaces specified in
2795 .Va rtadvd_interfaces .
2796 This should only be enabled with great care.
2797 You may want to fine-tune
2799 .It Va rtadvd_interfaces
2805 this is the list of interfaces to use.
2806 .It Va ipxgateway_enable
2810 enable the routing of IPX traffic.
2811 .It Va ipxrouted_enable
2817 daemon at system boot time.
2818 .It Va ipxrouted_flags
2821 .Va ipxrouted_enable
2824 these are the flags to pass to the
2831 enable global proxy ARP.
2832 .It Va forward_sourceroute
2840 source-routed packets are forwarded.
2841 .It Va accept_sourceroute
2845 the system will accept source-routed packets directed at it.
2852 daemon at system boot time.
2859 these are the flags to pass to the
2862 .It Va bootparamd_enable
2868 daemon at system boot time.
2869 .It Va bootparamd_flags
2872 .Va bootparamd_enable
2875 these are the flags to pass to the
2878 .It Va stf_interface_ipv4addr
2882 this is the local IPv4 address for 6to4 (IPv6 over IPv4 tunneling
2884 Specify this entry to enable the 6to4 interface.
2885 .It Va stf_interface_ipv4plen
2887 Prefix length for 6to4 IPv4 addresses, to limit peer address range.
2888 An effective value is 0-31.
2889 .It Va stf_interface_ipv6_ifid
2891 IPv6 interface ID for
2895 .It Va stf_interface_ipv6_slaid
2897 IPv6 Site Level Aggregator for
2899 .It Va ipv6_faith_prefix
2903 this is the faith prefix to enable a FAITH IPv6-to-IPv4 TCP
2908 .It Va ipv6_ipv4mapping
2912 this enables IPv4 mapped IPv6 address communication (like
2913 .Li ::ffff:a.b.c.d ) .
2918 to enable the configuration of ATM interfaces at system boot time.
2919 For all of the ATM variables described below, please refer to the
2921 manual page for further details on the available command parameters.
2922 Also refer to the files in
2923 .Pa /usr/share/examples/atm
2924 for more detailed configuration information.
2927 This is a list of physical ATM interface drivers to load.
2932 .It Va atm_netif_ Ns Aq Ar intf
2934 For the ATM physical interface
2936 this variable defines the name prefix and count for the ATM network
2937 interfaces to be created.
2938 The value will be passed as the parameters of an
2939 .Dq Nm atm Cm "set netif" Ar intf
2941 .It Va atm_sigmgr_ Ns Aq Ar intf
2943 For the ATM physical interface
2945 this variable defines the ATM signalling manager to be used.
2946 The value will be passed as the parameters of an
2947 .Dq Nm atm Cm attach Ar intf
2949 .It Va atm_prefix_ Ns Aq Ar intf
2951 For the ATM physical interface
2953 this variable defines the NSAP prefix for interfaces using a UNI signalling
2957 the prefix will automatically be set via the
2960 Otherwise, the value will be passed as the parameters of an
2961 .Dq Nm atm Cm "set prefix" Ar intf
2963 .It Va atm_macaddr_ Ns Aq Ar intf
2965 For the ATM physical interface
2967 this variable defines the MAC address for interfaces using a UNI signalling
2971 the hardware MAC address contained in the ATM interface card will be used.
2972 Otherwise, the value will be passed as the parameters of an
2973 .Dq Nm atm Cm "set mac" Ar intf
2975 .It Va atm_arpserver_ Ns Aq Ar netif
2977 For the ATM network interface
2979 this variable defines the ATM address for a host which is to provide ATMARP
2981 This variable is only applicable to interfaces using a UNI signalling
2985 this host will become an ATMARP server.
2986 The value will be passed as the parameters of an
2987 .Dq Nm atm Cm "set arpserver" Ar netif
2989 .It Va atm_scsparp_ Ns Aq Ar netif
2993 SCSP/ATMARP service for the network interface
2995 will be initiated using the
3000 This variable is only applicable if
3001 .Va atm_arpserver_ Ns Aq Ar netif
3006 Set to the list of ATM PVCs to be added at system
3008 For each whitespace separated
3011 .Va atm_pvc_ Ns Aq Ar element
3012 variable is assumed to exist.
3013 The value of each of these variables
3014 will be passed as the parameters of an
3015 .Dq Nm atm Cm "add pvc"
3019 Set to the list of permanent ATM ARP entries to be added
3020 at system boot time.
3021 For each whitespace separated
3024 .Va atm_arp_ Ns Aq Ar element
3025 variable is assumed to exist.
3026 The value of each of these variables
3027 will be passed as the parameters of an
3028 .Dq Nm atm Cm "add arp"
3030 .It Va natm_interfaces
3034 interfaces that will also be used for HARP through
3036 If this list is not empty all interfaces in the list will be brought up
3042 For this to work the interface drivers must be either compiled into the
3043 kernel or must reside on the root partition.
3046 The keyboard bell sound.
3053 if the default behavior is desired.
3054 For details, refer to the
3059 If set to a non-null string, the virtual console's keyboard input is
3065 no keymap is installed, otherwise the value is used to install
3067 .Pa /usr/share/syscons/keymaps/ Ns Ao Ar value Ac Ns Pa .kbd .
3070 The keyboard repeat speed.
3077 if the default behavior is desired.
3082 attempt to program the function keys with the value.
3084 be a single string of the form:
3085 .Dq Ar funkey_number new_value Op Ar funkey_number new_value ... .
3088 Can be set to the value of
3091 .Dq Li destructive ,
3094 to set the cursor behavior explicitly or choose the default behavior.
3099 no screen map is installed, otherwise the value is used to install
3100 the screen map file in
3101 .Pa /usr/share/syscons/scrnmaps/ Ns Aq Ar value .
3106 the default 8x16 font value is used for screen size requests, otherwise
3108 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
3114 the default 8x14 font value is used for screen size requests, otherwise
3116 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
3122 the default 8x8 font value is used for screen size requests, otherwise
3124 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
3130 the default screen blanking interval is used, otherwise it is set
3138 this is the actual screen saver to use
3139 .Li ( blank , snake , daemon ,
3141 .It Va moused_nondefault_enable
3145 the mouse device specified on
3146 the command line is not automatically treated as enabled by the
3147 .Pa /etc/rc.d/moused
3149 Having this variable set to
3155 to be enabled as soon as it is plugged in.
3156 .It Va moused_enable
3162 daemon is started for doing cut/paste selection on the console.
3165 This is the protocol type of the mouse connected to this host.
3166 This variable must be set if
3173 is able to detect the appropriate mouse type automatically in many cases.
3174 Set this variable to
3176 to let the daemon detect it, or
3177 select one from the following list if the automatic detection fails.
3179 If the mouse is attached to the PS/2 mouse port, choose
3183 regardless of the brand and model of the mouse.
3185 mouse is attached to the bus mouse port, choose
3189 All other protocols are for serial mice and will not work with
3190 the PS/2 and bus mice.
3191 If this is a USB mouse,
3193 is the only protocol type which will work.
3195 .Bl -tag -width ".Li x10mouseremote" -compact
3197 Microsoft mouse (serial)
3199 Microsoft IntelliMouse (serial)
3201 Mouse systems Corp.\& mouse (serial)
3203 MM Series mouse (serial)
3205 Logitech mouse (serial)
3209 Logitech MouseMan and TrackMan (serial)
3211 ALPS GlidePoint (serial)
3212 .It Li thinkingmouse
3213 Kensington ThinkingMouse (serial)
3217 MM HitTablet (serial)
3218 .It Li x10mouseremote
3219 X10 MouseRemote (serial)
3221 Interlink VersaPad (serial)
3224 Even if the mouse is not in the above list, it may be compatible
3225 with one in the list.
3226 Refer to the manual page for
3228 for compatibility information.
3230 It should also be noted that while this is enabled, any
3231 other client of the mouse (such as an X server) should access
3232 the mouse through the virtual mouse device,
3234 and configure it as a
3236 type mouse, since all
3237 mouse data is converted to this single canonical format when
3240 If the client program does not support the
3246 It is the second preferred type.
3253 this is the actual port the mouse is on.
3256 for a COM1 serial mouse,
3260 for a bus mouse, for example.
3265 is set, its value is used as an additional set of flags to pass to the
3268 .It Va "moused_" Ns Ar XXX Ns Va "_flags"
3270 .Va moused_nondefault_enable
3273 daemon is started for a non-default port, the
3274 .Va "moused_" Ns Ar XXX Ns Va "_flags"
3275 set of options has precedence over and replaces the default
3276 .Va moused_flags (where
3278 is the name of the non-default port, i.e.\&
3281 .Va "moused_" Ns Ar XXX Ns Va "_flags"
3282 it is possible to set up a different set of default flags for each
3285 For example, you can use
3289 to make your laptop's touchpad more comfortable to use,
3290 but an empty set of options for
3291 .Va moused_ums0_flags
3294 mouse has three or more buttons.
3295 .It Va mousechar_start
3299 the default mouse cursor character range
3300 .Li 0xd0 Ns - Ns Li 0xd3
3302 otherwise the range start is set
3307 Use if the default range is occupied in the language code table.
3308 .It Va allscreens_flags
3312 is run with these options for each of the virtual terminals
3316 will enable the mouse pointer on all virtual terminals
3321 .It Va allscreens_kbdflags
3325 is run with these options for each of the virtual terminals
3331 scrollback (history) buffer to 200 lines.
3338 daemon at system boot time.
3344 .Pa /usr/sbin/cron ) .
3351 these are the flags to pass to
3357 enable the special handling of transitions to and from the
3358 Daylight Saving Time in
3360 (equivalent to using the flag
3367 .Pa /usr/sbin/lpd ) .
3374 daemon at system boot time.
3381 these are the flags to pass to the
3384 .It Va chkprintcap_enable
3390 command before starting the
3393 .It Va chkprintcap_flags
3398 .Va chkprintcap_enable
3401 these are the flags to pass to the
3406 which causes missing directories to be created.
3407 .It Va mta_start_script
3409 This variable specifies the full path to the script to run to start
3410 a mail transfer agent.
3412 .Pa /etc/rc.sendmail .
3416 .Pa /etc/rc.sendmail
3417 uses are documented in the
3422 Indicates the device (usually a swap partition) to which a crash dump
3423 should be written in the event of a system crash.
3424 If the value of this variable is
3426 the first suitable swap device listed in
3428 will be used as dump device.
3429 Otherwise, the value of this variable is passed as the argument to
3431 To disable crash dumps, set this variable to
3435 When the system reboots after a crash and a crash dump is found on the
3436 device specified by the
3440 will save that crash dump and a copy of the kernel to the directory
3444 The default value is
3453 .It Va savecore_flags
3455 If crash dumps are enabled, these are the flags to pass to the
3462 to turn on user and group disk quotas on system startup via the
3464 command for all file systems marked as having quotas enabled in
3466 The kernel must be built with
3468 for disk quotas to function.
3473 to enable user and group disk quota checking via the
3476 .It Va quotacheck_flags
3486 these are the flags to pass to the
3491 which checks quotas for all file systems with quotas enabled in
3493 .It Va quotaon_flags
3499 these are the flags to pass to the
3504 which enables quotas for all file systems with quotas enabled in
3506 .It Va quotaoff_flags
3512 these are the flags to pass to the
3514 utility when shutting down the quota system.
3517 which disables quotas for all file systems with quotas enabled in
3519 .It Va accounting_enable
3523 to enable system accounting through the
3530 to enable iBCS2 (SCO) binary emulation at system initial boot
3532 .It Va ibcs2_loaders
3540 this specifies a list of additional iBCS2 loaders to enable.
3545 to enable Linux/ELF binary emulation at system initial
3551 enable SysVR4 emulation at boot time.
3552 .It Va sysvipc_enable
3556 load System V IPC primitives at boot time.
3557 .It Va clear_tmp_enable
3568 to disable removing of X11 lock files,
3569 and the removal and (secure) recreation
3570 of the various socket directories for X11
3572 .It Va ldconfig_paths
3574 Set to the list of shared library paths to use with
3578 will always be added first, so it need not appear in this list.
3579 .It Va ldconfig32_paths
3581 Set to the list of 32-bit compatibility shared library paths to
3584 .It Va ldconfig_paths_aout
3586 Set to the list of shared library paths to use with
3591 .It Va ldconfig_insecure
3595 utility normally refuses to use directories
3596 which are writable by anyone except root.
3597 Set this variable to
3599 to disable that security check during system startup.
3600 .It Va ldconfig_local_dirs
3602 Set to the list of local
3605 The names of all files in the directories listed will be
3606 passed as arguments to
3608 .It Va ldconfig_local32_dirs
3610 Set to the list of local 32-bit compatibility
3613 The names of all files in the directories listed will be
3614 passed as arguments to
3615 .Dq Nm ldconfig Fl 32 .
3616 .It Va kern_securelevel_enable
3620 to set the kernel security level at system startup.
3621 .It Va kern_securelevel
3623 The kernel security level to set at startup.
3624 The allowed range of
3626 ranges from \-1 (the compile time default) to 3 (the
3630 for the list of possible security levels and their effect
3631 on system operation.
3634 Path to the SSH server program
3635 .Pa ( /usr/sbin/sshd
3643 at system boot time.
3650 these are the flags to pass to the
3655 Path to the FTP server program
3656 .Pa ( /usr/libexec/ftpd
3664 as a stand-alone daemon at system boot time.
3671 these are the additional flags to pass to the
3674 .It Va watchdogd_enable
3680 daemon at boot time.
3681 This requires that the kernel have been compiled with a
3684 .It Va watchdogd_flags
3687 .Va watchdogd_enable
3690 these are the flags passed to the
3693 .It Va devfs_rulesets
3695 List of files containing sets of rules for
3697 .It Va devfs_system_ruleset
3699 Rule name(s) to apply to the system
3702 .It Va devfs_set_rulesets
3704 Pairs of already-mounted
3706 directories and rulesets that should be applied to them.
3707 For example: /mount/dev=ruleset_name
3708 .It Va devfs_load_rulesets
3710 If set, always load the default rulesets listed in
3711 .Va devfs_rulesets .
3712 .It Va performance_cx_lowest
3714 CPU idle state to use while on AC power.
3719 should use the lowest power state available while
3721 indicates that the lowest latency state (less power savings) should be used.
3722 .It Va performance_cpu_freq
3724 CPU clock frequency to use while on AC power.
3729 should use the lowest frequency available while
3731 indicates that the highest frequency (less power savings) should be used.
3732 .It Va economy_cx_lowest
3734 CPU idle state to use when off AC power.
3739 should use the lowest power state available while
3741 indicates that the lowest latency state (less power savings) should be used.
3742 .It Va economy_cpu_freq
3744 CPU clock frequency to use when off AC power.
3749 should use the lowest frequency available while
3751 indicates that the highest frequency (less power savings) should be used.
3756 any configured jails will not be started.
3757 .It Va jail_parallel_start
3761 all configured jails will be started in the background (in parallel).
3764 A space separated list of names for jails.
3765 This is purely a configuration aid to help identify and
3766 configure multiple jails.
3767 The names specified in this list will be used to
3768 identify settings common to an instance of a jail,
3769 and should contain alphanumeric characters only.
3770 Assuming that the jail in question was named
3772 you would have the following dependent variables:
3774 jail_vjail_hostname="jail.example.com"
3775 jail_vjail_ip="192.0.2.100"
3776 jail_vjail_rootdir="/var/jails/vjail/root"
3782 When set, use as default value for
3783 .Va jail_ Ns Ao Ar jname Ac Ns Va _flags
3786 .It Va jail_interface
3789 When set, use as default value for
3790 .Va jail_ Ns Ao Ar jname Ac Ns Va _interface
3796 When set, use as default value for
3797 .Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
3800 .It Va jail_mount_enable
3808 .Va jail_ Ns Ao Ar jname Ac Ns Va _mount_enable
3811 by default for every jail in
3813 .It Va jail_devfs_ruleset
3817 .Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_ruleset
3818 to given value for every jail in
3820 .It Va jail_devfs_enable
3828 .Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_enable
3831 by default for every jail in
3833 .It Va jail_fdescfs_enable
3841 .Va jail_ Ns Ao Ar jname Ac Ns Va _fdescfs_enable
3844 by default for every jail in
3846 .It Va jail_procfs_enable
3854 .Va jail_ Ns Ao Ar jname Ac Ns Va _fdescfs_enable
3857 by default for every jail in
3859 .It Va jail_exec_prestart Ns Aq Ar N
3862 When set, use as default value for
3863 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_prestart Ns Aq Ar N
3866 .It Va jail_exec_start
3869 When set, use as default value for
3870 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_start
3873 .It Va jail_exec_afterstart Ns Aq Ar N
3876 When set, use as default value for
3877 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_afterstart Ns Aq Ar N
3880 .It Va jail_exec_poststart Ns Aq Ar N
3883 When set, use as default value for
3884 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_poststart Ns Aq Ar N
3887 .It Va jail_exec_prestop Ns Aq Ar N
3890 When set, use as default value for
3891 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_prestop Ns Aq Ar N
3894 .It Va jail_exec_stop
3896 When set, use as default value for
3897 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_stop
3900 .It Va jail_exec_poststop Ns Aq Ar N
3903 When set, use as default value for
3904 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_poststop Ns Aq Ar N
3907 .It Va jail_ Ns Ao Ar jname Ac Ns Va _rootdir
3910 Set to the root directory used by jail
3912 .It Va jail_ Ns Ao Ar jname Ac Ns Va _hostname
3915 Set to the fully qualified domain name (FQDN) assigned to jail
3917 .It Va jail_ Ns Ao Ar jname Ac Ns Va _ip
3920 Set to the (primary) IPv4 and/or IPv6 address(es) assigned to the jail.
3921 The argument can be a sole address or a comma separated list of addresses.
3922 Additionally each address can be prefixed by the name of an interface
3923 followed by a pipe to overwrite
3924 .Va jail_ Ns Ao Ar jname Ac Ns Va _interface
3927 and/or suffixed by a netmask, prefixlen or prefix.
3928 In case no netmask, prefixlen or prefix is given,
3930 will be used for IPv4 and
3932 will be used for an IPv6 address.
3933 If no address is given for the jail then the jail will be started with
3934 no networking support.
3935 .It Va jail_ Ns Ao Ar jname Ac Ns Va _ip_multi Ns Aq Ar n
3938 Set additional IPv4 and/or IPv6 address(es) assigned to the jail.
3939 The sequence starts with
3941 and the numbers have to be strictly ascending.
3942 These entries follow the same syntax as their primary
3943 .Va jail_ Ns Ao Ar jname Ac Ns Va _ip
3945 The order of the entries can be important as the first address for
3946 each address family found will be the primary address of the jail.
3952 .It Va jail_ Ns Ao Ar jname Ac Ns Va _flags
3957 These are flags to pass to
3959 .It Va jail_ Ns Ao Ar jname Ac Ns Va _interface
3962 When set, sets the interface to use when setting IP address alias.
3963 Note that the alias is created at jail startup and removed at jail shutdown.
3964 .It Va jail_ Ns Ao Ar jname Ac Ns Va _fib
3967 When set, the jail is started with the specified forwarding table (sometimes
3968 referred to as a routing table) via
3970 .It Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
3973 .Pa /etc/fstab. Ns Aq Ar jname
3975 This is the file system information file to use for jail
3977 .It Va jail_ Ns Ao Ar jname Ac Ns Va _mount_enable
3984 mount all file systems from
3985 .Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
3987 .It Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_ruleset
3990 When set, defines the device file system ruleset file to use for jail
3992 .It Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_enable
3999 mount the device file system inside jail
4002 .It Va jail_ Ns Ao Ar jname Ac Ns Va _fdescfs_enable
4009 mount the file-descriptor file system inside jail
4012 .It Va jail_ Ns Ao Ar jname Ac Ns Va _procfs_enable
4019 mount the process file system inside jail
4022 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_prestart Ns Aq Ar N
4025 This is the command run as
4028 before jail startup, where
4031 It is run outside the jail.
4032 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_start
4035 .Dq Li /bin/sh /etc/rc
4037 This is the command executed in a jail at jail startup.
4038 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_afterstart Ns Aq Ar N
4041 This is the command run as
4045 after jail startup, where
4048 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_poststart Ns Aq Ar N
4051 This is the command run as
4054 after jail startup, where
4057 It is run outside the jail.
4058 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_prestop Ns Aq Ar N
4061 This is the command run as
4064 before jail shutdown, where
4067 It is run outside the jail.
4068 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_stop
4071 .Dq Li /bin/sh /etc/rc.shutdown
4073 This is the command executed in a jail at jail shutdown.
4074 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_poststop Ns Aq Ar N
4077 This is the command run as
4080 after jail shutdown, where
4083 It is run outside the jail.
4084 .It Va jail_set_hostname_allow
4088 do not allow the root user in a jail to set its hostname.
4089 .It Va jail_socket_unixiproute_only
4093 do not allow any sockets,
4094 besides UNIX/IP/route sockets,
4095 to be used within a jail.
4096 .It Va jail_sysvipc_allow
4100 allow applications within a jail to use System V IPC.
4101 .\" -----------------------------------------------------
4102 .It Va harvest_interrupt
4106 to use hardware interrupts as an entropy source.
4109 for more information.
4110 .It Va harvest_ethernet
4114 to use LAN traffic as an entropy source.
4117 for more information.
4118 .It Va harvest_p_to_p
4122 to use serial line traffic as an entropy source.
4125 for more information.
4130 to disable caching entropy via
4132 Otherwise set to the directory used to store entropy files in.
4137 to disable caching entropy through reboots.
4138 Otherwise set to the filename used to store cached entropy through
4140 This file should be located on the root file system to seed the
4142 device as early as possible in the boot process.
4143 .It Va entropy_save_sz
4145 Size of the entropy cache files saved by
4148 .It Va entropy_save_num
4150 Number of entropy cache files to save by
4164 Configuration file for
4173 .Pa /var/run/dmesg.boot
4175 .It Va rcshutdown_timeout
4177 If set, start a watchdog timer in the background which will terminate
4181 has not completed within the specified time (in seconds).
4182 Notice that in addition to this soft timeout,
4184 also applies a hard timeout for the execution of
4186 This is configured via
4189 .Va kern.init_shutdown_timeout
4190 and defaults to 120 seconds.
4191 Setting the value of
4192 .Va rcshutdown_timeout
4193 to more than 120 seconds will have no effect until the
4196 .Va kern.init_shutdown_timeout
4198 .It Va virecover_enable
4202 to prevent the system from trying to
4203 recover pre-maturely terminated
4206 .It Va ugidfw_enable
4211 .Xr mac_bsdextended 4
4212 module upon system initialization and load a default
4214 .It Va bsdextended_script
4217 .Xr mac_bsdextended 4
4218 ruleset file to load.
4219 The default value of this variable is
4220 .Pa /etc/rc.bsdextended .
4221 .It Va newsyslog_enable
4228 .It Va newsyslog_flags
4231 .Va newsyslog_enable
4234 these are the flags to pass to the
4239 which causes log files flagged with a
4242 .It Va mdconfig_md Ns Aq Ar X
4252 must be specified and either a
4254 for malloc or swap backed
4262 .Va mdconfig_md Ns Aq Ar X
4263 variables are evaluated until one variable is unset or null.
4264 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _newfs
4266 Optional arguments passed to
4272 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _owner
4274 An ownership specification passed to
4283 device and the mount point will be changed.
4284 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _perms
4286 A mode string passed to
4295 device and the mount point will be changed.
4296 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _files
4298 Files to be copied to the mount point of the
4302 after it has been mounted.
4303 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _cmd
4305 Command to execute after the specified
4310 Note that the command is passed to
4316 variables can be used to reference respectively the
4318 device and the mount point.
4323 one could set the following:
4325 mdconfig_md0_cmd="tar xfzC /var/file.tgz \e${_mp}"
4327 .It Va autobridge_interfaces
4329 Set to the list of bridge interfaces that will have newly arriving interfaces
4330 checked against to be automatically added.
4333 then for each whitespace separated
4336 .Va autobridge_ Ns Aq Ar element
4337 variable is assumed to exist which has a whitespace separated list of interface
4338 names to match, these names can use wildcards.
4341 autobridge_interfaces="bridge0"
4342 autobridge_bridge0="tap* dc0 vlan[345]"
4348 enable support for sound mixer.
4349 .It Va hcsecd_enable
4353 enable Bluetooth security daemon.
4354 .It Va hcsecd_config
4356 Configuration file for
4359 .Pa /etc/bluetooth/hcsecd.conf .
4364 enable Bluetooth Service Discovery Protocol daemon.
4372 .It Va sdpd_groupname
4376 group to run as after it initializes.
4379 .It Va sdpd_username
4383 user to run as after it initializes.
4386 .It Va bthidd_enable
4390 enable Bluetooth Human Interface Device daemon.
4391 .It Va bthidd_config
4393 Configuration file for
4396 .Pa /etc/bluetooth/bthidd.conf .
4399 Path to a file, where
4401 will store information about known HID devices.
4403 .Pa /var/db/bthidd.hids .
4404 .It Va rfcomm_pppd_server_enable
4408 enable Bluetooth RFCOMM PPP wrapper daemon.
4409 .It Va rfcomm_pppd_server_profile
4411 The name of the profile to use from
4412 .Pa /etc/ppp/ppp.conf .
4413 Multiple profiles can be specified here.
4414 Also used to specify per-profile overrides.
4415 When the profile name contains any of the characters
4417 they are translated to
4419 for the proposes of the override variable names.
4420 .It Va rfcomm_pppd_server_ Ns Ao Ar profile Ac Ns _bdaddr
4422 Overrides local address to listen on.
4428 The address can be specified as BD_ADDR or name.
4429 .It Va rfcomm_pppd_server_ Ns Ao Ar profile Ac Ns _channel
4431 Overrides local RFCOMM channel to listen on.
4434 will listen on RFCOMM channel 1.
4435 Must set properly if multiple profiles used in the same time.
4436 .It Va rfcomm_pppd_server_ Ns Ao Ar profile Ac Ns _register_sp
4440 if it should register Serial Port service on the specified RFCOMM channel.
4443 .It Va rfcomm_pppd_server_ Ns Ao Ar profile Ac Ns _register_dun
4447 if it should register Dial-Up Networking service on the specified
4451 .It Va ubthidhci_enable
4455 change the USB Bluetooth controller from HID mode to HCI mode.
4456 You also need to specify the location of USB Bluetooth controller with the
4457 .Va ubthidhci_busnum
4461 .It Va ubthidhci_busnum
4462 Bus number where the USB Bluetooth controller is located.
4465 on your system to find this information.
4466 .It Va ubthidhci_addr
4467 Bus address of the USB Bluetooth controller.
4470 on your system to find this information.
4471 .It Va netwait_enable
4475 delays the start of network-reliant services until
4477 is up and ICMP packets to a destination defined in
4480 Link state is examined first, followed by
4482 an IP address to verify network usability.
4483 If no destination can be reached or timeouts are exceeded,
4484 network services are started anyway with no guarantee that
4485 the network is usable.
4486 Use of this variable requires both
4494 This variable contains a space-delimited list of IP addresses to
4496 DNS hostnames should not be used as resolution is not guaranteed
4497 to be functional at this point.
4498 If multiple IP addresses are specified,
4499 each will be tried until one is successful or the list is exhausted.
4500 .It Va netwait_timeout
4502 Indicates the total number of seconds to perform a
4504 against each IP address in
4506 at a rate of one ping per second.
4507 If any of the pings are successful,
4508 full network connectivity is considered reliable.
4513 Defines the name of the network interface on which watch for link.
4515 is used to monitor the interface, looking for
4516 .Dq Li status: no carrier .
4517 Once gone, the link is considered up.
4520 interface if desired.
4521 .It Va netwait_if_timeout
4523 Defines the total number of seconds to wait for link to become usable,
4524 polled at a 1-second interval.
4528 .Bl -tag -width ".Pa /etc/defaults/rc.conf" -compact
4529 .It Pa /etc/defaults/rc.conf
4531 .It Pa /etc/rc.conf.local
4560 .Xr newsyslog.conf 5 ,
4630 .An Jordan K. Hubbard .