rc.conf.5: Improve wording of the moused_type variable description.
[dragonfly.git] / share / man / man5 / rc.conf.5
1 .\" Copyright (c) 1995
2 .\"     Jordan K. Hubbard
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
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.
12 .\"
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
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD: src/share/man/man5/rc.conf.5,v 1.197 2003/07/28 13:56:00 mbr Exp $
26 .\"
27 .Dd September 29, 2017
28 .Dt RC.CONF 5
29 .Os
30 .Sh NAME
31 .Nm rc.conf
32 .Nd system configuration information
33 .Sh DESCRIPTION
34 The file
35 .Nm
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
40 .Nm
41 file is generally initialized by the installer.
42 .Pp
43 The purpose of
44 .Nm
45 is not to run commands or perform system startup actions directly.
46 Instead, it is included by the various generic startup scripts in
47 .Pa /etc
48 which conditionalize their
49 internal actions according to the settings found there.
50 .Pp
51 The
52 .Pa /etc/defaults/rc.conf
53 file specifies the default settings for all the available options,
54 the
55 .Pa /etc/rc.conf
56 file specifies override settings.
57 Options need only be specified in
58 .Pa /etc/rc.conf
59 when the system administrator wishes to override the defaults.
60 The file
61 .Pa /etc/rc.conf.local
62 is used to override settings in
63 .Pa /etc/rc.conf
64 for historical reasons.
65 In addition to
66 .Pa /etc/rc.conf.local
67 you can also place smaller configuration files for each
68 .Xr rc 8
69 script in the
70 .Pa /etc/rc.conf.d
71 directory, which will be included by the
72 .Va load_rc_config
73 function.
74 For jail configurations you could use the file
75 .Pa /etc/rc.conf.d/jail
76 to store jail specific configuration options.
77 Also see the
78 .Va rc_conf_files
79 variable below.
80 .Pp
81 The following list provides a name and short description for each
82 variable that can be set in the
83 .Nm
84 file.
85 To set a variable of
86 .Vt bool
87 type, specify either
88 .Dq Li YES ,
89 .Dq Li TRUE ,
90 .Dq Li ON ,
91 or
92 .Dq Li 1 .
93 To unset, specify
94 .Dq Li NO ,
95 .Dq Li FALSE ,
96 .Dq Li OFF ,
97 or
98 .Dq Li 0 .
99 These values are case insensitive.
100 The
101 .Va _enable
102 postfix in the name of a variable for starting a service can be
103 omitted (as in
104 .Nx ) .
105 .Bl -tag -width indent-two
106 .It Va rc_debug
107 .Pq Vt bool
108 If set to
109 .Dq Li YES ,
110 enable output of debug messages from rc scripts.
111 This variable can be helpful in diagnosing mistakes when
112 editing or integrating new scripts.
113 Beware that this produces copious output to the terminal and
114 .Xr syslog 3 .
115 .It Va rc_info
116 .Pq Vt bool
117 If set to
118 .Dq Li NO ,
119 disable informational messages from the rc scripts.
120 Informational messages are displayed when
121 a condition that is not serious enough to warrant a warning or an error occurs.
122 .It Va rc_startmsgs
123 .Pq Vt bool
124 If set to
125 .Dq Li YES ,
126 show
127 .Dq Starting foo:
128 when faststart is used (e.g., at boot time).
129 .It Va swapfile
130 .Pq Vt str
131 If set to
132 .Dq Li NO ,
133 no swapfile is installed, otherwise the value is used as the full
134 pathname to a file to use for additional swap space.
135 The
136 .Xr vn 4
137 driver is needed for a swapfile and will be loaded if it is not
138 already compiled into the kernel or loaded via
139 .Xr loader.conf 5 .
140 .It Ao Ar module Ac Ns Ar _load
141 .Pq Vt bool
142 If set to
143 .Dq YES ,
144 that kernel module will be loaded.
145 If no
146 .Ao Ar module Ac Ns Ar _name
147 is defined (see below), the
148 module's name is taken to be
149 .Aq Ar module .
150 .It Ao Ar module Ac Ns Ar _name
151 .Pq Vt str
152 Defines the name of the module.
153 .It Va devd_enable
154 .Pq Vt bool
155 Run
156 .Xr devd 8
157 to handle device added, removed or unknown events from the kernel.
158 .It Va devd_flags
159 .Pq Vt str
160 If
161 .Va devd_enable
162 is set to
163 .Dq Li YES ,
164 these are the flags to pass to the
165 .Xr devd 8
166 daemon.
167 .It Va powerd_enable
168 .Pq Vt bool
169 Set to
170 .Dq Li NO
171 by default.
172 Setting this to
173 .Dq Li YES
174 enables
175 .Xr powerd 8 ,
176 a CPU speed control daemon.
177 .It Va powerd_flags
178 .Pq Vt str
179 Empty by default.
180 Additional flags passed to the
181 .Xr powerd 8
182 program.
183 .It Va sensorsd_enable
184 .Pq Vt bool
185 Set to
186 .Dq Li NO
187 by default.
188 Setting this to
189 .Dq Li YES
190 enables
191 .Xr sensorsd 8 ,
192 a sensors monitoring and logging daemon.
193 .It Va sensorsd_flags
194 .Pq Vt str
195 Empty by default.
196 Additional flags passed to the
197 .Xr sensorsd 8
198 program.
199 .It Va sysvipcd_enable
200 .Pq Vt bool
201 Set to
202 .Dq Li NO
203 by default.
204 Setting this to
205 .Dq Li YES
206 enables
207 .Xr sysvipcd 8 ,
208 a daemon needed for the userspace implementation of the XSI Interprocess
209 Communication functions.
210 .It Va sysvipcd_flags
211 .Pq Vt str
212 Empty by default.
213 Additional flags passed to the
214 .Xr sysvipcd 8
215 program.
216 .It Va hotplugd_enable
217 .Pq Vt bool
218 Set to
219 .Dq Li NO
220 by default.
221 Setting this to
222 .Dq Li YES
223 enables
224 .Xr hotplugd 8 ,
225 a devices hot plugging monitoring daemon.
226 .It Va hotplugd_flags
227 .Pq Vt str
228 Empty by default.
229 Additional flags passed to the
230 .Xr hotplugd 8
231 program.
232 .It Va pccard_ifconfig
233 .Pq Vt str
234 List of arguments to be passed to
235 .Xr ifconfig 8
236 at boot time or on insertion of the card (e.g.\&
237 .Dq Cm inet Li 192.168.1.1 Cm netmask Li 255.255.255.0
238 for a fixed address or
239 .Dq Li DHCP
240 for a DHCP client).
241 .It Va pccard_ether_delay
242 .Pq Vt str
243 Set the delay before starting
244 .Xr dhclient 8
245 in the
246 .Pa /etc/pccard_ether
247 script.
248 This defaults to 5 seconds to work around a bug in the
249 .Xr ed 4
250 driver which can lead to system hangs when using some newer
251 .Xr ed 4
252 based cards.
253 .It Va removable_interfaces
254 .Pq Vt str
255 List of removable network interfaces to be supported by
256 .Pa /etc/pccard_ether .
257 .It Va local_startup
258 .Pq Vt str
259 List of directories to search for startup script files.
260 .It Va script_name_sep
261 .Pq Vt str
262 The field separator to use for breaking down the list of startup script files
263 into individual filenames.
264 The default is a space.
265 It is not necessary to change this unless there are startup scripts with names
266 containing spaces.
267 .It Va hostname
268 .Pq Vt str
269 The fully qualified domain name (FQDN) of this host on the network.
270 This should almost certainly be set to something meaningful, even if
271 there is no network connection.
272 If
273 .Xr dhclient 8
274 is used to set the hostname via DHCP,
275 this variable should be set to an empty string.
276 .It Va ipv6_enable
277 .Pq Vt bool
278 Enable support for IPv6 networking.
279 Note that this requires that the kernel have been compiled with
280 .Cd "options INET6" .
281 .It Va nisdomainname
282 .Pq Vt str
283 The NIS domain name of this host, or
284 .Dq Li NO
285 if NIS is not used.
286 .It Va dhclient_program
287 .Pq Vt str
288 Path to the DHCP client program
289 (default
290 .Pa /sbin/dhclient ) .
291 .It Va dhclient_flags
292 .Pq Vt str
293 Additional flags to pass to the DHCP client program.
294 .It Va pf_enable
295 .Pq Vt bool
296 Set to
297 .Dq Li YES
298 to load
299 .Xr pf 4
300 at startup.
301 If the kernel was not built with
302 .Cd "device pf" ,
303 the
304 .Pa pf.ko
305 kernel module will be loaded.
306 See also
307 .Va firewall_enable .
308 .It Va pf_rules
309 .Pq Vt str
310 Path to the
311 .Xr pf 4
312 ruleset definition file.
313 .It Va pf_program
314 .Pq Vt str
315 Path to
316 .Xr pfctl 8 .
317 .It Va pf_flags
318 .Pq Vt str
319 If
320 .Va pf_enable
321 is set to
322 .Dq Li YES ,
323 these are the flags to pass to
324 .Xr pfctl 8
325 when loading the ruleset.
326 .It Va pflog_enable
327 .Pq Vt bool
328 Set this to
329 .Dq Li YES
330 to enable
331 .Xr pflogd 8
332 which logs packets from
333 .Xr pf 4 .
334 .It Va pflog_logfile
335 .Pq Vt str
336 If
337 .Va pflog_enable
338 is set to
339 .Dq Li YES
340 this specifies the path of the log file.
341 .It Va pflog_program
342 .Pq Vt str
343 Path to
344 .Xr pflogd 8 .
345 .It Va pflog_flags
346 .Pq Vt str
347 If
348 .Va pflog_enable
349 is set to
350 .Dq Li YES ,
351 these are the flags to pass to
352 .Xr pflogd 8 .
353 .It Va firewall_enable
354 .Pq Vt bool
355 Set to
356 .Dq Li YES
357 to load firewall rules at startup.
358 If the kernel was not built with
359 .Cd "options IPFIREWALL" ,
360 the
361 .Pa ipfw.ko
362 kernel module will be loaded.
363 See also
364 .Va pf_enable .
365 .It Va ipv6_firewall_enable
366 .Pq Vt bool
367 The IPv6 equivalent of
368 .Va firewall_enable .
369 Set to
370 .Dq Li YES
371 to load IPv6 firewall rules at startup.
372 If the kernel was not built with
373 .Cd "options IPV6FIREWALL" ,
374 the
375 .Pa ip6fw.ko
376 kernel module will be loaded.
377 .It Va firewall_script
378 .Pq Vt str
379 The full path to the firewall script to run
380 (default
381 .Pa /etc/rc.firewall ) .
382 .It Va ipv6_firewall_script
383 .Pq Vt str
384 The IPv6 equivalent of
385 .Va firewall_script .
386 .It Va firewall_type
387 .Pq Vt str
388 Names the firewall type from the selection in
389 .Pa /etc/rc.firewall ,
390 or the file which contains the local firewall ruleset.
391 Valid selections from
392 .Pa /etc/rc.firewall
393 are:
394 .Pp
395 .Bl -tag -width ".Li simple" -compact
396 .It Li open
397 unrestricted IP access
398 .It Li closed
399 all IP services disabled, except via
400 .Dq Li lo0
401 .It Li client
402 basic protection for a workstation on a LAN
403 .It Li simple
404 alias for
405 .Li client .
406 .El
407 .Pp
408 If a filename is specified, the full path must be given.
409 .It Va firewall_trusted_nets
410 .Pq Vt str
411 List of trusted networks (if
412 .Va firewall_type
413 is set to
414 .Li client ) .
415 .It Va firewall_trusted_interfaces
416 .Pq Vt str
417 List of trusted network interfaces (if
418 .Va firewall_type
419 is set to
420 .Li client ) .
421 .It Va firewall_allowed_icmp_types
422 .Pq Vt str
423 List of allowed ICMP types (if
424 .Va firewall_type
425 is set to
426 .Li client ) .
427 .It Va firewall_open_tcp_ports
428 .Pq Vt str
429 List of TCP ports to open (if
430 .Va firewall_type
431 is set to
432 .Li client ) .
433 .It Va firewall_open_udp_ports
434 .Pq Vt str
435 List of UDP ports to open (if
436 .Va firewall_type
437 is set to
438 .Li client ) .
439 .It Va ipv6_firewall_type
440 .Pq Vt str
441 The IPv6 equivalent of
442 .Va firewall_type .
443 .It Va firewall_quiet
444 .Pq Vt bool
445 Set to
446 .Dq Li YES
447 to disable the display of firewall rules on the console during boot.
448 .It Va ipv6_firewall_quiet
449 .Pq Vt bool
450 The IPv6 equivalent of
451 .Va firewall_quiet .
452 .It Va firewall_logging
453 .Pq Vt bool
454 Set to
455 .Dq Li YES
456 to enable firewall event logging.
457 This is equivalent to the
458 .Dv IPFIREWALL_VERBOSE
459 kernel option.
460 .It Va ipv6_firewall_logging
461 .Pq Vt bool
462 The IPv6 equivalent of
463 .Va firewall_logging .
464 .It Va firewall_flags
465 .Pq Vt str
466 Flags passed to
467 .Xr ipfw 8
468 if
469 .Va firewall_type
470 specifies a filename.
471 .It Va ipv6_firewall_flags
472 .Pq Vt str
473 The IPv6 equivalent of
474 .Va firewall_flags .
475 .It Va natd_program
476 .Pq Vt str
477 Path to
478 .Xr natd 8 .
479 .It Va natd_enable
480 .Pq Vt bool
481 Set to
482 .Dq Li YES
483 to enable
484 .Xr natd 8 .
485 .Va firewall_enable
486 must also be set to
487 .Dq Li YES ,
488 and
489 .Xr divert 4
490 sockets must be enabled in the kernel.
491 .It Va natd_interface
492 .Pq Vt str
493 This is the name of the public interface on which
494 .Xr natd 8
495 should run.
496 The interface may be given as an interface name or as an IP address.
497 .It Va natd_flags
498 .Pq Vt str
499 Additional
500 .Xr natd 8
501 flags should be placed here.
502 The
503 .Fl n
504 or
505 .Fl a
506 flag is automatically added with the above
507 .Va natd_interface
508 as an argument.
509 .It Va tcp_extensions
510 .Pq Vt bool
511 Set to
512 .Dq Li YES
513 by default.
514 Setting this to
515 .Dq Li NO
516 disables certain TCP options as described by
517 .Rs
518 .%T "RFC 1323"
519 .Re
520 Setting this to
521 .Dq Li NO
522 might help remedy such problems with connections as randomly hanging
523 or other weird behavior.
524 Some network devices are known to be broken with respect to these options.
525 .It Va log_in_vain
526 .Pq Vt int
527 Set to 0 by default.
528 The
529 .Xr sysctl 8
530 variables,
531 .Va net.inet.tcp.log_in_vain
532 and
533 .Va net.inet.udp.log_in_vain ,
534 as described in
535 .Xr tcp 4
536 and
537 .Xr udp 4 ,
538 are set to the given value.
539 .It Va tcp_keepalive
540 .Pq Vt bool
541 Set to
542 .Dq Li YES
543 by default.
544 Setting to
545 .Dq Li NO
546 will disable probing idle TCP connections to verify that the
547 peer is still up and reachable.
548 .It Va tcp_drop_synfin
549 .Pq Vt bool
550 Set to
551 .Dq Li NO
552 by default.
553 Setting to
554 .Dq Li YES
555 will cause the kernel to ignore TCP frames that have both
556 the SYN and FIN flags set.
557 This prevents OS fingerprinting, but may break some legitimate applications.
558 This option is only available if the kernel was built with the
559 .Dv TCP_DROP_SYNFIN
560 option.
561 .It Va icmp_drop_redirect
562 .Pq Vt bool
563 Set to
564 .Dq Li NO
565 by default.
566 Setting to
567 .Dq Li YES
568 will cause the kernel to ignore ICMP REDIRECT packets.
569 Refer to
570 .Xr icmp 4
571 for more information.
572 .It Va icmp_log_redirect
573 .Pq Vt bool
574 Set to
575 .Dq Li NO
576 by default.
577 Setting to
578 .Dq Li YES
579 will cause the kernel to log ICMP REDIRECT packets.
580 Note that
581 the log messages are not rate-limited, so this option should only be used
582 for troubleshooting networks.
583 Refer to
584 .Xr icmp 4
585 for more information.
586 .It Va icmp_bmcastecho
587 .Pq Vt bool
588 Set to
589 .Dq Li YES
590 to respond to broadcast or multicast ICMP ping packets.
591 Refer to
592 .Xr icmp 4
593 for more information.
594 .It Va ip_portrange_first
595 .Pq Vt int
596 If not set to
597 .Dq Li NO ,
598 this is the first port in the default portrange.
599 Refer to
600 .Xr ip 4
601 for more information.
602 .It Va ip_portrange_last
603 .Pq Vt int
604 If not set to
605 .Dq Li NO ,
606 this is the last port in the default portrange.
607 Refer to
608 .Xr ip 4
609 for more information.
610 .\"
611 .It Va ifconfig_ Ns Aq Ar interface
612 .Pq Vt str
613 Configuration for
614 .Dq interface .
615 Typically includes IP address.
616 Assuming that the interface in question was
617 .Li ed0 ,
618 it might look something like this:
619 .Bd -literal
620 ifconfig_ed0="inet 10.0.0.1 netmask 0xffff0000"
621 .Ed
622 .Pp
623 If the
624 .Pa /etc/start_if. Ns Aq Ar interface
625 file is present, it is read and executed by the
626 .Xr sh 1
627 interpreter before configuring the interface as specified in the
628 .Va ifconfig_ Ns Aq Ar interface
629 and
630 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
631 variables.
632 .Pp
633 It is possible to bring up an interface with DHCP by adding
634 .Dq Li DHCP
635 to the
636 .Va ifconfig_ Ns Aq Ar interface
637 variable.
638 For instance, to initialize the
639 .Li ed0
640 device via DHCP, it is possible to use something like:
641 .Bd -literal
642 ifconfig_ed0="DHCP"
643 .Ed
644 .Pp
645 If a
646 .Va vlans_ Ns Aq Ar interface
647 variable is set,
648 a
649 .Xr vlan 4
650 interface will be created for each item in the list with the
651 .Ar vlandev
652 argument set to
653 .Ar interface .
654 If a vlan interface's name is a number,
655 then that number is used as the vlan tag and the new vlan interface is
656 named
657 .Ar interface . Ns Ar tag .
658 Otherwise,
659 the vlan tag must be specified via a
660 .Va vlan
661 parameter in the
662 .Va create_args_ Ns Aq Ar interface
663 variable.
664 .Pp
665 To create a vlan device named
666 .Li em0.101
667 on
668 .Li em0
669 with the vlan tag 101 and the optional the IPv4 address 192.0.2.1/24:
670 .Bd -literal
671 vlans_em0="101"
672 ifconfig_em0_101="inet 192.0.2.1/24"
673 .Ed
674 .Pp
675 To create a vlan device named
676 .Li myvlan
677 on
678 .Li em0
679 with the vlan tag 102:
680 .Bd -literal
681 vlans_em0="myvlan"
682 create_args_myvlan="vlan 102"
683 .Ed
684 .Pp
685 If a
686 .Va wlans_ Ns Aq Ar interface
687 variable is set,
688 an
689 .Xr wlan 4
690 interface will be created for each item in the list with the
691 .Ar wlandev
692 argument set to
693 .Ar interface .
694 Further wlan cloning arguments may be passed to the
695 .Xr ifconfig 8
696 .Cm create
697 command by setting the
698 .Va create_args_ Ns Aq Ar interface
699 variable.
700 One or more
701 .Xr wlan 4
702 devices must be created for each wireless devices as of
703 .Dx 2.5 .
704 Debugging flags for
705 .Xr wlan 4
706 devices as set by
707 .Xr wlandebug 8
708 may be specified with an
709 .Va wlandebug_ Ns Aq Ar interface
710 variable.
711 The contents of this variable will be passed directly to
712 .Xr wlandebug 8 .
713 .Pp
714 Also, if your interface needs WPA authentication, it is possible to add
715 .Dq Li WPA
716 to the
717 .Va ifconfig_ Ns Aq Ar interface
718 variable.
719 This will start
720 .Xr wpa_supplicant 8 .
721 See
722 .Xr wpa_supplicant.conf 5
723 for configuring authentication information.
724 .Pp
725 Finally, you can add
726 .Xr ifconfig 8
727 options in this variable, in addition to the
728 .Pa /etc/start_if. Ns Aq Ar interface
729 file.
730 For instance, to initialize the
731 .Li wi0
732 device via DHCP, using WPA authentication and 802.11b mode, it is
733 possible to use something like:
734 .Bd -literal
735 wlans_wi0="wlan0"
736 ifconfig_wlan0="up DHCP WPA mode 11b"
737 .Ed
738 .It Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
739 .Pq Vt str
740 Configuration to establish an additional network address for
741 .Dq interface .
742 Assuming that the interface in question was
743 .Li ed0 ,
744 it might look something like this:
745 .Bd -literal
746 ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
747 ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"
748 .Ed
749 .Pp
750 And so on.
751 For each
752 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
753 entry that is found, its contents are passed to
754 .Xr ifconfig 8 .
755 Execution stops at the first unsuccessful access, so if
756 something like this is present:
757 .Bd -literal
758 ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff"
759 ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff"
760 ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff"
761 ifconfig_ed0_alias4="inet 127.0.0.254 netmask 0xffffffff"
762 .Ed
763 .Pp
764 Then note that alias4 would
765 .Em not
766 be added since the search would stop with the missing alias3 entry.
767 .It Va ifconfig_ Ns Ao Ar interface Ac Ns Va _name
768 .Pq Vt str
769 New name for
770 .Dq interface .
771 It is possible to rename interface by doing:
772 .Bd -literal
773 ifconfig_ed0_name="net0"
774 ifconfig_net0="inet 10.0.0.1 netmask 0xffff0000"
775 .Ed
776 .It Va network_interfaces
777 .Pq Vt str
778 The list of network interfaces to configure on this host,
779 or
780 .Dq Li auto
781 to configure all network interfaces
782 (default
783 .Dq Li auto ) .
784 For example, if the only network devices to be configured are the loopback device
785 .Pq Li lo0
786 and a NIC using the
787 .Xr ed 4
788 driver, this could be set to
789 .Dq Li "lo0 ed0" .
790 An
791 .Va ifconfig_ Ns Aq Ar interface
792 variable is assumed to exist for each value of
793 .Ar interface .
794 .It Va ipv6_network_interfaces
795 .Pq Vt str
796 This is the IPv6 equivalent of
797 .Va network_interfaces .
798 Instead of setting the ifconfig variables as
799 .Va ifconfig_ Ns Aq Ar interface
800 they should be set as
801 .Va ipv6_ifconfig_ Ns Aq Ar interface .
802 Aliases should be set as
803 .Va ipv6_ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n .
804 Interfaces that do not have a
805 .Va ipv6_ifconfig_ Ns Aq Ar interface
806 setting will be auto configured by
807 .Xr rtsol 8
808 if the
809 .Va ipv6_gateway_enable
810 is set to
811 .Dq Li NO .
812 Note that the IPv6 networking code does not support the
813 .Pa /etc/start_if. Ns Aq Ar interface
814 files.
815 .It Va ipv6_prefix_ Ns Aq Ar interface
816 .Pq Vt str
817 Assign prefix to
818 .Ar interface ,
819 prefixlen 64 is used.
820 .It Va ipv6_default_interface
821 .Pq Vt str
822 If not set to
823 .Dq Li NO ,
824 this is the default output interface for scoped addresses.
825 Now this works only for IPv6 link local multicast addresses.
826 .It Va cloned_interfaces
827 .Pq Vt str
828 Set to the list of clonable network interfaces to create on this host.
829 Entries in
830 .Va cloned_interfaces
831 are automatically appended to
832 .Va network_interfaces
833 for configuration.
834 .It Va gif_interfaces
835 .Pq Vt str
836 Set to the list of
837 .Xr gif 4
838 tunnel interfaces to configure on this host.
839 A
840 .Va gifconfig_ Ns Aq Ar interface
841 variable is assumed to exist for each value of
842 .Ar interface .
843 The value of this variable is used to configure the link layer of the
844 tunnel according to the syntax of the
845 .Cm tunnel
846 option to
847 .Xr ifconfig 8 .
848 Additionally, this option ensures that each listed interface is created via the
849 .Cm create
850 option to
851 .Xr ifconfig 8
852 before attempting to configure it.
853 .It Va sppp_interfaces
854 .Pq Vt str
855 Set to the list of
856 .Xr sppp 4
857 interfaces to configure on this host.
858 A
859 .Va spppconfig_ Ns Aq Ar interface
860 variable is assumed to exist for each value of
861 .Ar interface .
862 Each interface should also be configured by a general
863 .Va ifconfig_ Ns Aq Ar interface
864 setting.
865 Refer to
866 .Xr spppcontrol 8
867 for more information about available options.
868 .It Va ppp_enable
869 .Pq Vt bool
870 If set to
871 .Dq Li YES ,
872 run the
873 .Xr ppp 8
874 daemon.
875 .It Va ppp_mode
876 .Pq Vt str
877 Mode in which to run the
878 .Xr ppp 8
879 daemon.
880 Accepted modes are
881 .Dq Li auto ,
882 .Dq Li ddial ,
883 .Dq Li direct
884 and
885 .Dq Li dedicated .
886 See the manual for a full description.
887 .It Va ppp_nat
888 .Pq Vt bool
889 If set to
890 .Dq Li YES ,
891 enables network address translation.
892 Used in conjunction with
893 .Va gateway_enable
894 allows hosts on private network addresses access to the Internet using
895 this host as a network address translating router.
896 .It Va ppp_profile
897 .Pq Vt str
898 The name of the profile to use from
899 .Pa /etc/ppp/ppp.conf .
900 Also used for per-profile overrides of
901 .Va ppp_ Ns Ao Ar profile Ac Ns _unit .
902 Where the profile contains any of the characters
903 .Dq Li .-/+
904 they are translated to
905 .Dq Li _
906 for the purposes of the override variable names.
907 .It Va ppp_ Ns Ao Ar profile Ac Ns _unit
908 .Pq Vt int
909 Set the unit number to be used for this profile.
910 See the manual description of
911 .Fl unit Ns Ar N
912 in
913 .Xr ppp 8
914 for details.
915 .It Va ppp_user
916 .Pq Vt str
917 The name of the user under which
918 .Xr ppp 8
919 should be started.
920 By default,
921 .Xr ppp 8
922 is started as
923 .Dq Li root .
924 .It Va rc_conf_files
925 .Pq Vt str
926 This option is used to specify a list of files that will override
927 the settings in
928 .Pa /etc/defaults/rc.conf .
929 The files will be read in the order in which they are specified and should
930 include the full path to the file.
931 By default, the files specified are
932 .Pa /etc/rc.conf
933 and
934 .Pa /etc/rc.conf.local
935 .It Va fsck_y_enable
936 .Pq Vt bool
937 If set to
938 .Dq Li YES ,
939 .Xr fsck 8
940 will be run with the
941 .Fl y
942 flag if the initial preen of the file systems fails.
943 .It Va netfs_types
944 .Pq Vt str
945 List of file system types that are network-based.
946 This list should generally not be modified by end users.
947 Use
948 .Va extra_netfs_types
949 instead.
950 .It Va extra_netfs_types
951 .Pq Vt str
952 If set to something other than
953 .Dq Li NO
954 (the default), this variable extends the list of file system types
955 for which automatic mounting at startup by
956 .Xr rc 8
957 should be delayed until the network is initialized.
958 It should contain
959 a whitespace-separated list of network file system descriptor pairs,
960 each consisting of a file system type as passed to
961 .Xr mount 8
962 and a human-readable, one-word description, joined with a colon
963 .Pq Ql \&: .
964 Extending the default list in this way is only necessary
965 when third party file system types are used.
966 .It Va devfs_config_files
967 .Pq Vt str
968 This option is used to specify a list of configuration files containing
969 .Xr devfs 5
970 rules that will be applied by
971 .Xr devfsctl 8
972 in the order in which they are specified and must include the full path
973 to the file.
974 .It Va syslogd_enable
975 .Pq Vt bool
976 If set to
977 .Dq Li YES ,
978 run the
979 .Xr syslogd 8
980 daemon.
981 .It Va syslogd_program
982 .Pq Vt str
983 Path to
984 .Xr syslogd 8
985 (default
986 .Pa /usr/sbin/syslogd ) .
987 .It Va syslogd_flags
988 .Pq Vt str
989 If
990 .Va syslogd_enable
991 is set to
992 .Dq Li YES ,
993 these are the flags to pass to
994 .Xr syslogd 8 .
995 .It Va inetd_enable
996 .Pq Vt bool
997 If set to
998 .Dq Li YES ,
999 run the
1000 .Xr inetd 8
1001 daemon.
1002 .It Va inetd_program
1003 .Pq Vt str
1004 Path to
1005 .Xr inetd 8
1006 (default
1007 .Pa /usr/sbin/inetd ) .
1008 .It Va inetd_flags
1009 .Pq Vt str
1010 If
1011 .Va inetd_enable
1012 is set to
1013 .Dq Li YES ,
1014 these are the flags to pass to
1015 .Xr inetd 8 .
1016 .It Va rwhod_enable
1017 .Pq Vt bool
1018 If set to
1019 .Dq Li YES ,
1020 run the
1021 .Xr rwhod 8
1022 daemon at boot time.
1023 .It Va rwhod_flags
1024 .Pq Vt str
1025 If
1026 .Va rwhod_enable
1027 is set to
1028 .Dq Li YES ,
1029 these are the flags to pass to it.
1030 .It Va update_motd
1031 .Pq Vt bool
1032 If set to
1033 .Dq Li YES ,
1034 .Pa /etc/motd
1035 will be updated at boot time to reflect the kernel release being run.
1036 If set to
1037 .Dq Li NO ,
1038 .Pa /etc/motd
1039 will not be updated.
1040 .It Va nfs_client_enable
1041 .Pq Vt bool
1042 If set to
1043 .Dq Li YES ,
1044 setup NFS client parameters at boot time.
1045 .It Va nfs_access_cache
1046 .Pq Vt int
1047 If
1048 .Va nfs_client_enable
1049 is set to
1050 .Dq Li YES ,
1051 this can be set to
1052 .Dq Li 0
1053 to disable NFS ACCESS RPC caching, or to the number of seconds for which
1054 NFS ACCESS results should be cached.
1055 A value of 2-10 seconds will substantially reduce network traffic for
1056 many NFS operations.
1057 The default is 5 seconds.
1058 Note that the attribute cache holds stat information only.
1059 The NFS data cache is independent of the attribute cache and is only
1060 invalidated when the client detects that the server has modified the
1061 underlying file.
1062 This value specifies a maximum timeout.
1063 The NFS client will automatically use a shorter timeout for files which
1064 have been recently modified.
1065 .It Va nfs_neg_cache
1066 .Pq Vt int
1067 If
1068 .Va nfs_client_enable
1069 is set to
1070 .Dq Li YES ,
1071 this can be set to
1072 .Dq Li 0
1073 to disable the caching of NEGATIVE LOOKUPS (lookups of non-existent
1074 filenames), or to the number of seconds for which negative lookups should
1075 be cached.
1076 A value of 2-10 seconds will substantially reduce network
1077 traffic for many NFS operations, especially source code builds.
1078 The default is 3 seconds.
1079 .It Va nfs_server_enable
1080 .Pq Vt bool
1081 If set to
1082 .Dq Li YES ,
1083 run the NFS server daemons at boot time.
1084 .It Va nfs_server_flags
1085 .Pq Vt str
1086 If
1087 .Va nfs_server_enable
1088 is set to
1089 .Dq Li YES ,
1090 these are the flags to pass to the
1091 .Xr nfsd 8
1092 daemon.
1093 .It Va mountd_enable
1094 .Pq Vt bool
1095 If set to
1096 .Dq Li YES ,
1097 and no
1098 .Va nfs_server_enable
1099 is set, start
1100 .Xr mountd 8 ,
1101 but not
1102 .Xr nfsd 8
1103 daemon.
1104 It is commonly needed to run CFS without real NFS used.
1105 .It Va mountd_flags
1106 .Pq Vt str
1107 If
1108 .Va mountd_enable
1109 is set to
1110 .Dq Li YES ,
1111 these are the flags to pass to the
1112 .Xr mountd 8
1113 daemon.
1114 .It Va weak_mountd_authentication
1115 .Pq Vt bool
1116 If set to
1117 .Dq Li YES ,
1118 allow services like PCNFSD to make non-privileged mount requests.
1119 .It Va nfs_reserved_port_only
1120 .Pq Vt bool
1121 If set to
1122 .Dq Li YES ,
1123 provide NFS services only on a secure port.
1124 .It Va nfs_bufpackets
1125 .Pq Vt int
1126 If set to a number, indicates the number of packets worth of
1127 socket buffer space to reserve on an NFS client.
1128 The kernel default is typically 4.
1129 Using a higher number may be useful on gigabit networks to improve performance.
1130 The minimum value is 2 and the maximum is 64.
1131 .It Va rpc_umntall_enable
1132 .Pq Vt bool
1133 If set to
1134 .Dq Li YES
1135 (default) and we are also an NFS client, run
1136 .Xr rpc.umntall 8
1137 at boot time to clear out old mounts on remote servers.
1138 If set to
1139 .Dq Li NO
1140 then
1141 .Xr rpc.umntall 8
1142 will not be run at boot time.
1143 .It Va rpc_lockd_enable
1144 .Pq Vt bool
1145 If set to
1146 .Dq Li YES
1147 and also an NFS server, run
1148 .Xr rpc.lockd 8
1149 at boot time.
1150 .It Va rpc_lockd_flags
1151 .Pq Vt str
1152 If
1153 .Va rpc_lockd_enable
1154 is set to
1155 .Dq Li YES ,
1156 these are the flags to pass to
1157 .Xr rpc.lockd 8 .
1158 .It Va rpc_statd_enable
1159 .Pq Vt bool
1160 If set to
1161 .Dq Li YES
1162 and also an NFS server, run
1163 .Xr rpc.statd 8
1164 at boot time.
1165 .It Va rpc_statd_flags
1166 .Pq Vt str
1167 If
1168 .Va rpc_statd_enable
1169 is set to
1170 .Dq Li YES ,
1171 these are the flags to pass to
1172 .Xr rpc.statd 8 .
1173 .It Va rpcbind_program
1174 .Pq Vt str
1175 Path to program for rpcbind daemon
1176 (default
1177 .Pa /usr/sbin/rpcbind ) .
1178 .It Va rpcbind_enable
1179 .Pq Vt bool
1180 If set to
1181 .Dq Li YES ,
1182 run
1183 .Va rpcbind_program
1184 at boot time.
1185 .It Va rpcbind_flags
1186 .Pq Vt str
1187 If
1188 .Va rpcbind_enable
1189 is set to
1190 .Dq Li YES ,
1191 these are the flags to pass to
1192 .Va rpcbind_program .
1193 .It Va keyserv_enable
1194 .Pq Vt bool
1195 If set to
1196 .Dq Li YES ,
1197 run the
1198 .Xr keyserv 8
1199 daemon on boot for running Secure RPC.
1200 .It Va keyserv_flags
1201 .Pq Vt str
1202 If
1203 .Va keyserv_enable
1204 is set to
1205 .Dq Li YES ,
1206 these are the flags to pass to
1207 .Xr keyserv 8
1208 daemon.
1209 .It Va pppoed_enable
1210 .Pq Vt bool
1211 If set to
1212 .Dq Li YES ,
1213 run the
1214 .Xr pppoed 8
1215 daemon at boot time to provide PPP over Ethernet services.
1216 .It Va pppoed_provider
1217 .Pq Vt str
1218 .Xr pppoed 8
1219 listens to requests to this provider and ultimately runs
1220 .Xr ppp 8
1221 with a
1222 .Ar system
1223 argument of the same name.
1224 .It Va pppoed_flags
1225 .Pq Vt str
1226 Additional flags to pass to
1227 .Xr pppoed 8 .
1228 .It Va pppoed_interface
1229 .Pq Vt str
1230 The network interface to run
1231 .Xr pppoed 8
1232 on.
1233 This is mandatory when
1234 .Va pppoed_enable
1235 is set to
1236 .Dq Li YES .
1237 .It Va timed_enable
1238 .Pq Vt bool
1239 If set to
1240 .Dq Li YES ,
1241 run the
1242 .Xr timed 8
1243 service at boot time.
1244 This command is intended for networks of machines where a consistent
1245 .Dq "network time"
1246 for all hosts must be established.
1247 This is often useful in large NFS environments where time stamps on
1248 files are expected to be consistent network-wide.
1249 .It Va timed_flags
1250 .Pq Vt str
1251 If
1252 .Va timed_enable
1253 is set to
1254 .Dq Li YES ,
1255 these are the flags to pass to the
1256 .Xr timed 8
1257 service.
1258 .It Va dntpd_enable
1259 .Pq Vt bool
1260 If set to
1261 .Dq Li YES ,
1262 run
1263 .Xr dntpd 8
1264 at system boot time.
1265 .It Va dntpd_program
1266 .Pq Vt str
1267 Path to
1268 .Xr dntpd 8
1269 (default
1270 .Pa /usr/sbin/dntpd ) .
1271 .It Va dntpd_flags
1272 .Pq Vt str
1273 If
1274 .Va dntpd_enable
1275 is set to
1276 .Dq Li YES ,
1277 these are the flags to pass to the
1278 .Xr dntpd 8
1279 daemon.
1280 .It Va btconfig_enable
1281 .Pq Vt bool
1282 If set to
1283 .Dq Li YES ,
1284 configure Bluetooth devices via
1285 .Xr btconfig 8
1286 at system boot time.
1287 .It Va btconfig_devices
1288 .Pq Vt str
1289 If
1290 .Va btconfig_enable
1291 is set to
1292 .Dq Li YES ,
1293 this is the list of Bluetooth devices to configure.
1294 If
1295 .Va btconfig_devices
1296 is not specified, all devices known to the system will be configured.
1297 A
1298 .Va btconfig_ Ns Aq Ar device
1299 variable can be set to specify parameters to be passed to
1300 .Ar device .
1301 .It Va btconfig_args
1302 .Pq Vt str
1303 If
1304 .Va btconfig_enable
1305 is set to
1306 .Dq Li YES ,
1307 this is the list of configuration parameters to pass to all Bluetooth
1308 devices.
1309 .It Va sdpd_enable
1310 .Pq Vt bool
1311 If set to
1312 .Dq Li YES ,
1313 run the Service Discovery Profile daemon
1314 .Xr ( sdpd 8 )
1315 at system boot time.
1316 .It Va sdpd_flags
1317 .Pq Vt str
1318 If
1319 .Va sdpd_enable
1320 is set to
1321 .Dq Li YES ,
1322 these are the flags to pass to the
1323 .Xr sdpd 8
1324 daemon.
1325 .It Va bthcid_enable
1326 .Pq Vt bool
1327 If set to
1328 .Dq Li YES ,
1329 run the Bluetooth Link Key/PIN Code Manager daemon
1330 .Xr ( bthcid 8 )
1331 at system boot time.
1332 .It Va bthcid_flags
1333 .Pq Vt str
1334 If
1335 .Va bthcid_enable
1336 is set to
1337 .Dq Li YES ,
1338 these are the flags to pass to the
1339 .Xr bthcid 8
1340 daemon.
1341 .It Va nis_client_enable
1342 .Pq Vt bool
1343 If set to
1344 .Dq Li YES ,
1345 run the
1346 .Xr ypbind 8
1347 service at system boot time.
1348 .It Va nis_client_flags
1349 .Pq Vt str
1350 If
1351 .Va nis_client_enable
1352 is set to
1353 .Dq Li YES ,
1354 these are the flags to pass to the
1355 .Xr ypbind 8
1356 service.
1357 .It Va nis_ypset_enable
1358 .Pq Vt bool
1359 If set to
1360 .Dq Li YES ,
1361 run the
1362 .Xr ypset 8
1363 daemon at system boot time.
1364 .It Va nis_ypset_flags
1365 .Pq Vt str
1366 If
1367 .Va nis_ypset_enable
1368 is set to
1369 .Dq Li YES ,
1370 these are the flags to pass to the
1371 .Xr ypset 8
1372 daemon.
1373 .It Va nis_server_enable
1374 .Pq Vt bool
1375 If set to
1376 .Dq Li YES ,
1377 run the
1378 .Xr ypserv 8
1379 daemon at system boot time.
1380 .It Va nis_server_flags
1381 .Pq Vt str
1382 If
1383 .Va nis_server_enable
1384 is set to
1385 .Dq Li YES ,
1386 these are the flags to pass to the
1387 .Xr ypserv 8
1388 daemon.
1389 .It Va nis_ypxfrd_enable
1390 .Pq Vt bool
1391 If set to
1392 .Dq Li YES ,
1393 run the
1394 .Xr rpc.ypxfrd 8
1395 daemon at system boot time.
1396 .It Va nis_ypxfrd_flags
1397 .Pq Vt str
1398 If
1399 .Va nis_ypxfrd_enable
1400 is set to
1401 .Dq Li YES ,
1402 these are the flags to pass to the
1403 .Xr rpc.ypxfrd 8
1404 daemon.
1405 .It Va nis_yppasswdd_enable
1406 .Pq Vt bool
1407 If set to
1408 .Dq Li YES ,
1409 run the
1410 .Xr rpc.yppasswdd 8
1411 daemon at system boot time.
1412 .It Va nis_yppasswdd_flags
1413 .Pq Vt str
1414 If
1415 .Va nis_yppasswdd_enable
1416 is set to
1417 .Dq Li YES ,
1418 these are the flags to pass to the
1419 .Xr rpc.yppasswdd 8
1420 daemon.
1421 .It Va rpc_ypupdated_enable
1422 .Pq Vt bool
1423 If set to
1424 .Dq Li YES ,
1425 run the
1426 .Nm rpc.ypupdated
1427 daemon at system boot time.
1428 .It Va defaultrouter
1429 .Pq Vt str
1430 If not set to
1431 .Dq Li NO ,
1432 create a default route to this host name or IP address
1433 (use an IP address if this router is also required to get to the
1434 name server!).
1435 .It Va ipv6_defaultrouter
1436 .Pq Vt str
1437 The IPv6 equivalent of
1438 .Va defaultrouter .
1439 .It Va static_routes
1440 .Pq Vt str
1441 Set to the list of static routes that are to be added at system boot time.
1442 If not set to
1443 .Dq Li NO
1444 then for each whitespace separated
1445 .Ar element
1446 in the value, a
1447 .Va route_ Ns Aq Ar element
1448 variable is assumed to exist whose contents will later be passed to a
1449 .Dq Nm route Cm add
1450 operation.
1451 .It Va change_routes
1452 .Pq Vt str
1453 Set to the list of static routes that are to be changed at system boot time
1454 (such as those added by the kernel).
1455 If not set to
1456 .Dq Li NO
1457 then for each whitespace separated
1458 .Ar element
1459 in the value, a
1460 .Va change_route_ Ns Aq Ar element
1461 variable is assumed to exist whose contents will later be passed to a
1462 .Dq Nm route Cm change
1463 operation.
1464 .It Va ipv6_static_routes
1465 .Pq Vt str
1466 The IPv6 equivalent of
1467 .Va static_routes .
1468 If not set to
1469 .Dq Li NO
1470 then for each whitespace separated
1471 .Ar element
1472 in the value, a
1473 .Va ipv6_route_ Ns Aq Ar element
1474 variable is assumed to exist whose contents will later be passed to a
1475 .Dq Nm route Cm add Fl inet6
1476 operation.
1477 .It Va gateway_enable
1478 .Pq Vt bool
1479 If set to
1480 .Dq Li YES ,
1481 configure host to act as an IP router, e.g. to forward packets
1482 between interfaces.
1483 .It Va ipv6_gateway_enable
1484 .Pq Vt bool
1485 The IPv6 equivalent of
1486 .Va gateway_enable .
1487 .It Va router_enable
1488 .Pq Vt bool
1489 If set to
1490 .Dq Li YES ,
1491 run a routing daemon of some sort, based on the settings of
1492 .Va router_program
1493 and
1494 .Va router_flags .
1495 .It Va ipv6_router_enable
1496 .Pq Vt bool
1497 The IPv6 equivalent of
1498 .Va router_enable .
1499 If set to
1500 .Dq Li YES ,
1501 run a routing daemon of some sort, based on the settings of
1502 .Va ipv6_router_program
1503 and
1504 .Va ipv6_router_flags .
1505 .It Va router_program
1506 .Pq Vt str
1507 If
1508 .Va router_enable
1509 is set to
1510 .Dq Li YES ,
1511 this is the name of the routing daemon to use
1512 (default
1513 .Pa /sbin/routed ) .
1514 .It Va ipv6_router_program
1515 .Pq Vt str
1516 The IPv6 equivalent of
1517 .Va router_program
1518 (default
1519 .Pa /sbin/route6d ) .
1520 .It Va router_flags
1521 .Pq Vt str
1522 If
1523 .Va router_enable
1524 is set to
1525 .Dq Li YES ,
1526 these are the flags to pass to the routing daemon.
1527 .It Va ipv6_router_flags
1528 .Pq Vt str
1529 The IPv6 equivalent of
1530 .Va router_flags .
1531 .It Va mrouted_enable
1532 .Pq Vt bool
1533 If set to
1534 .Dq Li YES ,
1535 run the multicast routing daemon,
1536 .Xr mrouted 8 .
1537 .It Va mroute6d_enable
1538 .Pq Vt bool
1539 The IPv6 equivalent of
1540 .Va mrouted_enable .
1541 If set to
1542 .Dq Li YES ,
1543 run the IPv6 multicast routing daemon.
1544 Note that no IPv6 multicast routing daemon is included in the
1545 .Dx
1546 base system but
1547 .Xr pim6dd 8
1548 can be installed from the
1549 .Xr dports 7
1550 collection
1551 .Pa ( net/mcast-tools ) .
1552 .It Va mrouted_flags
1553 .Pq Vt str
1554 If
1555 .Va mrouted_enable
1556 is set to
1557 .Dq Li YES ,
1558 these are the flags to pass to the
1559 .Xr mrouted 8
1560 daemon.
1561 .It Va mroute6d_flags
1562 .Pq Vt str
1563 The IPv6 equivalent of
1564 .Va mrouted_flags .
1565 If
1566 .Va mroute6d_enable
1567 is set to
1568 .Dq Li YES ,
1569 these are the flags passed to the IPv6 multicast routing daemon.
1570 .It Va mroute6d_program
1571 .Pq Vt str
1572 If
1573 .Va mroute6d_enable
1574 is set to
1575 .Dq Li YES ,
1576 this is the path to the IPv6 multicast routing daemon.
1577 .It Va rtadvd_enable
1578 .Pq Vt bool
1579 If set to
1580 .Dq Li YES ,
1581 run the
1582 .Xr rtadvd 8
1583 daemon at boot time.
1584 .Xr rtadvd 8
1585 will only run if
1586 .Va ipv6_gateway_enable
1587 is also set to
1588 .Dq Li YES .
1589 The
1590 .Xr rtadvd 8
1591 utility sends router advertisement packets to the interfaces specified in
1592 .Va rtadvd_interfaces .
1593 .Xr rtadvd 8
1594 and should only be enabled with great care.
1595 You may want to fine-tune
1596 .Xr rtadvd.conf 5 .
1597 .It Va rtadvd_interfaces
1598 .Pq Vt str
1599 If
1600 .Va rtadvd_enable
1601 is set to
1602 .Dq Li YES
1603 this is the list of interfaces to use.
1604 .It Va rtsold_enable
1605 .Pq Vt bool
1606 If set to
1607 .Dq Li YES ,
1608 run the
1609 .Xr rtsold 8
1610 daemon at boot time.
1611 The
1612 .Xr rtsold 8
1613 daemon is used for automatic discovery of non-link local addresses.
1614 .It Va rtsold_flags
1615 .Pq Vt str
1616 If
1617 .Va rtsold_enable
1618 is set to
1619 .Dq Li YES ,
1620 these are the flags to pass to the
1621 .Xr rtsold 8
1622 daemon.
1623 .It Va arpproxy_all
1624 .Pq Vt bool
1625 If set to
1626 .Dq Li YES ,
1627 enable global proxy ARP.
1628 .It Va forward_sourceroute
1629 .Pq Vt bool
1630 If set to
1631 .Dq Li YES
1632 and
1633 .Va gateway_enable
1634 is also set to
1635 .Dq Li YES ,
1636 source-routed packets are forwarded.
1637 .It Va accept_sourceroute
1638 .Pq Vt bool
1639 If set to
1640 .Dq Li YES ,
1641 the system will accept source-routed packets directed at it.
1642 .It Va rarpd_enable
1643 .Pq Vt bool
1644 If set to
1645 .Dq Li YES ,
1646 run the
1647 .Xr rarpd 8
1648 daemon at system boot time.
1649 .It Va rarpd_flags
1650 .Pq Vt str
1651 If
1652 .Va rarpd_enable
1653 is set to
1654 .Dq Li YES ,
1655 these are the flags to pass to the
1656 .Xr rarpd 8
1657 daemon.
1658 .It Va bootparamd_enable
1659 .Pq Vt bool
1660 If set to
1661 .Dq Li YES ,
1662 run the
1663 .Xr bootparamd 8
1664 daemon at system boot time.
1665 .It Va bootparamd_flags
1666 .Pq Vt str
1667 If
1668 .Va bootparamd_enable
1669 is set to
1670 .Dq Li YES ,
1671 these are the flags to pass to the
1672 .Xr bootparamd 8
1673 daemon.
1674 .It Va stf_interface_ipv4addr
1675 .Pq Vt str
1676 If not set to
1677 .Dq Li NO ,
1678 this is the local IPv4 address for 6to4 (IPv6 over IPv4 tunneling interface).
1679 Specify this entry to enable the 6to4 interface.
1680 .It Va stf_interface_ipv4plen
1681 .Pq Vt int
1682 Prefix length for 6to4 IPv4 addresses, to limit peer address range.
1683 An effective value is 0-31.
1684 .It Va stf_interface_ipv6_ifid
1685 .Pq Vt str
1686 IPv6 interface ID for
1687 .Xr stf 4 .
1688 This can be set to
1689 .Dq Li AUTO .
1690 .It Va stf_interface_ipv6_slaid
1691 .Pq Vt str
1692 IPv6 Site Level Aggregator for
1693 .Xr stf 4 .
1694 .It Va ipv6_faith_prefix
1695 .Pq Vt str
1696 If not set to
1697 .Dq Li NO ,
1698 this is the faith prefix to enable a FAITH IPv6-to-IPv4 TCP translator.
1699 You also need
1700 .Xr faithd 8
1701 setup.
1702 .It Va keybell
1703 .Pq Vt str
1704 The keyboard bell sound.
1705 Set to
1706 .Dq Li normal ,
1707 .Dq Li visual ,
1708 .Dq Li off ,
1709 or
1710 .Dq Li NO
1711 if the default behavior is desired.
1712 For details, refer to the
1713 .Xr kbdcontrol 1
1714 manpage.
1715 .It Va keymap
1716 .Pq Vt str
1717 If set to
1718 .Dq Li NO ,
1719 no keymap is installed, otherwise the value is used to install
1720 the keymap file in
1721 .Pa /usr/share/syscons/keymaps/ Ns Ao Ar value Ac Ns Pa .kbd .
1722 .It Va keyrate
1723 .Pq Vt str
1724 The keyboard repeat speed.
1725 Set to
1726 .Dq Li slow ,
1727 .Dq Li normal ,
1728 .Dq Li fast ,
1729 or
1730 .Dq Li NO
1731 if the default behavior is desired.
1732 .It Va keychange
1733 .Pq Vt str
1734 If not set to
1735 .Dq Li NO ,
1736 attempt to program the function keys with the value.
1737 The value should be a single string of the form:
1738 .Dq Ar funkey_number new_value Op Ar funkey_number new_value ... .
1739 .It Va cursor
1740 .Pq Vt str
1741 Can be set to the value of
1742 .Dq Li normal ,
1743 .Dq Li blink ,
1744 .Dq Li destructive ,
1745 or
1746 .Dq Li NO
1747 to set the cursor behavior explicitly or choose the default behavior.
1748 .It Va scrnmap
1749 .Pq Vt str
1750 If set to
1751 .Dq Li NO ,
1752 no screen map is installed, otherwise the value is used to install
1753 the screen map file in
1754 .Pa /usr/share/syscons/scrnmaps/ Ns Aq Ar value .
1755 .It Va font8x16
1756 .Pq Vt str
1757 If set to
1758 .Dq Li NO ,
1759 the default 8x16 font value is used for screen size requests, otherwise
1760 the value in
1761 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
1762 is used.
1763 .It Va font8x14
1764 .Pq Vt str
1765 If set to
1766 .Dq Li NO ,
1767 the default 8x14 font value is used for screen size requests, otherwise
1768 the value in
1769 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
1770 is used.
1771 .It Va font8x8
1772 .Pq Vt str
1773 If set to
1774 .Dq Li NO ,
1775 the default 8x8 font value is used for screen size requests, otherwise
1776 the value in
1777 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
1778 is used.
1779 .It Va blanktime
1780 .Pq Vt int
1781 If set to
1782 .Dq Li NO ,
1783 the default screen blanking interval is used, otherwise it is set to
1784 .Ar value
1785 seconds.
1786 .It Va saver
1787 .Pq Vt str
1788 If not set to
1789 .Dq Li NO ,
1790 this is the actual screen saver to use
1791 .Li ( blank , snake , daemon ,
1792 etc).
1793 .It Va moused_nondefault_enable
1794 .Pq Vt str
1795 If set to
1796 .Dq Li NO ,
1797 the mouse device specified on
1798 the command line is not automatically treated as enabled by the
1799 .Pa /etc/rc.d/moused
1800 script.
1801 Having this variable set to
1802 .Dq Li YES
1803 allows a
1804 .Xr usb 4
1805 mouse,
1806 for example,
1807 to be enabled as soon as it is plugged in.
1808 .It Va moused_enable
1809 .Pq Vt str
1810 If set to
1811 .Dq Li YES ,
1812 the
1813 .Xr moused 8
1814 daemon is started for doing cut/paste selection on the console.
1815 .It Va moused_type
1816 .Pq Vt str
1817 This is the protocol type of the mouse connected to this host.
1818 The default type is
1819 .Dq Li auto .
1820 The
1821 .Xr moused 8
1822 daemon
1823 is able to detect the appropriate mouse type automatically in many cases.
1824 Leave this variable at the default
1825 .Dq Li auto
1826 to let the daemon detect it, or
1827 select one from the following list if the automatic detection fails.
1828 .Pp
1829 If the mouse is attached to the PS/2 mouse port, leave the variable at the
1830 default
1831 .Dq Li auto
1832 or set it to
1833 .Dq Li ps/2 ,
1834 regardless of the brand and model of the mouse.
1835 Likewise, if the mouse is attached to the bus mouse port, leave it at
1836 .Dq Li auto
1837 or set it to
1838 .Dq Li busmouse .
1839 All other protocols are for serial mice and will not work with
1840 the PS/2 and bus mice.
1841 If this is a USB mouse,
1842 .Dq Li auto
1843 is the only protocol type which will work.
1844 .Pp
1845 .Bl -tag -width ".Li x10mouseremote" -compact
1846 .It Li microsoft
1847 Microsoft mouse (serial)
1848 .It Li intellimouse
1849 Microsoft IntelliMouse (serial)
1850 .It Li mousesystems
1851 Mouse systems Corp. mouse (serial)
1852 .It Li mmseries
1853 MM Series mouse (serial)
1854 .It Li logitech
1855 Logitech mouse (serial)
1856 .It Li busmouse
1857 A bus mouse
1858 .It Li mouseman
1859 Logitech MouseMan and TrackMan (serial)
1860 .It Li glidepoint
1861 ALPS GlidePoint (serial)
1862 .It Li thinkingmouse
1863 Kensington ThinkingMouse (serial)
1864 .It Li ps/2
1865 PS/2 mouse
1866 .It Li mmhittab
1867 MM HitTablet (serial)
1868 .It Li x10mouseremote
1869 X10 MouseRemote (serial)
1870 .It Li versapad
1871 Interlink VersaPad (serial)
1872 .El
1873 .Pp
1874 Even if the mouse is not in the above list, it may be compatible
1875 with one in the list.
1876 Refer to the man page for
1877 .Xr moused 8
1878 for compatibility information.
1879 .Pp
1880 It should also be noted that while this is enabled, any
1881 other client of the mouse (such as an X server) should access
1882 the mouse through the virtual mouse device,
1883 .Pa /dev/sysmouse ,
1884 and configure it as a
1885 .Dq Li sysmouse
1886 type mouse, since all
1887 mouse data is converted to this single canonical format when using
1888 .Xr moused 8 .
1889 If the client program does not support the
1890 .Dq Li sysmouse
1891 type, specify the
1892 .Dq Li mousesystems
1893 type.
1894 It is the second preferred type.
1895 .It Va moused_port
1896 .Pq Vt str
1897 If
1898 .Va moused_enable
1899 is set to
1900 .Dq Li YES ,
1901 this is the actual port the mouse is on.
1902 It might be
1903 .Pa /dev/cuaa0
1904 for a COM1 serial mouse or
1905 .Pa /dev/psm0
1906 for a PS/2 mouse, for example.
1907 .It Va moused_flags
1908 .Pq Vt str
1909 If
1910 .Va moused_type
1911 is set, these are the additional flags to pass to the
1912 .Xr moused 8
1913 daemon.
1914 .It Va mousechar_start
1915 .Pq Vt int
1916 If set to
1917 .Dq Li NO ,
1918 the default mouse cursor character range
1919 .Li 0xd0 Ns - Ns Li 0xd3
1920 is used, otherwise the range start is set to
1921 .Ar value
1922 character, see
1923 .Xr vidcontrol 1 .
1924 Use if the default range is occupied in the language code table.
1925 .It Va vidhistory
1926 .Pq Vt int
1927 Set the size of the history (scrollback) buffer in lines.
1928 .It Va allscreens_flags
1929 .Pq Vt str
1930 If set,
1931 .Xr vidcontrol 1
1932 is run with these options for each of the virtual terminals
1933 .Pq Pa /dev/ttyv* .
1934 For example,
1935 .Dq Fl m Cm on
1936 will enable the mouse pointer on all virtual terminals if
1937 .Va moused_enable
1938 is set to
1939 .Dq Li YES .
1940 .It Va allscreens_kbdflags
1941 .Pq Vt str
1942 If set,
1943 .Xr kbdcontrol 1
1944 is run with these options for each of the virtual terminals
1945 .Pq Pa /dev/ttyv* .
1946 For example,
1947 .Dq Fl h Li 200
1948 will set the
1949 .Xr syscons 4
1950 scrollback (history) buffer to 200 lines.
1951 .It Va cron_enable
1952 .Pq Vt bool
1953 If set to
1954 .Dq Li YES ,
1955 run the
1956 .Xr cron 8
1957 daemon at system boot time.
1958 .It Va cron_program
1959 .Pq Vt str
1960 Path to
1961 .Xr cron 8
1962 (default
1963 .Pa /usr/sbin/cron ) .
1964 .It Va cron_flags
1965 .Pq Vt str
1966 If
1967 .Va cron_enable
1968 is set to
1969 .Dq Li YES ,
1970 these are the flags to pass to
1971 .Xr cron 8 .
1972 .It Va lpd_program
1973 .Pq Vt str
1974 Path to
1975 .Xr lpd 8
1976 (default
1977 .Pa /usr/sbin/lpd ) .
1978 .It Va lpd_enable
1979 .Pq Vt bool
1980 If set to
1981 .Dq Li YES ,
1982 run the
1983 .Xr lpd 8
1984 daemon at system boot time.
1985 .It Va lpd_flags
1986 .Pq Vt str
1987 If
1988 .Va lpd_enable
1989 is set to
1990 .Dq Li YES ,
1991 these are the flags to pass to the
1992 .Xr lpd 8
1993 daemon.
1994 .It Va nscd_enable
1995 .Pq Vt bool
1996 If set to
1997 .Dq Li YES ,
1998 run the
1999 .Xr nscd 8
2000 daemon at system boot time.
2001 .It Va mixer_enable
2002 .Pq Vt bool
2003 If set to
2004 .Dq Li YES ,
2005 preserve
2006 .Xr mixer 8
2007 settings across reboots.
2008 .It Va mta_start_script
2009 .Pq Vt str
2010 The full path to the script to run to start
2011 a mail transfer agent.
2012 The default is
2013 .Pa /etc/rc.sendmail .
2014 The
2015 .Va sendmail_*
2016 variables which
2017 .Pa /etc/rc.sendmail
2018 uses are documented in the
2019 .Xr rc.sendmail 8
2020 man page.
2021 .It Va fixbootfile
2022 .Pq Vt bool
2023 In a
2024 .Sq HAMMER ROOT with UFS /boot
2025 setup, the boot loader will not set up the
2026 .Va kern.bootfile
2027 sysctl correctly.
2028 The system will attempt to fix this on its own.
2029 Set this variable to
2030 .Dq Li NO
2031 to turn this behavior off.
2032 .It Va dumpdev
2033 .Pq Vt str
2034 Indicates the device (usually a swap partition) to which a crash dump
2035 should be written in the event of a system crash.
2036 The value of this variable is passed as the argument to
2037 .Xr dumpon 8
2038 and
2039 .Xr savecore 8 .
2040 To disable crash dumps, set this variable to
2041 .Dq Li NO .
2042 .It Va dumpdir
2043 .Pq Vt str
2044 When the system reboots after a crash and a crash dump is found on the
2045 device specified by the
2046 .Va dumpdev
2047 variable,
2048 .Xr savecore 8
2049 will save that crash dump and a copy of the kernel to the directory
2050 specified by the
2051 .Va dumpdir
2052 variable.
2053 The default value is
2054 .Pa /var/crash .
2055 Set to
2056 .Dq Li NO
2057 to not run
2058 .Xr savecore 8
2059 at boot time when
2060 .Va dumpdir
2061 is set.
2062 .It Va savecore_flags
2063 .Pq Vt str
2064 If crash dumps are enabled, these are the flags to pass to the
2065 .Xr savecore 8
2066 utility.
2067 .It Va crashinfo_enable
2068 .Pq Vt bool
2069 Set to
2070 .Dq Li YES
2071 to turn on automatic crash dump summary generation using the utility
2072 specified by the
2073 .Va crashinfo_program
2074 variable.
2075 .It Va crashinfo_program
2076 .Pq Vt str
2077 Program to run to generate a crash dump summary if the variable
2078 .Va crashinfo_enable
2079 is set to
2080 .Dq Li YES .
2081 The default value is
2082 .Pa /usr/sbin/crashinfo .
2083 .It Va enable_quotas
2084 .Pq Vt bool
2085 Set to
2086 .Dq Li YES
2087 to turn on user disk quotas on system startup via the
2088 .Xr quotaon 8
2089 command.
2090 .It Va check_quotas
2091 .Pq Vt bool
2092 Set to
2093 .Dq Li YES
2094 to enable user disk quota checking via the
2095 .Xr quotacheck 8
2096 command.
2097 .It Va accounting_enable
2098 .Pq Vt bool
2099 Set to
2100 .Dq Li YES
2101 to enable system accounting through the
2102 .Xr accton 8
2103 facility.
2104 .\" ----- cleanvar_enable setting--------------------------------
2105 .It Va cleanvar_enable
2106 .Pq Vt bool
2107 Set to
2108 .Dq Li YES
2109 to have
2110 .Pa /var/run ,
2111 .Pa /var/spool/lock
2112 and
2113 .Pa /var/spool/uucp/.Temp/*
2114 cleaned at startup.
2115 .\" ----- clear_tmp_enable setting-------------------------------
2116 .It Va clear_tmp_enable
2117 .Pq Vt bool
2118 Set to
2119 .Dq Li YES
2120 to have
2121 .Pa /tmp
2122 cleaned at startup.
2123 .\" ----- ldconfig_paths setting --------------------------------
2124 .It Va ldconfig_paths
2125 .Pq Vt str
2126 Set to the list of shared library paths to use with
2127 .Xr ldconfig 8 .
2128 NOTE:
2129 .Pa /usr/lib
2130 will always be added first, so it need not appear in this list.
2131 .It Va ldconfig_insecure
2132 .Pq Vt bool
2133 The
2134 .Xr ldconfig 8
2135 utility normally refuses to use directories
2136 which are writable by anyone except root.
2137 Set this variable to
2138 .Dq Li YES
2139 to disable that security check during system startup.
2140 .It Va ldconfig_local_dirs
2141 .Pq Vt str
2142 Set to the list of local
2143 .Xr ldconfig 8
2144 directories.
2145 The names of all files in the directories listed will be
2146 passed as arguments to
2147 .Xr ldconfig 8 .
2148 .It Va kern_securelevel
2149 .Pq Vt int
2150 The kernel security level to set at startup.
2151 The allowed range of
2152 .Ar value
2153 ranges from \-1 (the compile time default) to 3 (the most secure).
2154 See
2155 .Xr init 8
2156 for the list of possible security levels and their effect on system operation.
2157 .It Va start_vinum
2158 .Pq Vt bool
2159 Set to
2160 .Dq Li YES
2161 to start
2162 .Xr vinum 8
2163 at system boot time.
2164 .It Va sshd_enable
2165 .Pq Vt bool
2166 Set to
2167 .Dq Li YES
2168 to start
2169 .Xr sshd 8
2170 at system boot time.
2171 .It Va sshd_program
2172 .Pq Vt str
2173 Path to the SSH server program
2174 (default
2175 .Pa /usr/sbin/sshd ) .
2176 .It Va sshd_flags
2177 .Pq Vt str
2178 If
2179 .Va sshd_enable
2180 is set to
2181 .Dq Li YES ,
2182 these are the flags to pass to the
2183 .Xr sshd 8
2184 daemon.
2185 .It Va ftpd_enable
2186 .Pq Vt bool
2187 Set to
2188 .Dq Li YES
2189 to start
2190 .Xr ftpd 8
2191 at system boot time.
2192 .It Va ftpd_flags
2193 .Pq Vt str
2194 If
2195 .Va ftpd_enable
2196 is set to
2197 .Dq Li YES ,
2198 these are the flags to pass to the
2199 .Xr ftpd 8
2200 daemon.
2201 .It Va watchdogd_enable
2202 .Pq Vt bool
2203 If set to
2204 .Dq Li YES ,
2205 start the
2206 .Xr watchdogd 8
2207 daemon at boot time.
2208 This requires that the kernel have been compiled with
2209 .Cd "options WATCHDOG" .
2210 .It Va jail_enable
2211 .Pq Vt bool
2212 If set to
2213 .Dq Li NO ,
2214 any configured jails will not be started.
2215 .It Va jail_list
2216 .Pq Vt str
2217 A space separated list of names for jails.
2218 This is purely a configuration aid to help identify and
2219 configure multiple jails.
2220 The names specified in this list will be used to
2221 identify settings common to an instance of a jail.
2222 Assuming that the jail in question was named
2223 .Li vjail ,
2224 you would have the following dependent variables:
2225 .Bd -literal
2226 jail_vjail_hostname="jail.example.com"
2227 jail_vjail_ip="192.168.1.100"
2228 jail_vjail_rootdir="/var/jails/vjail/root"
2229 .Ed
2230 .It Va jail_flags
2231 .Pq Vt str
2232 Unset by default.
2233 When set, use as default value for
2234 .Va jail_ Ns Ao Ar jname Ac Ns Va _flags
2235 for every jail in
2236 .Va jail_list .
2237 .It Va jail_interface
2238 .Pq Vt str
2239 Unset by default.
2240 When set, use as default value for
2241 .Va jail_ Ns Ao Ar jname Ac Ns Va _interface
2242 for every jail in
2243 .Va jail_list .
2244 .It Va jail_fstab
2245 .Pq Vt str
2246 Unset by default.
2247 When set, use as default value for
2248 .Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
2249 for every jail in
2250 .Va jail_list .
2251 .It Va jail_mount_enable
2252 .Pq Vt bool
2253 Set to
2254 .Dq Li NO
2255 by default.
2256 When set to
2257 .Dq Li YES ,
2258 sets
2259 .Va jail_ Ns Ao Ar jname Ac Ns Va _mount_enable
2260 to
2261 .Dq Li YES
2262 by default for every jail in
2263 .Va jail_list .
2264 .It Va jail_procfs_enable
2265 .Pq Vt bool
2266 Set to
2267 .Dq Li NO
2268 by default.
2269 When set to
2270 .Dq Li YES ,
2271 sets
2272 .Va jail_ Ns Ao Ar jname Ac Ns Va _procfs_enable
2273 to
2274 .Dq Li YES
2275 by default for every jail in
2276 .Va jail_list .
2277 .It Va jail_devfs_enable
2278 .Pq Vt bool
2279 Set to
2280 .Dq Li NO
2281 by default.
2282 When set to
2283 .Dq Li YES ,
2284 sets
2285 .Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_enable
2286 to
2287 .Dq Li YES
2288 by default for every jail in
2289 .Va jail_list .
2290 .It Va jail_exec_start
2291 .Pq Vt str
2292 Unset by default.
2293 When set, use as default value for
2294 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_start
2295 for every jail in
2296 .Va jail_list .
2297 .It Va jail_exec_stop
2298 Unset by default.
2299 When set, use as default value for
2300 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_stop
2301 for every jail in
2302 .Va jail_list .
2303 .It Va jail_ Ns Ao Ar jname Ac Ns Va _rootdir
2304 .Pq Vt str
2305 Unset by default.
2306 Set to the root directory used by jail
2307 .Va jname .
2308 .It Va jail_ Ns Ao Ar jname Ac Ns Va _hostname
2309 .Pq Vt str
2310 Unset by default.
2311 Set to the fully qualified domain name (FQDN) assigned to jail
2312 .Va jname .
2313 .It Va jail_ Ns Ao Ar jname Ac Ns Va _ip
2314 .Pq Vt str
2315 Unset by default.
2316 Set to the IP address assigned to jail
2317 .Va jname .
2318 .It Va jail_ Ns Ao Ar jname Ac Ns Va _flags
2319 .Pq Vt str
2320 Set to
2321 .Dq Li -l -U root
2322 by default.
2323 These are flags to pass to
2324 .Xr jail 8 .
2325 .It Va jail_ Ns Ao Ar jname Ac Ns Va _interface
2326 .Pq Vt str
2327 Unset by default.
2328 When set, sets the interface to use when setting IP address alias.
2329 Note that the alias is created at jail startup and removed at jail shutdown.
2330 .It Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
2331 .Pq Vt str
2332 Set to
2333 .Pa /etc/fstab. Ns Aq Ar jname
2334 by default.
2335 This is the file system information file to use for jail
2336 .Va jname .
2337 .It Va jail_ Ns Ao Ar jname Ac Ns Va _mount_enable
2338 .Pq Vt bool
2339 Set to
2340 .Dq Li NO
2341 by default.
2342 When set to
2343 .Dq Li YES ,
2344 mount all file systems from
2345 .Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
2346 at jail startup.
2347 .It Va jail_ Ns Ao Ar jname Ac Ns Va _procfs_enable
2348 .Pq Vt bool
2349 Set to
2350 .Dq Li NO
2351 by default.
2352 When set to
2353 .Dq Li YES ,
2354 mount the process file system inside jail
2355 .Ar jname
2356 at jail startup.
2357 .It Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_enable
2358 .Pq Vt bool
2359 Set to
2360 .Dq Li NO
2361 by default.
2362 When set to
2363 .Dq Li YES ,
2364 mount the device file system inside jail
2365 .Ar jname
2366 at jail startup.
2367 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_start
2368 .Pq Vt str
2369 Set to
2370 .Dq Li /bin/sh /etc/rc
2371 by default.
2372 This is the command executed at jail startup.
2373 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_stop
2374 .Pq Vt str
2375 Set to
2376 .Dq Li /bin/sh /etc/rc.shutdown
2377 by default.
2378 This is the command executed at jail shutdown.
2379 .It Va jail_set_hostname_allow
2380 .Pq Vt bool
2381 If set to
2382 .Dq Li NO ,
2383 do not allow the root user in a jail to set its hostname.
2384 .It Va jail_socket_unixiproute_only
2385 .Pq Vt bool
2386 If set to
2387 .Dq Li YES ,
2388 do not allow any sockets,
2389 besides UNIX/IP/route sockets,
2390 to be used within a jail.
2391 .It Va jail_sysvipc_allow
2392 .Pq Vt bool
2393 If set to
2394 .Dq Li YES ,
2395 allow applications within a jail to use System V IPC.
2396 .It Va lvm_enable
2397 .Pq Vt bool
2398 If set to
2399 .Dq Li YES
2400 LVM volumes will be discovered and configured on boot.
2401 .It Va newsyslog_enable
2402 .Pq Vt bool
2403 If set to
2404 .Dq Li YES ,
2405 run
2406 .Xr newsyslog 8
2407 before syslogd starts.
2408 .It Va newsyslog_flags
2409 .Pq Vt str
2410 If
2411 .Va newsyslog_enable
2412 is set to
2413 .Dq Li YES ,
2414 these are the flags passed to
2415 .Xr newsyslog 8 .
2416 .It Va resident_enable
2417 .Pq Vt bool
2418 If set to
2419 .Dq Li YES ,
2420 make the dynamic binaries listed in
2421 .Pa /etc/resident.conf
2422 resident.
2423 .It Va varsym_enable
2424 .Pq Vt bool
2425 If set to
2426 .Dq Li YES ,
2427 process
2428 .Pa /etc/varsym.conf
2429 to set system-wide variables for variant symlinks.
2430 .It Va rand_irqs
2431 .Pq Vt str
2432 Set either to
2433 .Dq Li NO
2434 or a whitespace separated list of IRQ numbers which will be used as a source of
2435 randomness.
2436 .\" -----------------------------------------------------
2437 .It Va entropy_dir
2438 .Pq Vt str
2439 Set to
2440 .Dq Li NO
2441 to disable caching entropy via
2442 .Xr cron 8 .
2443 Otherwise set to the directory used to store entropy files in.
2444 .It Va entropy_file
2445 .Pq Vt str
2446 Set to
2447 .Dq Li NO
2448 to disable caching entropy through reboots.
2449 Otherwise set to the filename used to store cached entropy through reboots.
2450 This file should be located on the root file system to seed the
2451 .Xr random 4
2452 device as early as possible in the boot process.
2453 .It Va entropy_save_sz
2454 .Pq Vt int
2455 Determines the size of the entropy cache files used for entropy cached
2456 through reboots and also entropy cached via
2457 .Xr cron 8 .
2458 The entropy is fed to the system in blocks of 512 bytes, so this number
2459 should be large enough to fill as many of the entropy pools in the kernel
2460 CSPRNG as possible.
2461 By default, it is set to 16384, which should be able to seed all 32 entropy
2462 pools in the Fortuna CSPRNG.
2463 .It Va ipsec_enable
2464 .Pq Vt bool
2465 Set to
2466 .Dq Li YES
2467 to run
2468 .Xr setkey 8
2469 on
2470 .Va ipsec_file
2471 at boot time.
2472 .It Va ipsec_file
2473 .Pq Vt str
2474 Configuration file for
2475 .Xr setkey 8 .
2476 .It Va dmesg_enable
2477 .Pq Vt bool
2478 Set to
2479 .Dq Li YES
2480 to save
2481 .Xr dmesg 8
2482 to
2483 .Pa /var/run/dmesg.boot
2484 on boot.
2485 .It Va rcshutdown_timeout
2486 .Pq Vt int
2487 If set, start a watchdog timer in the background which will terminate
2488 .Pa rc.shutdown
2489 if
2490 .Xr shutdown 8
2491 has not completed within the specified time (in seconds).
2492 Notice that in addition to this soft timeout,
2493 .Xr init 8
2494 also applies a hard timeout for the execution of
2495 .Pa rc.shutdown .
2496 This is configured via
2497 .Xr sysctl 8
2498 variable
2499 .Va kern.init_shutdown_timeout
2500 and defaults to 120 seconds. Setting the value of
2501 .Va rcshutdown_timeout
2502 to more than 120 seconds will have no effect until the
2503 .Xr sysctl 8
2504 variable
2505 .Va kern.init_shutdown_timeout
2506 is also increased.
2507 .It Va udevd_enable
2508 .Pq Vt bool
2509 If set to
2510 .Dq Li YES ,
2511 the udevd daemon will be started on boot.
2512 .It Va vfs_quota_enable
2513 .Pq Vt bool
2514 If set to
2515 .Dq Li YES ,
2516 vfs quota rc.d scripts will be run on boot.
2517 .It Va vfs_quota_sync
2518 .Pq Vt str
2519 List of mount points whose counters are to be synchronized with on-disk
2520 usage during system startup. See also
2521 .Xr vquota 8 .
2522 .It Va vknetd_enable
2523 .Pq Vt bool
2524 If set to
2525 .Dq Li YES ,
2526 .Xr vknetd 8
2527 will be started on boot.
2528 .It Va vknetd_flags
2529 .Pq Vt bool
2530 Additional flags passed to
2531 .Xr vknetd 8 .
2532 Usually address/cidrbits is specified here.
2533 When no flags are passed, default option
2534 .Fl U
2535 will be used.
2536 .It Va vkernel_enable
2537 .Pq Vt bool
2538 If set to
2539 .Dq Li NO ,
2540 any configured vkernels will not be started.
2541 .It Va vkernel_kill_timeout
2542 .Pq Vt int
2543 This defines the default number of seconds that we will wait for the
2544 vkernel to shut down on it's own. If after this time it's still alive,
2545 it will be killed with SIGKILL.
2546 .It Va vkernel_bin
2547 .Pq Vt str
2548 Defines the default path to the vkernel binary.
2549 .It Va vkernel_list
2550 .Pq Vt str
2551 A space separated list of names for vkernels.
2552 This is purely a configuration aid to help identify and
2553 configure multiple vkernels.
2554 The names specified in this list will be used to
2555 identify settings common to a vkernel instance.
2556 Assuming that the vkernel in question was named
2557 .Li example ,
2558 you would have the following dependent variables
2559 (filled with reference values in this text):
2560 .Bd -literal
2561 vkernel_example_bin="/usr/obj/usr/src/sys/VKERNEL64/kernel.debug"
2562 vkernel_example_memsize="64m"
2563 vkernel_example_rootimg_list="/var/vkernel/rootimg.01"
2564 vkernel_example_memimg="/var/vkernel/memimg.000001"
2565 vkernel_example_user="myuser"
2566 vkernel_example_iface_list="auto:bridge0"
2567 vkernel_example_logfile="/dev/null"
2568 vkernel_example_flags="-U"
2569 vkernel_example_kill_timeout="45"
2570 .Ed
2571 .Pp
2572 The last six are optional.
2573 They default to an empty string if not set, except for logfile which defaults to
2574 .Pa /dev/null
2575 if it is not set.
2576 .Pp
2577 Note that in case
2578 .Va vkernel_memimg
2579 is not set, the
2580 .Pa rc.d
2581 script will create
2582 .Pa /var/vkernel ,
2583 which is the vkernel's default directory for memory images,
2584 with permissions of 1777, i.e. world writable with the sticky bit set
2585 (see
2586 .Xr sticky 8 ) .
2587 .It Va autofs_enable
2588 .Pq Vt bool
2589 If set to
2590 .Dq Li YES ,
2591 start the
2592 .Xr automount 8
2593 utility and the
2594 .Xr automountd 8
2595 and
2596 .Xr autounmountd 8
2597 daemons at boot time.
2598 .It Va automount_flags
2599 .Pq Vt str
2600 If
2601 .Va autofs_enable
2602 is set to
2603 .Dq Li YES ,
2604 these are the flags to pass to the
2605 .Xr automount 8
2606 program.
2607 By default no flags are passed.
2608 .It Va automountd_flags
2609 .Pq Vt str
2610 If
2611 .Va autofs_enable
2612 is set to
2613 .Dq Li YES ,
2614 these are the flags to pass to the
2615 .Xr automountd 8
2616 daemon.
2617 By default no flags are passed.
2618 .It Va autounmountd_flags
2619 .Pq Vt str
2620 If
2621 .Va autofs_enable
2622 is set to
2623 .Dq Li YES ,
2624 these are the flags to pass to the
2625 .Xr autounmountd 8
2626 daemon.
2627 By default no flags are passed.
2628 .El
2629 .Sh FILES
2630 .Bl -tag -width ".Pa /etc/start_if. Ns Aq Ar interface" -compact
2631 .It Pa /etc/defaults/rc.conf
2632 .It Pa /etc/rc.conf
2633 .It Pa /etc/rc.conf.local
2634 .It Pa /etc/start_if. Ns Aq Ar interface
2635 .El
2636 .Sh SEE ALSO
2637 .Xr catman 1 ,
2638 .Xr gdb 1 ,
2639 .Xr info 1 ,
2640 .Xr kbdcontrol 1 ,
2641 .Xr varsym 1 ,
2642 .Xr vidcontrol 1 ,
2643 .Xr ip 4 ,
2644 .Xr ipfw 4 ,
2645 .Xr kld 4 ,
2646 .Xr pf 4 ,
2647 .Xr tcp 4 ,
2648 .Xr udp 4 ,
2649 .Xr vlan 4 ,
2650 .Xr autofs 5 ,
2651 .Xr auto_master 5 ,
2652 .Xr exports 5 ,
2653 .Xr motd 5 ,
2654 .Xr resident.conf 5 ,
2655 .Xr varsym.conf 5 ,
2656 .Xr accton 8 ,
2657 .Xr automount 8 ,
2658 .Xr automountd 8 ,
2659 .Xr autounmountd 8 ,
2660 .Xr btconfig 8 ,
2661 .Xr bthcid 8 ,
2662 .Xr cron 8 ,
2663 .Xr devd 8 ,
2664 .Xr dhclient 8 ,
2665 .Xr dntpd 8 ,
2666 .Xr ftpd 8 ,
2667 .Xr ifconfig 8 ,
2668 .Xr inetd 8 ,
2669 .Xr jail 8 ,
2670 .Xr lpd 8 ,
2671 .Xr makewhatis 8 ,
2672 .Xr mixer 8 ,
2673 .Xr mountd 8 ,
2674 .Xr moused 8 ,
2675 .Xr mrouted 8 ,
2676 .Xr named 8 ,
2677 .Xr nfsd 8 ,
2678 .Xr pcnfsd 8 ,
2679 .Xr pfctl 8 ,
2680 .Xr pflogd 8 ,
2681 .Xr quotacheck 8 ,
2682 .Xr quotaon 8 ,
2683 .Xr rc 8 ,
2684 .Xr rc.sendmail 8 ,
2685 .Xr resident 8 ,
2686 .Xr rndcontrol 8 ,
2687 .Xr route 8 ,
2688 .Xr routed 8 ,
2689 .Xr rpcbind 8 ,
2690 .Xr rpc.lockd 8 ,
2691 .Xr rpc.statd 8 ,
2692 .Xr rtadvd 8 ,
2693 .Xr rtsold 8 ,
2694 .Xr rwhod 8 ,
2695 .Xr savecore 8 ,
2696 .Xr sdpd 8 ,
2697 .Xr sensorsd 8 ,
2698 .Xr sshd 8 ,
2699 .Xr swapon 8 ,
2700 .Xr sysctl 8 ,
2701 .Xr syslogd 8 ,
2702 .Xr sysvipcd 8 ,
2703 .Xr timed 8 ,
2704 .Xr vinum 8 ,
2705 .Xr yp 8 ,
2706 .Xr ypbind 8 ,
2707 .Xr ypserv 8 ,
2708 .Xr ypset 8
2709 .Sh HISTORY
2710 The
2711 .Nm
2712 file appeared in
2713 .Fx 2.2.2 .
2714 .Sh AUTHORS
2715 .An Jordan K. Hubbard .