Remove faith(4) and faithd(8) from the tree.
[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 November 25, 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 keybell
1695 .Pq Vt str
1696 The keyboard bell sound.
1697 Set to
1698 .Dq Li normal ,
1699 .Dq Li visual ,
1700 .Dq Li off ,
1701 or
1702 .Dq Li NO
1703 if the default behavior is desired.
1704 For details, refer to the
1705 .Xr kbdcontrol 1
1706 manpage.
1707 .It Va keymap
1708 .Pq Vt str
1709 If set to
1710 .Dq Li NO ,
1711 no keymap is installed, otherwise the value is used to install
1712 the keymap file in
1713 .Pa /usr/share/syscons/keymaps/ Ns Ao Ar value Ac Ns Pa .kbd .
1714 .It Va keyrate
1715 .Pq Vt str
1716 The keyboard repeat speed.
1717 Set to
1718 .Dq Li slow ,
1719 .Dq Li normal ,
1720 .Dq Li fast ,
1721 or
1722 .Dq Li NO
1723 if the default behavior is desired.
1724 .It Va keychange
1725 .Pq Vt str
1726 If not set to
1727 .Dq Li NO ,
1728 attempt to program the function keys with the value.
1729 The value should be a single string of the form:
1730 .Dq Ar funkey_number new_value Op Ar funkey_number new_value ... .
1731 .It Va cursor
1732 .Pq Vt str
1733 Can be set to the value of
1734 .Dq Li normal ,
1735 .Dq Li blink ,
1736 .Dq Li destructive ,
1737 or
1738 .Dq Li NO
1739 to set the cursor behavior explicitly or choose the default behavior.
1740 .It Va scrnmap
1741 .Pq Vt str
1742 If set to
1743 .Dq Li NO ,
1744 no screen map is installed, otherwise the value is used to install
1745 the screen map file in
1746 .Pa /usr/share/syscons/scrnmaps/ Ns Aq Ar value .
1747 .It Va font8x16
1748 .Pq Vt str
1749 If set to
1750 .Dq Li NO ,
1751 the default 8x16 font value is used for screen size requests, otherwise
1752 the value in
1753 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
1754 is used.
1755 .It Va font8x14
1756 .Pq Vt str
1757 If set to
1758 .Dq Li NO ,
1759 the default 8x14 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 font8x8
1764 .Pq Vt str
1765 If set to
1766 .Dq Li NO ,
1767 the default 8x8 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 blanktime
1772 .Pq Vt int
1773 If set to
1774 .Dq Li NO ,
1775 the default screen blanking interval is used, otherwise it is set to
1776 .Ar value
1777 seconds.
1778 .It Va saver
1779 .Pq Vt str
1780 If not set to
1781 .Dq Li NO ,
1782 this is the actual screen saver to use
1783 .Li ( blank , snake , daemon ,
1784 etc).
1785 .It Va moused_nondefault_enable
1786 .Pq Vt str
1787 If set to
1788 .Dq Li NO ,
1789 the mouse device specified on
1790 the command line is not automatically treated as enabled by the
1791 .Pa /etc/rc.d/moused
1792 script.
1793 Having this variable set to
1794 .Dq Li YES
1795 allows a
1796 .Xr usb 4
1797 mouse,
1798 for example,
1799 to be enabled as soon as it is plugged in.
1800 .It Va moused_enable
1801 .Pq Vt str
1802 If set to
1803 .Dq Li YES ,
1804 the
1805 .Xr moused 8
1806 daemon is started for doing cut/paste selection on the console.
1807 .It Va moused_type
1808 .Pq Vt str
1809 If
1810 .Va moused_enable
1811 is set to
1812 .Dq Li YES ,
1813 this is the protocol type of the mouse connected to this host.
1814 The default type is
1815 .Dq Li auto .
1816 The
1817 .Xr moused 8
1818 daemon
1819 is able to detect the appropriate mouse type automatically in many cases.
1820 Leave this variable at the default
1821 .Dq Li auto
1822 to let the daemon detect it, or
1823 select one from the following list if the automatic detection fails.
1824 .Pp
1825 If the mouse is attached to the PS/2 mouse port, leave the variable at the
1826 default
1827 .Dq Li auto
1828 or set it to
1829 .Dq Li ps/2 ,
1830 regardless of the brand and model of the mouse.
1831 Likewise, if the mouse is attached to the bus mouse port, leave it at
1832 .Dq Li auto
1833 or set it to
1834 .Dq Li busmouse .
1835 All other protocols are for serial mice and will not work with
1836 the PS/2 and bus mice.
1837 If this is a USB mouse,
1838 .Dq Li auto
1839 is the only protocol type which will work.
1840 .Pp
1841 .Bl -tag -width ".Li x10mouseremote" -compact
1842 .It Li microsoft
1843 Microsoft mouse (serial)
1844 .It Li intellimouse
1845 Microsoft IntelliMouse (serial)
1846 .It Li mousesystems
1847 Mouse systems Corp. mouse (serial)
1848 .It Li mmseries
1849 MM Series mouse (serial)
1850 .It Li logitech
1851 Logitech mouse (serial)
1852 .It Li busmouse
1853 A bus mouse
1854 .It Li mouseman
1855 Logitech MouseMan and TrackMan (serial)
1856 .It Li glidepoint
1857 ALPS GlidePoint (serial)
1858 .It Li thinkingmouse
1859 Kensington ThinkingMouse (serial)
1860 .It Li ps/2
1861 PS/2 mouse
1862 .It Li mmhittab
1863 MM HitTablet (serial)
1864 .It Li x10mouseremote
1865 X10 MouseRemote (serial)
1866 .It Li versapad
1867 Interlink VersaPad (serial)
1868 .El
1869 .Pp
1870 Even if the mouse is not in the above list, it may be compatible
1871 with one in the list.
1872 Refer to the man page for
1873 .Xr moused 8
1874 for compatibility information.
1875 .Pp
1876 It should also be noted that while this is enabled, any
1877 other client of the mouse (such as an X server) should access
1878 the mouse through the virtual mouse device,
1879 .Pa /dev/sysmouse ,
1880 and configure it as a
1881 .Dq Li sysmouse
1882 type mouse, since all
1883 mouse data is converted to this single canonical format when using
1884 .Xr moused 8 .
1885 If the client program does not support the
1886 .Dq Li sysmouse
1887 type, specify the
1888 .Dq Li mousesystems
1889 type.
1890 It is the second preferred type.
1891 .It Va moused_port
1892 .Pq Vt str
1893 If
1894 .Va moused_enable
1895 is set to
1896 .Dq Li YES ,
1897 this is the actual port the mouse is on.
1898 It might be
1899 .Pa /dev/cuaa0
1900 for a COM1 serial mouse or
1901 .Pa /dev/psm0
1902 for a PS/2 mouse, for example.
1903 .It Va moused_flags
1904 .Pq Vt str
1905 If
1906 .Va moused_type
1907 is set, these are the additional flags to pass to the
1908 .Xr moused 8
1909 daemon.
1910 .It Va mousechar_start
1911 .Pq Vt int
1912 If set to
1913 .Dq Li NO ,
1914 the default mouse cursor character range
1915 .Li 0xd0 Ns - Ns Li 0xd3
1916 is used, otherwise the range start is set to
1917 .Ar value
1918 character, see
1919 .Xr vidcontrol 1 .
1920 Use if the default range is occupied in the language code table.
1921 .It Va vidhistory
1922 .Pq Vt int
1923 Set the size of the history (scrollback) buffer in lines.
1924 .It Va allscreens_flags
1925 .Pq Vt str
1926 If set,
1927 .Xr vidcontrol 1
1928 is run with these options for each of the virtual terminals
1929 .Pq Pa /dev/ttyv* .
1930 For example,
1931 .Dq Fl m Cm on
1932 will enable the mouse pointer on all virtual terminals if
1933 .Va moused_enable
1934 is set to
1935 .Dq Li YES .
1936 .It Va allscreens_kbdflags
1937 .Pq Vt str
1938 If set,
1939 .Xr kbdcontrol 1
1940 is run with these options for each of the virtual terminals
1941 .Pq Pa /dev/ttyv* .
1942 For example,
1943 .Dq Fl h Li 200
1944 will set the
1945 .Xr syscons 4
1946 scrollback (history) buffer to 200 lines.
1947 .It Va cron_enable
1948 .Pq Vt bool
1949 If set to
1950 .Dq Li YES ,
1951 run the
1952 .Xr cron 8
1953 daemon at system boot time.
1954 .It Va cron_program
1955 .Pq Vt str
1956 Path to
1957 .Xr cron 8
1958 (default
1959 .Pa /usr/sbin/cron ) .
1960 .It Va cron_flags
1961 .Pq Vt str
1962 If
1963 .Va cron_enable
1964 is set to
1965 .Dq Li YES ,
1966 these are the flags to pass to
1967 .Xr cron 8 .
1968 .It Va lpd_program
1969 .Pq Vt str
1970 Path to
1971 .Xr lpd 8
1972 (default
1973 .Pa /usr/sbin/lpd ) .
1974 .It Va lpd_enable
1975 .Pq Vt bool
1976 If set to
1977 .Dq Li YES ,
1978 run the
1979 .Xr lpd 8
1980 daemon at system boot time.
1981 .It Va lpd_flags
1982 .Pq Vt str
1983 If
1984 .Va lpd_enable
1985 is set to
1986 .Dq Li YES ,
1987 these are the flags to pass to the
1988 .Xr lpd 8
1989 daemon.
1990 .It Va nscd_enable
1991 .Pq Vt bool
1992 If set to
1993 .Dq Li YES ,
1994 run the
1995 .Xr nscd 8
1996 daemon at system boot time.
1997 .It Va mixer_enable
1998 .Pq Vt bool
1999 If set to
2000 .Dq Li YES ,
2001 preserve
2002 .Xr mixer 8
2003 settings across reboots.
2004 .It Va mta_start_script
2005 .Pq Vt str
2006 The full path to the script to run to start
2007 a mail transfer agent.
2008 The default is
2009 .Pa /etc/rc.sendmail .
2010 The
2011 .Va sendmail_*
2012 variables which
2013 .Pa /etc/rc.sendmail
2014 uses are documented in the
2015 .Xr rc.sendmail 8
2016 man page.
2017 .It Va fixbootfile
2018 .Pq Vt bool
2019 In a
2020 .Sq HAMMER ROOT with UFS /boot
2021 setup, the boot loader will not set up the
2022 .Va kern.bootfile
2023 sysctl correctly.
2024 The system will attempt to fix this on its own.
2025 Set this variable to
2026 .Dq Li NO
2027 to turn this behavior off.
2028 .It Va dumpdev
2029 .Pq Vt str
2030 Indicates the device (usually a swap partition) to which a crash dump
2031 should be written in the event of a system crash.
2032 The value of this variable is passed as the argument to
2033 .Xr dumpon 8
2034 and
2035 .Xr savecore 8 .
2036 To disable crash dumps, set this variable to
2037 .Dq Li NO .
2038 .It Va dumpdir
2039 .Pq Vt str
2040 When the system reboots after a crash and a crash dump is found on the
2041 device specified by the
2042 .Va dumpdev
2043 variable,
2044 .Xr savecore 8
2045 will save that crash dump and a copy of the kernel to the directory
2046 specified by the
2047 .Va dumpdir
2048 variable.
2049 The default value is
2050 .Pa /var/crash .
2051 Set to
2052 .Dq Li NO
2053 to not run
2054 .Xr savecore 8
2055 at boot time when
2056 .Va dumpdir
2057 is set.
2058 .It Va savecore_flags
2059 .Pq Vt str
2060 If crash dumps are enabled, these are the flags to pass to the
2061 .Xr savecore 8
2062 utility.
2063 .It Va crashinfo_enable
2064 .Pq Vt bool
2065 Set to
2066 .Dq Li YES
2067 to turn on automatic crash dump summary generation using the utility
2068 specified by the
2069 .Va crashinfo_program
2070 variable.
2071 .It Va crashinfo_program
2072 .Pq Vt str
2073 Program to run to generate a crash dump summary if the variable
2074 .Va crashinfo_enable
2075 is set to
2076 .Dq Li YES .
2077 The default value is
2078 .Pa /usr/sbin/crashinfo .
2079 .It Va enable_quotas
2080 .Pq Vt bool
2081 Set to
2082 .Dq Li YES
2083 to turn on user disk quotas on system startup via the
2084 .Xr quotaon 8
2085 command.
2086 .It Va check_quotas
2087 .Pq Vt bool
2088 Set to
2089 .Dq Li YES
2090 to enable user disk quota checking via the
2091 .Xr quotacheck 8
2092 command.
2093 .It Va accounting_enable
2094 .Pq Vt bool
2095 Set to
2096 .Dq Li YES
2097 to enable system accounting through the
2098 .Xr accton 8
2099 facility.
2100 .\" ----- cleanvar_enable setting--------------------------------
2101 .It Va cleanvar_enable
2102 .Pq Vt bool
2103 Set to
2104 .Dq Li YES
2105 to have
2106 .Pa /var/run ,
2107 .Pa /var/spool/lock
2108 and
2109 .Pa /var/spool/uucp/.Temp/*
2110 cleaned at startup.
2111 .\" ----- clear_tmp_enable setting-------------------------------
2112 .It Va clear_tmp_enable
2113 .Pq Vt bool
2114 Set to
2115 .Dq Li YES
2116 to have
2117 .Pa /tmp
2118 cleaned at startup.
2119 .\" ----- ldconfig_paths setting --------------------------------
2120 .It Va ldconfig_paths
2121 .Pq Vt str
2122 Set to the list of shared library paths to use with
2123 .Xr ldconfig 8 .
2124 NOTE:
2125 .Pa /usr/lib
2126 will always be added first, so it need not appear in this list.
2127 .It Va ldconfig_insecure
2128 .Pq Vt bool
2129 The
2130 .Xr ldconfig 8
2131 utility normally refuses to use directories
2132 which are writable by anyone except root.
2133 Set this variable to
2134 .Dq Li YES
2135 to disable that security check during system startup.
2136 .It Va ldconfig_local_dirs
2137 .Pq Vt str
2138 Set to the list of local
2139 .Xr ldconfig 8
2140 directories.
2141 The names of all files in the directories listed will be
2142 passed as arguments to
2143 .Xr ldconfig 8 .
2144 .It Va kern_securelevel
2145 .Pq Vt int
2146 The kernel security level to set at startup.
2147 The allowed range of
2148 .Ar value
2149 ranges from \-1 (the compile time default) to 3 (the most secure).
2150 See
2151 .Xr init 8
2152 for the list of possible security levels and their effect on system operation.
2153 .It Va start_vinum
2154 .Pq Vt bool
2155 Set to
2156 .Dq Li YES
2157 to start
2158 .Xr vinum 8
2159 at system boot time.
2160 .It Va sshd_enable
2161 .Pq Vt bool
2162 Set to
2163 .Dq Li YES
2164 to start
2165 .Xr sshd 8
2166 at system boot time.
2167 .It Va sshd_program
2168 .Pq Vt str
2169 Path to the SSH server program
2170 (default
2171 .Pa /usr/sbin/sshd ) .
2172 .It Va sshd_flags
2173 .Pq Vt str
2174 If
2175 .Va sshd_enable
2176 is set to
2177 .Dq Li YES ,
2178 these are the flags to pass to the
2179 .Xr sshd 8
2180 daemon.
2181 .It Va ftpd_enable
2182 .Pq Vt bool
2183 Set to
2184 .Dq Li YES
2185 to start
2186 .Xr ftpd 8
2187 at system boot time.
2188 .It Va ftpd_flags
2189 .Pq Vt str
2190 If
2191 .Va ftpd_enable
2192 is set to
2193 .Dq Li YES ,
2194 these are the flags to pass to the
2195 .Xr ftpd 8
2196 daemon.
2197 .It Va watchdogd_enable
2198 .Pq Vt bool
2199 If set to
2200 .Dq Li YES ,
2201 start the
2202 .Xr watchdogd 8
2203 daemon at boot time.
2204 This requires that the kernel have been compiled with
2205 .Cd "options WATCHDOG" .
2206 .It Va jail_enable
2207 .Pq Vt bool
2208 If set to
2209 .Dq Li NO ,
2210 any configured jails will not be started.
2211 .It Va jail_list
2212 .Pq Vt str
2213 A space separated list of names for jails.
2214 This is purely a configuration aid to help identify and
2215 configure multiple jails.
2216 The names specified in this list will be used to
2217 identify settings common to an instance of a jail.
2218 Assuming that the jail in question was named
2219 .Li vjail ,
2220 you would have the following dependent variables:
2221 .Bd -literal
2222 jail_vjail_hostname="jail.example.com"
2223 jail_vjail_ip="192.168.1.100"
2224 jail_vjail_rootdir="/var/jails/vjail/root"
2225 .Ed
2226 .It Va jail_flags
2227 .Pq Vt str
2228 Unset by default.
2229 When set, use as default value for
2230 .Va jail_ Ns Ao Ar jname Ac Ns Va _flags
2231 for every jail in
2232 .Va jail_list .
2233 .It Va jail_interface
2234 .Pq Vt str
2235 Unset by default.
2236 When set, use as default value for
2237 .Va jail_ Ns Ao Ar jname Ac Ns Va _interface
2238 for every jail in
2239 .Va jail_list .
2240 .It Va jail_fstab
2241 .Pq Vt str
2242 Unset by default.
2243 When set, use as default value for
2244 .Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
2245 for every jail in
2246 .Va jail_list .
2247 .It Va jail_mount_enable
2248 .Pq Vt bool
2249 Set to
2250 .Dq Li NO
2251 by default.
2252 When set to
2253 .Dq Li YES ,
2254 sets
2255 .Va jail_ Ns Ao Ar jname Ac Ns Va _mount_enable
2256 to
2257 .Dq Li YES
2258 by default for every jail in
2259 .Va jail_list .
2260 .It Va jail_procfs_enable
2261 .Pq Vt bool
2262 Set to
2263 .Dq Li NO
2264 by default.
2265 When set to
2266 .Dq Li YES ,
2267 sets
2268 .Va jail_ Ns Ao Ar jname Ac Ns Va _procfs_enable
2269 to
2270 .Dq Li YES
2271 by default for every jail in
2272 .Va jail_list .
2273 .It Va jail_devfs_enable
2274 .Pq Vt bool
2275 Set to
2276 .Dq Li NO
2277 by default.
2278 When set to
2279 .Dq Li YES ,
2280 sets
2281 .Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_enable
2282 to
2283 .Dq Li YES
2284 by default for every jail in
2285 .Va jail_list .
2286 .It Va jail_exec_start
2287 .Pq Vt str
2288 Unset by default.
2289 When set, use as default value for
2290 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_start
2291 for every jail in
2292 .Va jail_list .
2293 .It Va jail_exec_stop
2294 Unset by default.
2295 When set, use as default value for
2296 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_stop
2297 for every jail in
2298 .Va jail_list .
2299 .It Va jail_ Ns Ao Ar jname Ac Ns Va _rootdir
2300 .Pq Vt str
2301 Unset by default.
2302 Set to the root directory used by jail
2303 .Va jname .
2304 .It Va jail_ Ns Ao Ar jname Ac Ns Va _hostname
2305 .Pq Vt str
2306 Unset by default.
2307 Set to the fully qualified domain name (FQDN) assigned to jail
2308 .Va jname .
2309 .It Va jail_ Ns Ao Ar jname Ac Ns Va _ip
2310 .Pq Vt str
2311 Unset by default.
2312 Set to the IP address assigned to jail
2313 .Va jname .
2314 .It Va jail_ Ns Ao Ar jname Ac Ns Va _flags
2315 .Pq Vt str
2316 Set to
2317 .Dq Li -l -U root
2318 by default.
2319 These are flags to pass to
2320 .Xr jail 8 .
2321 .It Va jail_ Ns Ao Ar jname Ac Ns Va _interface
2322 .Pq Vt str
2323 Unset by default.
2324 When set, sets the interface to use when setting IP address alias.
2325 Note that the alias is created at jail startup and removed at jail shutdown.
2326 .It Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
2327 .Pq Vt str
2328 Set to
2329 .Pa /etc/fstab. Ns Aq Ar jname
2330 by default.
2331 This is the file system information file to use for jail
2332 .Va jname .
2333 .It Va jail_ Ns Ao Ar jname Ac Ns Va _mount_enable
2334 .Pq Vt bool
2335 Set to
2336 .Dq Li NO
2337 by default.
2338 When set to
2339 .Dq Li YES ,
2340 mount all file systems from
2341 .Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
2342 at jail startup.
2343 .It Va jail_ Ns Ao Ar jname Ac Ns Va _procfs_enable
2344 .Pq Vt bool
2345 Set to
2346 .Dq Li NO
2347 by default.
2348 When set to
2349 .Dq Li YES ,
2350 mount the process file system inside jail
2351 .Ar jname
2352 at jail startup.
2353 .It Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_enable
2354 .Pq Vt bool
2355 Set to
2356 .Dq Li NO
2357 by default.
2358 When set to
2359 .Dq Li YES ,
2360 mount the device file system inside jail
2361 .Ar jname
2362 at jail startup.
2363 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_start
2364 .Pq Vt str
2365 Set to
2366 .Dq Li /bin/sh /etc/rc
2367 by default.
2368 This is the command executed at jail startup.
2369 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_stop
2370 .Pq Vt str
2371 Set to
2372 .Dq Li /bin/sh /etc/rc.shutdown
2373 by default.
2374 This is the command executed at jail shutdown.
2375 .It Va jail_set_hostname_allow
2376 .Pq Vt bool
2377 If set to
2378 .Dq Li NO ,
2379 do not allow the root user in a jail to set its hostname.
2380 .It Va jail_socket_unixiproute_only
2381 .Pq Vt bool
2382 If set to
2383 .Dq Li YES ,
2384 do not allow any sockets,
2385 besides UNIX/IP/route sockets,
2386 to be used within a jail.
2387 .It Va jail_sysvipc_allow
2388 .Pq Vt bool
2389 If set to
2390 .Dq Li YES ,
2391 allow applications within a jail to use System V IPC.
2392 .It Va lvm_enable
2393 .Pq Vt bool
2394 If set to
2395 .Dq Li YES
2396 LVM volumes will be discovered and configured on boot.
2397 .It Va newsyslog_enable
2398 .Pq Vt bool
2399 If set to
2400 .Dq Li YES ,
2401 run
2402 .Xr newsyslog 8
2403 before syslogd starts.
2404 .It Va newsyslog_flags
2405 .Pq Vt str
2406 If
2407 .Va newsyslog_enable
2408 is set to
2409 .Dq Li YES ,
2410 these are the flags passed to
2411 .Xr newsyslog 8 .
2412 .It Va resident_enable
2413 .Pq Vt bool
2414 If set to
2415 .Dq Li YES ,
2416 make the dynamic binaries listed in
2417 .Pa /etc/resident.conf
2418 resident.
2419 .It Va varsym_enable
2420 .Pq Vt bool
2421 If set to
2422 .Dq Li YES ,
2423 process
2424 .Pa /etc/varsym.conf
2425 to set system-wide variables for variant symlinks.
2426 .It Va rand_irqs
2427 .Pq Vt str
2428 Set either to
2429 .Dq Li NO
2430 or a whitespace separated list of IRQ numbers which will be used as a source of
2431 randomness.
2432 .\" -----------------------------------------------------
2433 .It Va entropy_dir
2434 .Pq Vt str
2435 Set to
2436 .Dq Li NO
2437 to disable caching entropy via
2438 .Xr cron 8 .
2439 Otherwise set to the directory used to store entropy files in.
2440 .It Va entropy_file
2441 .Pq Vt str
2442 Set to
2443 .Dq Li NO
2444 to disable caching entropy through reboots.
2445 Otherwise set to the filename used to store cached entropy through reboots.
2446 This file should be located on the root file system to seed the
2447 .Xr random 4
2448 device as early as possible in the boot process.
2449 .It Va entropy_save_sz
2450 .Pq Vt int
2451 Determines the size of the entropy cache files used for entropy cached
2452 through reboots and also entropy cached via
2453 .Xr cron 8 .
2454 The entropy is fed to the system in blocks of 512 bytes, so this number
2455 should be large enough to fill as many of the entropy pools in the kernel
2456 CSPRNG as possible.
2457 By default, it is set to 16384, which should be able to seed all 32 entropy
2458 pools in the Fortuna CSPRNG.
2459 .It Va ipsec_enable
2460 .Pq Vt bool
2461 Set to
2462 .Dq Li YES
2463 to run
2464 .Xr setkey 8
2465 on
2466 .Va ipsec_file
2467 at boot time.
2468 .It Va ipsec_file
2469 .Pq Vt str
2470 Configuration file for
2471 .Xr setkey 8 .
2472 .It Va dmesg_enable
2473 .Pq Vt bool
2474 Set to
2475 .Dq Li YES
2476 to save
2477 .Xr dmesg 8
2478 to
2479 .Pa /var/run/dmesg.boot
2480 on boot.
2481 .It Va rcshutdown_timeout
2482 .Pq Vt int
2483 If set, start a watchdog timer in the background which will terminate
2484 .Pa rc.shutdown
2485 if
2486 .Xr shutdown 8
2487 has not completed within the specified time (in seconds).
2488 Notice that in addition to this soft timeout,
2489 .Xr init 8
2490 also applies a hard timeout for the execution of
2491 .Pa rc.shutdown .
2492 This is configured via
2493 .Xr sysctl 8
2494 variable
2495 .Va kern.init_shutdown_timeout
2496 and defaults to 120 seconds. Setting the value of
2497 .Va rcshutdown_timeout
2498 to more than 120 seconds will have no effect until the
2499 .Xr sysctl 8
2500 variable
2501 .Va kern.init_shutdown_timeout
2502 is also increased.
2503 .It Va udevd_enable
2504 .Pq Vt bool
2505 If set to
2506 .Dq Li YES ,
2507 the udevd daemon will be started on boot.
2508 .It Va vfs_quota_enable
2509 .Pq Vt bool
2510 If set to
2511 .Dq Li YES ,
2512 vfs quota rc.d scripts will be run on boot.
2513 .It Va vfs_quota_sync
2514 .Pq Vt str
2515 List of mount points whose counters are to be synchronized with on-disk
2516 usage during system startup. See also
2517 .Xr vquota 8 .
2518 .It Va vknetd_enable
2519 .Pq Vt bool
2520 If set to
2521 .Dq Li YES ,
2522 .Xr vknetd 8
2523 will be started on boot.
2524 .It Va vknetd_flags
2525 .Pq Vt bool
2526 Additional flags passed to
2527 .Xr vknetd 8 .
2528 Usually address/cidrbits is specified here.
2529 When no flags are passed, default option
2530 .Fl U
2531 will be used.
2532 .It Va vkernel_enable
2533 .Pq Vt bool
2534 If set to
2535 .Dq Li NO ,
2536 any configured vkernels will not be started.
2537 .It Va vkernel_kill_timeout
2538 .Pq Vt int
2539 This defines the default number of seconds that we will wait for the
2540 vkernel to shut down on it's own. If after this time it's still alive,
2541 it will be killed with SIGKILL.
2542 .It Va vkernel_bin
2543 .Pq Vt str
2544 Defines the default path to the vkernel binary.
2545 .It Va vkernel_list
2546 .Pq Vt str
2547 A space separated list of names for vkernels.
2548 This is purely a configuration aid to help identify and
2549 configure multiple vkernels.
2550 The names specified in this list will be used to
2551 identify settings common to a vkernel instance.
2552 Assuming that the vkernel in question was named
2553 .Li example ,
2554 you would have the following dependent variables
2555 (filled with reference values in this text):
2556 .Bd -literal
2557 vkernel_example_bin="/usr/obj/usr/src/sys/VKERNEL64/kernel.debug"
2558 vkernel_example_memsize="64m"
2559 vkernel_example_rootimg_list="/var/vkernel/rootimg.01"
2560 vkernel_example_memimg="/var/vkernel/memimg.000001"
2561 vkernel_example_user="myuser"
2562 vkernel_example_iface_list="auto:bridge0"
2563 vkernel_example_logfile="/dev/null"
2564 vkernel_example_flags="-U"
2565 vkernel_example_kill_timeout="45"
2566 .Ed
2567 .Pp
2568 The last six are optional.
2569 They default to an empty string if not set, except for logfile which defaults to
2570 .Pa /dev/null
2571 if it is not set.
2572 .Pp
2573 Note that in case
2574 .Va vkernel_memimg
2575 is not set, the
2576 .Pa rc.d
2577 script will create
2578 .Pa /var/vkernel ,
2579 which is the vkernel's default directory for memory images,
2580 with permissions of 1777, i.e. world writable with the sticky bit set
2581 (see
2582 .Xr sticky 8 ) .
2583 .It Va autofs_enable
2584 .Pq Vt bool
2585 If set to
2586 .Dq Li YES ,
2587 start the
2588 .Xr automount 8
2589 utility and the
2590 .Xr automountd 8
2591 and
2592 .Xr autounmountd 8
2593 daemons at boot time.
2594 .It Va automount_flags
2595 .Pq Vt str
2596 If
2597 .Va autofs_enable
2598 is set to
2599 .Dq Li YES ,
2600 these are the flags to pass to the
2601 .Xr automount 8
2602 program.
2603 By default no flags are passed.
2604 .It Va automountd_flags
2605 .Pq Vt str
2606 If
2607 .Va autofs_enable
2608 is set to
2609 .Dq Li YES ,
2610 these are the flags to pass to the
2611 .Xr automountd 8
2612 daemon.
2613 By default no flags are passed.
2614 .It Va autounmountd_flags
2615 .Pq Vt str
2616 If
2617 .Va autofs_enable
2618 is set to
2619 .Dq Li YES ,
2620 these are the flags to pass to the
2621 .Xr autounmountd 8
2622 daemon.
2623 By default no flags are passed.
2624 .El
2625 .Sh FILES
2626 .Bl -tag -width ".Pa /etc/start_if. Ns Aq Ar interface" -compact
2627 .It Pa /etc/defaults/rc.conf
2628 .It Pa /etc/rc.conf
2629 .It Pa /etc/rc.conf.local
2630 .It Pa /etc/start_if. Ns Aq Ar interface
2631 .El
2632 .Sh SEE ALSO
2633 .Xr catman 1 ,
2634 .Xr gdb 1 ,
2635 .Xr info 1 ,
2636 .Xr kbdcontrol 1 ,
2637 .Xr varsym 1 ,
2638 .Xr vidcontrol 1 ,
2639 .Xr ip 4 ,
2640 .Xr ipfw 4 ,
2641 .Xr kld 4 ,
2642 .Xr pf 4 ,
2643 .Xr tcp 4 ,
2644 .Xr udp 4 ,
2645 .Xr vlan 4 ,
2646 .Xr autofs 5 ,
2647 .Xr auto_master 5 ,
2648 .Xr exports 5 ,
2649 .Xr motd 5 ,
2650 .Xr resident.conf 5 ,
2651 .Xr varsym.conf 5 ,
2652 .Xr accton 8 ,
2653 .Xr automount 8 ,
2654 .Xr automountd 8 ,
2655 .Xr autounmountd 8 ,
2656 .Xr btconfig 8 ,
2657 .Xr bthcid 8 ,
2658 .Xr cron 8 ,
2659 .Xr devd 8 ,
2660 .Xr dhclient 8 ,
2661 .Xr dntpd 8 ,
2662 .Xr ftpd 8 ,
2663 .Xr ifconfig 8 ,
2664 .Xr inetd 8 ,
2665 .Xr jail 8 ,
2666 .Xr lpd 8 ,
2667 .Xr makewhatis 8 ,
2668 .Xr mixer 8 ,
2669 .Xr mountd 8 ,
2670 .Xr moused 8 ,
2671 .Xr mrouted 8 ,
2672 .Xr named 8 ,
2673 .Xr nfsd 8 ,
2674 .Xr pcnfsd 8 ,
2675 .Xr pfctl 8 ,
2676 .Xr pflogd 8 ,
2677 .Xr quotacheck 8 ,
2678 .Xr quotaon 8 ,
2679 .Xr rc 8 ,
2680 .Xr rc.sendmail 8 ,
2681 .Xr resident 8 ,
2682 .Xr rndcontrol 8 ,
2683 .Xr route 8 ,
2684 .Xr routed 8 ,
2685 .Xr rpcbind 8 ,
2686 .Xr rpc.lockd 8 ,
2687 .Xr rpc.statd 8 ,
2688 .Xr rtadvd 8 ,
2689 .Xr rtsold 8 ,
2690 .Xr rwhod 8 ,
2691 .Xr savecore 8 ,
2692 .Xr sdpd 8 ,
2693 .Xr sensorsd 8 ,
2694 .Xr sshd 8 ,
2695 .Xr swapon 8 ,
2696 .Xr sysctl 8 ,
2697 .Xr syslogd 8 ,
2698 .Xr sysvipcd 8 ,
2699 .Xr timed 8 ,
2700 .Xr vinum 8 ,
2701 .Xr yp 8 ,
2702 .Xr ypbind 8 ,
2703 .Xr ypserv 8 ,
2704 .Xr ypset 8
2705 .Sh HISTORY
2706 The
2707 .Nm
2708 file appeared in
2709 .Fx 2.2.2 .
2710 .Sh AUTHORS
2711 .An Jordan K. Hubbard .