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