]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - share/man/man5/rc.conf.5
MFC r362623:
[FreeBSD/stable/8.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$
26 .\"
27 .Dd July 12, 2013
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 system installation utility,
42 .Xr sysinstall 8 .
43 .Pp
44 The purpose of
45 .Nm
46 is not to run commands or perform system startup actions
47 directly.
48 Instead, it is included by the
49 various generic startup scripts in
50 .Pa /etc
51 which conditionalize their
52 internal actions according to the settings found there.
53 .Pp
54 The
55 .Pa /etc/rc.conf
56 file is included from the file
57 .Pa /etc/defaults/rc.conf ,
58 which specifies the default settings for all the available options.
59 Options need only be specified in
60 .Pa /etc/rc.conf
61 when the system administrator wishes to override these defaults.
62 The file
63 .Pa /etc/rc.conf.local
64 is used to override settings in
65 .Pa /etc/rc.conf
66 for historical reasons.
67 In addition to
68 .Pa /etc/rc.conf.local
69 you can also place smaller configuration files for each
70 .Xr rc 8
71 script in the
72 .Pa /etc/rc.conf.d
73 directory, which will be included by the
74 .Va load_rc_config
75 function.
76 For jail configurations you could use the file
77 .Pa /etc/rc.conf.d/jail
78 to store jail specific configuration options.
79 Also see the
80 .Va rc_conf_files
81 variable below.
82 .Pp
83 Options are set with
84 .Dq Ar name Ns Li = Ns Ar value
85 assignments that use
86 .Xr sh 1
87 syntax.
88 The following list provides a name and short description for each
89 variable that can be set in the
90 .Nm
91 file:
92 .Bl -tag -width indent-two
93 .It Va rc_debug
94 .Pq Vt bool
95 If set to
96 .Dq Li YES ,
97 enable output of debug messages from rc scripts.
98 This variable can be helpful in diagnosing mistakes when
99 editing or integrating new scripts.
100 Beware that this produces copious output to the terminal and
101 .Xr syslog 3 .
102 .It Va rc_info
103 .Pq Vt bool
104 If set to
105 .Dq Li NO ,
106 disable informational messages from the rc scripts.
107 Informational messages are displayed when
108 a condition that is not serious enough to warrant a warning or
109 an error occurs.
110 .It Va rc_startmsgs
111 .Pq Vt bool
112 If set to
113 .Dq Li YES ,
114 show
115 .Dq Starting foo:
116 when faststart is used (e.g., at boot time).
117 .It Va early_late_divider
118 .Pq Vt str
119 The name of the script that should be used as the
120 delimiter between the
121 .Dq early
122 and
123 .Dq late
124 stages of the boot process.
125 The early stage should contain all the services needed to
126 get the disks (local or remote) mounted so that the late
127 stage can include scripts contained in the directories
128 listed in the
129 .Va local_startup
130 variable (see below).
131 Thus, the two likely candidates for this value are
132 .Pa mountcritlocal
133 for the typical system, and
134 .Pa mountcritremote
135 if the system needs remote file
136 systems mounted to get access to the
137 .Va local_startup
138 directories; for example when
139 .Pa /usr/local
140 is NFS mounted.
141 For
142 .Pa rc.conf
143 within a
144 .Xr jail 8
145 .Pa NETWORKING
146 is likely to be an appropriate value.
147 Extreme care should be taken when changing this value,
148 and before changing it one should ensure that there are
149 adequate provisions to recover from a failed boot
150 (such as physical contact with the machine,
151 or reliable remote console access).
152 .It Va always_force_depends
153 .Pq Vt bool
154 Various
155 .Pa rc.d
156 scripts use the force_depend function to check whether required
157 services are already running, and to start them if necessary.
158 By default during boot time this check is bypassed if the
159 required service is enabled in
160 .Pa /etc/rc.conf[.local] .
161 Setting this option will bypass that check at boot time and
162 always test whether or not the service is actually running.
163 Enabling this option is likely to increase your boot time if
164 services are enabled that utilize the force_depend check.
165 .It Va swapfile
166 .Pq Vt str
167 If set to
168 .Dq Li NO ,
169 no swapfile is installed, otherwise the value is used as the full
170 pathname to a file to use for additional swap space.
171 .It Va apm_enable
172 .Pq Vt bool
173 If set to
174 .Dq Li YES ,
175 enable support for Automatic Power Management with
176 the
177 .Xr apm 8
178 command.
179 .It Va apmd_enable
180 .Pq Vt bool
181 Run
182 .Xr apmd 8
183 to handle APM event from userland.
184 This also enables support for APM.
185 .It Va apmd_flags
186 .Pq Vt str
187 If
188 .Va apmd_enable
189 is set to
190 .Dq Li YES ,
191 these are the flags to pass to the
192 .Xr apmd 8
193 daemon.
194 .It Va devd_enable
195 .Pq Vt bool
196 Run
197 .Xr devd 8
198 to handle device added, removed or unknown events from the kernel.
199 .It Va ddb_enable
200 .Pq Vt bool
201 Run
202 .Xr ddb 8
203 to install 
204 .Xr ddb 4
205 scripts at boot time.
206 .It Va ddb_config
207 .Pq Vt str
208 Configuration file for
209 .Xr ddb 8 .
210 Default
211 .Pa /etc/ddb.conf .
212 .It Va kld_list
213 .Pq Vt str
214 A list of kernel modules to load right after the local
215 disks are mounted.
216 Loading modules at this point in the boot process is
217 much faster than doing it via
218 .Pa /boot/loader.conf
219 for those modules not necessary for mounting local disk.
220 .It Va kldxref_enable
221 .Pq Vt bool
222 Set to
223 .Dq Li NO
224 by default.
225 Set to
226 .Dq Li YES
227 to automatically rebuild
228 .Pa linker.hints
229 files with
230 .Xr kldxref 8
231 at boot time.
232 .It Va kldxref_clobber
233 .Pq Vt bool
234 Set to
235 .Dq Li NO
236 by default.
237 If
238 .Va kldxref_enable
239 is true,
240 setting to
241 .Dq Li YES
242 will overwrite existing
243 .Pa linker.hints
244 files at boot time.
245 Otherwise,
246 only missing
247 .Pa linker.hints
248 files are generated.
249 .It Va kldxref_module_path
250 .Pq Vt str
251 Empty by default.
252 A semi-colon
253 .Pq Ql \&;
254 delimited list of paths containing
255 .Xr kld 4
256 modules.
257 If empty,
258 the contents of the
259 .Va kern.module_path
260 .Xr sysctl 8
261 are used.
262 .It Va powerd_enable
263 .Pq Vt bool
264 If set to
265 .Dq Li YES ,
266 enable the system power control facility with the
267 .Xr powerd 8
268 daemon.
269 .It Va powerd_flags
270 .Pq Vt str
271 If
272 .Va powerd_enable
273 is set to
274 .Dq Li YES ,
275 these are the flags to pass to the
276 .Xr powerd 8
277 daemon.
278 .It Va tmpmfs
279 Controls the creation of a
280 .Pa /tmp
281 memory file system.
282 Always happens if set to
283 .Dq Li YES
284 and never happens if set to
285 .Dq Li NO .
286 If set to anything else, a memory file system is created if
287 .Pa /tmp
288 is not writable.
289 .It Va tmpsize
290 Controls the size of a created
291 .Pa /tmp
292 memory file system.
293 .It Va tmpmfs_flags
294 Extra options passed to the
295 .Xr mdmfs 8
296 utility when the memory file system for
297 .Pa /tmp
298 is created.
299 The default is
300 .Dq Li "-S" ,
301 which inhibits the use of softupdates on
302 .Pa /tmp
303 so that file system space is freed without delay
304 after file truncation or deletion.
305 See
306 .Xr mdmfs 8
307 for other options you can use in
308 .Va tmpmfs_flags .
309 .It Va varmfs
310 Controls the creation of a
311 .Pa /var
312 memory file system.
313 Always happens if set to
314 .Dq Li YES
315 and never happens if set to
316 .Dq Li NO .
317 If set to anything else, a memory file system is created if
318 .Pa /var
319 is not writable.
320 .It Va varsize
321 Controls the size of a created
322 .Pa /var
323 memory file system.
324 .It Va varmfs_flags
325 Extra options passed to the
326 .Xr mdmfs 8
327 utility when the memory file system for
328 .Pa /var
329 is created.
330 The default is
331 .Dq Li "-S" ,
332 which inhibits the use of softupdates on
333 .Pa /var
334 so that file system space is freed without delay
335 after file truncation or deletion.
336 See
337 .Xr mdmfs 8
338 for other options you can use in
339 .Va varmfs_flags .
340 .It Va populate_var
341 Controls the automatic population of the
342 .Pa /var
343 file system.
344 Always happens if set to
345 .Dq Li YES
346 and never happens if set to
347 .Dq Li NO .
348 If set to anything else, a memory file system is created if
349 .Pa /var
350 is not writable.
351 Note that this process requires access to certain commands in
352 .Pa /usr
353 before
354 .Pa /usr
355 is mounted on normal systems.
356 .It Va cleanvar_enable
357 .Pq Vt bool
358 Clean the
359 .Pa /var
360 directory.
361 .It Va local_startup
362 .Pq Vt str
363 List of directories to search for startup script files.
364 .It Va script_name_sep
365 .Pq Vt str
366 The field separator to use for breaking down the list of startup script files
367 into individual filenames.
368 The default is a space.
369 It is not necessary to change this unless there are startup scripts with names
370 containing spaces.
371 .It Va hostapd_enable
372 .Pq Vt bool
373 Set to
374 .Dq Li YES
375 to start
376 .Xr hostapd 8
377 at system boot time.
378 .It Va hostname
379 .Pq Vt str
380 The fully qualified domain name (FQDN) of this host on the network.
381 This should almost certainly be set to something meaningful, even if
382 there is no network connection.
383 If
384 .Xr dhclient 8
385 is used to set the hostname via DHCP,
386 this variable should be set to an empty string.
387 If this value remains unset when the system is done booting
388 your console login will display the default hostname of
389 .Dq Amnesiac .
390 .It Va ipv6_enable
391 .Pq Vt bool
392 Enable support for IPv6 networking.
393 Note that this requires that the kernel has been compiled with
394 .Cd "options INET6" .
395 .It Va nisdomainname
396 .Pq Vt str
397 The NIS domain name of this host, or
398 .Dq Li NO
399 if NIS is not used.
400 .It Va dhclient_program
401 .Pq Vt str
402 Path to the DHCP client program
403 .Pa ( /sbin/dhclient ,
404 the
405 .Ox
406 DHCP client,
407 is the default).
408 .It Va dhclient_flags
409 .Pq Vt str
410 Additional flags to pass to the DHCP client program.
411 For the
412 .Ox
413 DHCP client, see the
414 .Xr dhclient 8
415 manpage for a description of the command line options available.
416 .It Va dhclient_flags_ Ns Aq Ar iface
417 Additional flags to pass to the DHCP client program running on
418 .Ar iface
419 only.
420 When specified, this variable overrides
421 .Va dhclient_flags .
422 .It Va background_dhclient
423 .Pq Vt bool
424 Set to
425 .Dq Li YES
426 to start the DHCP client in background.
427 This can cause trouble with applications depending on
428 a working network, but it will provide a faster startup
429 in many cases.
430 .It Va background_dhclient_ Ns Aq Ar iface
431 When specified, this variable overrides the
432 .Va background_dhclient
433 variable for interface
434 .Ar iface
435 only.
436 .It Va synchronous_dhclient
437 .Pq Vt bool
438 Set to
439 .Dq Li YES
440 to start
441 .Xr dhclient 8
442 synchronously at startup.
443 This behavior can be overridden on a per-interface basis by replacing
444 the
445 .Dq Li DHCP
446 keyword in the
447 .Va ifconfig_ Ns Aq Ar interface
448 variable with
449 .Dq Li SYNCDHCP
450 or
451 .Dq Li NOSYNCDHCP .
452 .It Va defaultroute_delay
453 .Pq Vt int
454 When set to a positive value, wait up to this long after configuring
455 DHCP interfaces at startup to give the interfaces time to receive a lease.
456 .It Va firewall_enable
457 .Pq Vt bool
458 Set to
459 .Dq Li YES
460 to load firewall rules at startup.
461 If the kernel was not built with
462 .Cd "options IPFIREWALL" ,
463 the
464 .Pa ipfw.ko
465 kernel module will be loaded.
466 See also
467 .Va ipfilter_enable .
468 .It Va firewall_script
469 .Pq Vt str
470 This variable specifies the full path to the firewall script to run.
471 The default is
472 .Pa /etc/rc.firewall .
473 .It Va firewall_type
474 .Pq Vt str
475 Names the firewall type from the selection in
476 .Pa /etc/rc.firewall ,
477 or the file which contains the local firewall ruleset.
478 Valid selections from
479 .Pa /etc/rc.firewall
480 are:
481 .Pp
482 .Bl -tag -width ".Li simple" -compact
483 .It Li open
484 unrestricted IP access
485 .It Li closed
486 all IP services disabled, except via
487 .Dq Li lo0
488 .It Li client
489 basic protection for a workstation
490 .It Li simple
491 basic protection for a LAN.
492 .El
493 .Pp
494 If a filename is specified, the full path
495 must be given.
496 .It Va firewall_quiet
497 .Pq Vt bool
498 Set to
499 .Dq Li YES
500 to disable the display of firewall rules on the console during boot.
501 .It Va firewall_logging
502 .Pq Vt bool
503 Set to
504 .Dq Li YES
505 to enable firewall event logging.
506 This is equivalent to the
507 .Dv IPFIREWALL_VERBOSE
508 kernel option.
509 .It Va firewall_flags
510 .Pq Vt str
511 Flags passed to
512 .Xr ipfw 8
513 if
514 .Va firewall_type
515 specifies a filename.
516 .It Va firewall_coscripts
517 .Pq Vt str
518 List of executables and/or rc scripts to run after firewall starts/stops.
519 Default is empty.
520 .\" ----- firewall_nat_enable setting --------------------------------
521 .It Va firewall_nat_enable
522 .Pq Vt bool
523 The
524 .Xr ipfw 8
525 equivalent of
526 .Va natd_enable .
527 Setting this to
528 .Dq Li YES
529 enables kernel NAT.
530 .Va firewall_enable
531 must also be set to
532 .Dq Li YES .
533 .It Va firewall_nat_interface
534 .Pq Vt str
535 The
536 .Xr ipfw 8
537 equivalent of
538 .Va natd_interface .
539 This is the name of the public interface or IP address on which
540 kernel NAT should run.
541 .It Va firewall_nat_flags
542 .Pq Vt str
543 Additional configuration parameters for kernel NAT should be placed here.
544 .It Va dummynet_enable
545 .Pq Vt bool
546 Setting this to
547 .Dq Li YES
548 will automatically load the
549 .Xr dummynet 4
550 module if
551 .Va firewall_enable
552 is also set to
553 .Dq Li YES .
554 .\" -------------------------------------------------------------------
555 .It Va natd_program
556 .Pq Vt str
557 Path to
558 .Xr natd 8 .
559 .It Va natd_enable
560 .Pq Vt bool
561 Set to
562 .Dq Li YES
563 to enable
564 .Xr natd 8 .
565 .Va firewall_enable
566 must also be set to
567 .Dq Li YES ,
568 and
569 .Xr divert 4
570 sockets must be enabled in the kernel.
571 If the kernel was not built with
572 .Cd "options IPDIVERT" ,
573 the
574 .Pa ipdivert.ko
575 kernel module will be loaded.
576 .It Va natd_interface
577 .Pq Vt str
578 This is the name of the public interface on which
579 .Xr natd 8
580 should run.
581 The interface may be given as an interface name or as an IP address.
582 .It Va natd_flags
583 .Pq Vt str
584 Additional
585 .Xr natd 8
586 flags should be placed here.
587 The
588 .Fl n
589 or
590 .Fl a
591 flag is automatically added with the above
592 .Va natd_interface
593 as an argument.
594 .\" ----- ipfilter_enable setting --------------------------------
595 .It Va ipfilter_enable
596 .Pq Vt bool
597 Set to
598 .Dq Li NO
599 by default.
600 Setting this to
601 .Dq Li YES
602 enables
603 .Xr ipf 8
604 packet filtering.
605 .Pp
606 Typical usage will require putting
607 .Bd -literal
608 ipfilter_enable="YES"
609 ipnat_enable="YES"
610 ipmon_enable="YES"
611 ipfs_enable="YES"
612 .Ed
613 .Pp
614 into
615 .Pa /etc/rc.conf
616 and editing
617 .Pa /etc/ipf.rules
618 and
619 .Pa /etc/ipnat.rules
620 appropriately.
621 .Pp
622 Note that
623 .Va ipfilter_enable
624 and
625 .Va ipnat_enable
626 can be enabled independently.
627 .Va ipmon_enable
628 and
629 .Va ipfs_enable
630 both require at least one of
631 .Va ipfilter_enable
632 and
633 .Va ipnat_enable
634 to be enabled.
635 .Pp
636 Having
637 .Bd -literal
638 options IPFILTER
639 options IPFILTER_LOG
640 options IPFILTER_DEFAULT_BLOCK
641 .Ed
642 .Pp
643 in the kernel configuration file is a good idea, too.
644 .\" ----- ipfilter_program setting ------------------------------
645 .It Va ipfilter_program
646 .Pq Vt str
647 Path to
648 .Xr ipf 8
649 (default
650 .Pa /sbin/ipf ) .
651 .\" ----- ipfilter_rules setting --------------------------------
652 .It Va ipfilter_rules
653 .Pq Vt str
654 Set to
655 .Pa /etc/ipf.rules
656 by default.
657 This variable contains the name of the filter rule definition file.
658 The file is expected to be readable for the
659 .Xr ipf 8
660 command to execute.
661 .\" ----- ipv6_ipfilter_rules setting ---------------------------
662 .It Va ipv6_ipfilter_rules
663 .Pq Vt str
664 Set to
665 .Pa /etc/ipf6.rules
666 by default.
667 This variable contains the IPv6 filter rule definition file.
668 The file is expected to be readable for the
669 .Xr ipf 8
670 command to execute.
671 .\" ----- ipfilter_flags setting --------------------------------
672 .It Va ipfilter_flags
673 .Pq Vt str
674 Empty by default.
675 This variable contains flags passed to the
676 .Xr ipf 8
677 program.
678 .\" ----- ipnat_enable setting ----------------------------------
679 .It Va ipnat_enable
680 .Pq Vt bool
681 Set to
682 .Dq Li NO
683 by default.
684 Set it to
685 .Dq Li YES
686 to enable
687 .Xr ipnat 8
688 network address translation.
689 See
690 .Va ipfilter_enable
691 for a detailed discussion.
692 .\" ----- ipnat_program setting ---------------------------------
693 .It Va ipnat_program
694 .Pq Vt str
695 Path to
696 .Xr ipnat 8
697 (default
698 .Pa /sbin/ipnat ) .
699 .\" ----- ipnat_rules setting -----------------------------------
700 .It Va ipnat_rules
701 .Pq Vt str
702 Set to
703 .Pa /etc/ipnat.rules
704 by default.
705 This variable contains the name of the file
706 holding the network address translation definition.
707 This file is expected to be readable for the
708 .Xr ipnat 8
709 command to execute.
710 .\" ----- ipnat_flags setting -----------------------------------
711 .It Va ipnat_flags
712 .Pq Vt str
713 Empty by default.
714 This variable contains flags passed to the
715 .Xr ipnat 8
716 program.
717 .\" ----- ipmon_enable setting ----------------------------------
718 .It Va ipmon_enable
719 .Pq Vt bool
720 Set to
721 .Dq Li NO
722 by default.
723 Set it to
724 .Dq Li YES
725 to enable
726 .Xr ipmon 8
727 monitoring (logging
728 .Xr ipf 8
729 and
730 .Xr ipnat 8
731 events).
732 Setting this variable needs setting
733 .Va ipfilter_enable
734 or
735 .Va ipnat_enable
736 too.
737 See
738 .Va ipfilter_enable
739 for a detailed discussion.
740 .\" ----- ipmon_program setting ---------------------------------
741 .It Va ipmon_program
742 .Pq Vt str
743 Path to
744 .Xr ipmon 8
745 (default
746 .Pa /sbin/ipmon ) .
747 .\" ----- ipmon_flags setting -----------------------------------
748 .It Va ipmon_flags
749 .Pq Vt str
750 Set to
751 .Dq Li -Ds
752 by default.
753 This variable contains flags passed to the
754 .Xr ipmon 8
755 program.
756 Another typical example would be
757 .Dq Fl D Pa /var/log/ipflog
758 to have
759 .Xr ipmon 8
760 log directly to a file bypassing
761 .Xr syslogd 8 .
762 Make sure to adjust
763 .Pa /etc/newsyslog.conf
764 in such case like this:
765 .Bd -literal
766 /var/log/ipflog  640  10  100  *  Z  /var/run/ipmon.pid
767 .Ed
768 .\" ----- ipfs_enable setting -----------------------------------
769 .It Va ipfs_enable
770 .Pq Vt bool
771 Set to
772 .Dq Li NO
773 by default.
774 Set it to
775 .Dq Li YES
776 to enable
777 .Xr ipfs 8
778 saving the filter and NAT state tables during shutdown
779 and reloading them during startup again.
780 Setting this variable needs setting
781 .Va ipfilter_enable
782 or
783 .Va ipnat_enable
784 to
785 .Dq Li YES
786 too.
787 See
788 .Va ipfilter_enable
789 for a detailed discussion.
790 Note that if
791 .Va kern_securelevel
792 is set to 3,
793 .Va ipfs_enable
794 cannot be used
795 because the raised securelevel will prevent
796 .Xr ipfs 8
797 from saving the state tables at shutdown time.
798 .\" ----- ipfs_program setting ----------------------------------
799 .It Va ipfs_program
800 .Pq Vt str
801 Path to
802 .Xr ipfs 8
803 (default
804 .Pa /sbin/ipfs ) .
805 .\" ----- ipfs_flags setting ------------------------------------
806 .It Va ipfs_flags
807 .Pq Vt str
808 Empty by default.
809 This variable contains flags passed to the
810 .Xr ipfs 8
811 program.
812 .\" ----- end of added ipf hook ---------------------------------
813 .It Va pf_enable
814 .Pq Vt bool
815 Set to
816 .Dq Li NO
817 by default.
818 Setting this to
819 .Dq Li YES
820 enables
821 .Xr pf 4
822 packet filtering.
823 .Pp
824 Typical usage will require putting
825 .Pp
826 .Dl pf_enable="YES"
827 .Pp
828 into
829 .Pa /etc/rc.conf
830 and editing
831 .Pa /etc/pf.conf
832 appropriately.
833 Adding
834 .Pp
835 .Dl "device pf"
836 .Pp
837 builds support for
838 .Xr pf 4
839 into the kernel, otherwise the
840 kernel module will be loaded.
841 .It Va pf_rules
842 .Pq Vt str
843 Path to
844 .Xr pf 4
845 ruleset configuration file
846 (default
847 .Pa /etc/pf.conf ) .
848 .It Va pf_program
849 .Pq Vt str
850 Path to
851 .Xr pfctl 8
852 (default
853 .Pa /sbin/pfctl ) .
854 .It Va pf_flags
855 .Pq Vt str
856 If
857 .Va pf_enable
858 is set to
859 .Dq Li YES ,
860 these flags are passed to the
861 .Xr pfctl 8
862 program when loading the ruleset.
863 .It Va pflog_enable
864 .Pq Vt bool
865 Set to
866 .Dq Li NO
867 by default.
868 Setting this to
869 .Dq Li YES
870 enables
871 .Xr pflogd 8
872 which logs packets from the
873 .Xr pf 4
874 packet filter.
875 .It Va pflog_logfile
876 .Pq Vt str
877 If
878 .Va pflog_enable
879 is set to
880 .Dq Li YES
881 this controls where
882 .Xr pflogd 8
883 stores the logfile
884 (default
885 .Pa /var/log/pflog ) .
886 Check
887 .Pa /etc/newsyslog.conf
888 to adjust logfile rotation for this.
889 .It Va pflog_program
890 .Pq Vt str
891 Path to
892 .Xr pflogd 8
893 (default
894 .Pa /sbin/pflogd ) .
895 .It Va pflog_flags
896 .Pq Vt str
897 Empty by default.
898 This variable contains additional flags passed to the
899 .Xr pflogd 8
900 program.
901 .It Va ftpproxy_enable
902 .Pq Vt bool
903 Set to
904 .Dq Li NO
905 by default.
906 Setting this to
907 .Dq Li YES
908 enables
909 .Xr ftp-proxy 8
910 which supports the
911 .Xr pf 4
912 packet filter in translating ftp connections.
913 .It Va ftpproxy_flags
914 .Pq Vt str
915 Empty by default.
916 This variable contains additional flags passed to the
917 .Xr ftp-proxy 8
918 program.
919 .It Va pfsync_enable
920 .Pq Vt bool
921 Set to
922 .Dq Li NO
923 by default.
924 Setting this to
925 .Dq Li YES
926 enables exposing
927 .Xr pf 4
928 state changes to other hosts over the network by means of
929 .Xr pfsync 4 .
930 The
931 .Va pfsync_syncdev
932 variable
933 must also be set then.
934 .It Va pfsync_syncdev
935 .Pq Vt str
936 Empty by default.
937 This variable specifies the name of the network interface
938 .Xr pfsync 4
939 should operate through.
940 It must be set accordingly if
941 .Va pfsync_enable
942 is set to
943 .Dq Li YES .
944 .It Va pfsync_syncpeer
945 .Pq Vt str
946 Empty by default.
947 This variable is optional.
948 By default, state change messages are sent out on the synchronisation
949 interface using IP multicast packets.
950 The protocol is IP protocol 240, PFSYNC, and the multicast group used is
951 224.0.0.240.
952 When a peer address is specified using the
953 .Va pfsync_syncpeer
954 option, the peer address is used as a destination for the pfsync
955 traffic, and the traffic can then be protected using
956 .Xr ipsec 4 .
957 See the
958 .Xr pfsync 4
959 manpage for more details about using
960 .Xr ipsec 4
961 with
962 .Xr pfsync 4
963 interfaces.
964 .It Va pfsync_ifconfig
965 .Pq Vt str
966 Empty by default.
967 This variable can contain additional options to be passed to the
968 .Xr ifconfig 8
969 command used to set up
970 .Xr pfsync 4 .
971 .It Va tcp_extensions
972 .Pq Vt bool
973 Set to
974 .Dq Li YES
975 by default.
976 Setting this to
977 .Dq Li NO
978 disables certain TCP options as described by
979 .Rs
980 .%T "RFC 1323"
981 .Re
982 Setting this to
983 .Dq Li NO
984 might help remedy such problems with connections as randomly hanging
985 or other weird behavior.
986 Some network devices are known
987 to be broken with respect to these options.
988 .It Va log_in_vain
989 .Pq Vt int
990 Set to 0 by default.
991 The
992 .Xr sysctl 8
993 variables,
994 .Va net.inet.tcp.log_in_vain
995 and
996 .Va net.inet.udp.log_in_vain ,
997 as described in
998 .Xr tcp 4
999 and
1000 .Xr udp 4 ,
1001 are set to the given value.
1002 .It Va tcp_keepalive
1003 .Pq Vt bool
1004 Set to
1005 .Dq Li YES
1006 by default.
1007 Setting to
1008 .Dq Li NO
1009 will disable probing idle TCP connections to verify that the
1010 peer is still up and reachable.
1011 .It Va tcp_drop_synfin
1012 .Pq Vt bool
1013 Set to
1014 .Dq Li NO
1015 by default.
1016 Setting to
1017 .Dq Li YES
1018 will cause the kernel to ignore TCP frames that have both
1019 the SYN and FIN flags set.
1020 This prevents OS fingerprinting, but may
1021 break some legitimate applications.
1022 .It Va icmp_drop_redirect
1023 .Pq Vt bool
1024 Set to
1025 .Dq Li NO
1026 by default.
1027 Setting to
1028 .Dq Li YES
1029 will cause the kernel to ignore ICMP REDIRECT packets.
1030 Refer to
1031 .Xr icmp 4
1032 for more information.
1033 .It Va icmp_log_redirect
1034 .Pq Vt bool
1035 Set to
1036 .Dq Li NO
1037 by default.
1038 Setting to
1039 .Dq Li YES
1040 will cause the kernel to log ICMP REDIRECT packets.
1041 Note that
1042 the log messages are not rate-limited, so this option should only be used
1043 for troubleshooting networks.
1044 Refer to
1045 .Xr icmp 4
1046 for more information.
1047 .It Va icmp_bmcastecho
1048 .Pq Vt bool
1049 Set to
1050 .Dq Li YES
1051 to respond to broadcast or multicast ICMP ping packets.
1052 Refer to
1053 .Xr icmp 4
1054 for more information.
1055 .It Va ip_portrange_first
1056 .Pq Vt int
1057 If not set to
1058 .Dq Li NO ,
1059 this is the first port in the default portrange.
1060 Refer to
1061 .Xr ip 4
1062 for more information.
1063 .It Va ip_portrange_last
1064 .Pq Vt int
1065 If not set to
1066 .Dq Li NO ,
1067 this is the last port in the default portrange.
1068 Refer to
1069 .Xr ip 4
1070 for more information.
1071 .It Va network_interfaces
1072 .Pq Vt str
1073 Set to the list of network interfaces to configure on this host or
1074 .Dq Li AUTO
1075 (the default) for all current interfaces.
1076 Setting the
1077 .Va network_interfaces
1078 variable to anything other than the default is deprecated.
1079 Interfaces that the administrator wishes to store configuration for,
1080 but not start at boot should be configured with the
1081 .Dq Li NOAUTO
1082 keyword in their
1083 .Va ifconfig_ Ns Aq Ar interface
1084 variables as described below.
1085 .Pp
1086 An
1087 .Va ifconfig_ Ns Aq Ar interface
1088 variable is also assumed to exist for each value of
1089 .Ar interface .
1090 When an interface name contains any of the characters
1091 .Dq Li .-/+
1092 they are translated to
1093 .Dq Li _
1094 before lookup.
1095 The variable can contain arguments to
1096 .Xr ifconfig 8 ,
1097 as well as special case-insensitive keywords described below.
1098 Such keywords are removed before passing the value to
1099 .Xr ifconfig 8
1100 while the order of the other arguments is preserved.
1101 .Pp
1102 One can configure more than one IPv4 address with the
1103 .Va ipv4_addrs_ Ns Aq Ar interface
1104 variable.
1105 One or more IP addresses must be provided in Classless Inter-Domain
1106 Routing (CIDR) address notation, whose last byte can be a range like
1107 192.0.2.5-23/24.
1108 In this case the address 192.0.2.5 will be configured with the
1109 netmask /24 and the addresses 192.0.2.6 to 192.0.2.23 with
1110 the non-conflicting netmask /32 as explained in the
1111 .Xr ifconfig 8
1112 alias section.
1113 With the interface in question being
1114 .Li ed0 ,
1115 an example could look like:
1116 .Bd -literal
1117 ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-5/28"
1118 .Ed
1119 .Pp
1120 It is also possible to add IP alias entries using
1121 .Xr ifconfig 8
1122 syntax.
1123 Assuming that the interface in question was
1124 .Li ed0 ,
1125 it might look
1126 something like this:
1127 .Bd -literal
1128 ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
1129 ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"
1130 .Ed
1131 .Pp
1132 And so on.
1133 For each
1134 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1135 entry that is found,
1136 its contents are passed to
1137 .Xr ifconfig 8 .
1138 Execution stops at the first unsuccessful access, so if
1139 something like this is present:
1140 .Bd -literal
1141 ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff"
1142 ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff"
1143 ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff"
1144 ifconfig_ed0_alias4="inet 127.0.0.254 netmask 0xffffffff"
1145 .Ed
1146 .Pp
1147 Then note that alias4 would
1148 .Em not
1149 be added since the search would
1150 stop with the missing
1151 .Dq Li alias3
1152 entry.
1153 Due to this difficult to manage behavior, the
1154 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1155 form is deprecated.
1156 .Pp
1157 If the
1158 .Pa /etc/start_if. Ns Aq Ar interface
1159 file is present, it is read and executed by the
1160 .Xr sh 1
1161 interpreter
1162 before configuring the interface as specified in the
1163 .Va ifconfig_ Ns Aq Ar interface
1164 and
1165 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
1166 variables.
1167 .Pp
1168 If a
1169 .Va vlans_ Ns Aq Ar interface
1170 variable is set,
1171 a
1172 .Xr vlan 4
1173 interface will be created for each item in the list with the
1174 .Ar vlandev
1175 argument set to
1176 .Ar interface .
1177 If a vlan interface's name is a number,
1178 then that number is used as the vlan tag and the new vlan interface is
1179 named
1180 .Ar interface . Ns Ar tag .
1181 Otherwise,
1182 the vlan tag must be specified via a
1183 .Va vlan
1184 parameter in the
1185 .Va create_args_ Ns Aq Ar interface
1186 variable.
1187 .Pp
1188 To create a vlan device named
1189 .Li em0.101
1190 on
1191 .Li em0
1192 with the vlan tag 101 and the optional the IPv4 address 192.0.2.1/24:
1193 .Bd -literal
1194 vlans_em0="101"
1195 ifconfig_em0_101="inet 192.0.2.1/24"
1196 .Ed
1197 .Pp
1198 To create a vlan device named
1199 .Li myvlan
1200 on
1201 .Li em0
1202 with the vlan tag 102:
1203 .Bd -literal
1204 vlans_em0="myvlan"
1205 create_args_myvlan="vlan 102"
1206 .Ed
1207 .Pp
1208 If a
1209 .Va wlans_ Ns Aq Ar interface
1210 variable is set,
1211 an
1212 .Xr wlan 4
1213 interface will be created for each item in the list with the
1214 .Ar wlandev
1215 argument set to
1216 .Ar interface .
1217 Further wlan cloning arguments may be passed to the
1218 .Xr ifconfig 8
1219 .Cm create
1220 command by setting the
1221 .Va create_args_ Ns Aq Ar interface
1222 variable.
1223 One or more
1224 .Xr wlan 4
1225 devices must be created for each wireless devices as of
1226 .Fx 8.0 .
1227 Debugging flags for
1228 .Xr wlan 4
1229 devices as set by
1230 .Xr wlandebug 8
1231 may be specified with an
1232 .Va wlandebug_ Ns Aq Ar interface
1233 variable.
1234 The contents of this variable will be passed directly to
1235 .Xr wlandebug 8 .
1236 .Pp
1237 If the
1238 .Va ifconfig_ Ns Aq Ar interface
1239 contains the keyword
1240 .Dq Li NOAUTO
1241 then the interface will not be configured
1242 at boot or by
1243 .Pa /etc/pccard_ether
1244 when
1245 .Va network_interfaces
1246 is set to
1247 .Dq Li AUTO .
1248 .Pp
1249 It is possible to bring up an interface with DHCP by adding
1250 .Dq Li DHCP
1251 to the
1252 .Va ifconfig_ Ns Aq Ar interface
1253 variable.
1254 For instance, to initialize the
1255 .Li ed0
1256 device via DHCP,
1257 it is possible to use something like:
1258 .Bd -literal
1259 ifconfig_ed0="DHCP"
1260 .Ed
1261 .Pp
1262 Also, if you want to configure your wireless interface with
1263 .Xr wpa_supplicant 8
1264 for use with WPA, EAP/LEAP or WEP, you need to add
1265 .Dq Li WPA
1266 to the
1267 .Va ifconfig_ Ns Aq Ar interface
1268 variable.
1269 .Pp
1270 Finally, you can add
1271 .Xr ifconfig 8
1272 options in this variable, in addition to the
1273 .Pa /etc/start_if. Ns Aq Ar interface
1274 file.
1275 For instance, to configure an
1276 .Xr ath 4
1277 wireless device in station mode with an address obtained 
1278 via DHCP, using WPA authentication and 802.11b mode, it is
1279 possible to use something like:
1280 .Bd -literal
1281 wlans_ath0="wlan0"
1282 ifconfig_wlan0="DHCP WPA mode 11b"
1283 .Ed
1284 .Pp
1285 In addition to the
1286 .Va ifconfig_ Ns Aq Ar interface
1287 form, a fallback variable
1288 .Va ifconfig_DEFAULT
1289 may be configured.
1290 It will be used for all interfaces with no
1291 .Va ifconfig_ Ns Aq Ar interface
1292 variable.
1293 This is intended to replace the no longer supported
1294 .Va pccard_ifconfig
1295 variable.
1296 .Pp
1297 It is also possible to rename an interface by doing:
1298 .Bd -literal
1299 ifconfig_ed0_name="net0"
1300 ifconfig_net0="inet 192.0.2.1 netmask 0xffffff00"
1301 .Ed
1302 .It Va ipv6_network_interfaces
1303 .Pq Vt str
1304 This is the IPv6 equivalent of
1305 .Va network_interfaces .
1306 Instead of setting the ifconfig variables as
1307 .Va ifconfig_ Ns Aq Ar interface
1308 they should be set as
1309 .Va ipv6_ifconfig_ Ns Aq Ar interface .
1310 Aliases should be set as
1311 .Va ipv6_ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n .
1312 .Va ipv6_prefix_ Ns Aq Ar interface
1313 does something.
1314 Interfaces that do not have a
1315 .Va ipv6_ifconfig_ Ns Aq Ar interface
1316 setting will be auto configured by
1317 .Xr rtsol 8
1318 if the
1319 .Va ipv6_gateway_enable
1320 is set to
1321 .Dq Li NO .
1322 Note that the IPv6 networking code does not support the
1323 .Pa /etc/start_if. Ns Aq Ar interface
1324 files.
1325 .It Va ipv6_default_interface
1326 .Pq Vt str
1327 If not set to
1328 .Dq Li NO ,
1329 this is the default output interface for scoped addresses.
1330 Now this works only for IPv6 link local multicast addresses.
1331 .It Va cloned_interfaces
1332 .Pq Vt str
1333 Set to the list of clonable network interfaces to create on this host.
1334 Further cloning arguments may be passed to the
1335 .Xr ifconfig 8
1336 .Cm create
1337 command for each interface by setting the
1338 .Va create_args_ Ns Aq Ar interface
1339 variable.
1340 Entries in
1341 .Va cloned_interfaces
1342 are automatically appended to
1343 .Va network_interfaces
1344 for configuration.
1345 .It Va fec_interfaces
1346 .Pq Vt str
1347 Set to the list of
1348 .Xr ng_fec 4
1349 Fast EtherChannel interfaces to configure on this host.
1350 A
1351 .Va fecconfig_ Ns Aq Ar interface
1352 variable is assumed to exist for each value of
1353 .Ar interface .
1354 The value of this variable is used to configure link aggregated interfaces
1355 according to the syntax of the
1356 .Cm NGM_FEC_ADD_IFACE
1357 to
1358 .Xr ngctl 8
1359 msg.
1360 Additionally, this option ensures that each listed interface is created
1361 via the
1362 .Cm mkpeer
1363 command to
1364 .Xr ngctl 8
1365 before attempting to configure it.
1366 For example:
1367 .Bd -literal
1368 fec_interfaces="fec0"
1369 fecconfig_fec0="em0 em1"
1370 ifconfig_fec0="DHCP"
1371 .Ed
1372 .It Va gif_interfaces
1373 .Pq Vt str
1374 Set to the list of
1375 .Xr gif 4
1376 tunnel interfaces to configure on this host.
1377 A
1378 .Va gifconfig_ Ns Aq Ar interface
1379 variable is assumed to exist for each value of
1380 .Ar interface .
1381 The value of this variable is used to configure the link layer of the
1382 tunnel according to the syntax of the
1383 .Cm tunnel
1384 option to
1385 .Xr ifconfig 8 .
1386 Additionally, this option ensures that each listed interface is created
1387 via the
1388 .Cm create
1389 option to
1390 .Xr ifconfig 8
1391 before attempting to configure it.
1392 .It Va sppp_interfaces
1393 .Pq Vt str
1394 Set to the list of
1395 .Xr sppp 4
1396 interfaces to configure on this host.
1397 A
1398 .Va spppconfig_ Ns Aq Ar interface
1399 variable is assumed to exist for each value of
1400 .Ar interface .
1401 Each interface should also be configured by a general
1402 .Va ifconfig_ Ns Aq Ar interface
1403 setting.
1404 Refer to
1405 .Xr spppcontrol 8
1406 for more information about available options.
1407 .It Va ppp_enable
1408 .Pq Vt bool
1409 If set to
1410 .Dq Li YES ,
1411 run the
1412 .Xr ppp 8
1413 daemon.
1414 .It Va ppp_profile
1415 .Pq Vt str
1416 The name of the profile to use from
1417 .Pa /etc/ppp/ppp.conf .
1418 Also used for per-profile overrides of
1419 .Va ppp_mode
1420 and
1421 .Va ppp_nat ,
1422 and
1423 .Va ppp_ Ns Ao Ar profile Ac Ns _unit .
1424 When the profile name contains any of the characters
1425 .Dq Li .-/+
1426 they are translated to
1427 .Dq Li _
1428 for the proposes of the override variable names.
1429 .It Va ppp_mode
1430 .Pq Vt str
1431 Mode in which to run the
1432 .Xr ppp 8
1433 daemon.
1434 .It Va ppp_ Ns Ao Ar profile Ac Ns _mode
1435 .Pq Vt str
1436 Overrides the global
1437 .Va ppp_mode
1438 for
1439 .Ar profile .
1440 Accepted modes are
1441 .Dq Li auto ,
1442 .Dq Li ddial ,
1443 .Dq Li direct
1444 and
1445 .Dq Li dedicated .
1446 See the manual for a full description.
1447 .It Va ppp_nat
1448 .Pq Vt bool
1449 If set to
1450 .Dq Li YES ,
1451 enables network address translation.
1452 Used in conjunction with
1453 .Va gateway_enable
1454 allows hosts on private network addresses access to the Internet using
1455 this host as a network address translating router.
1456 .It Va ppp_ Ns Ao Ar profile Ac Ns _nat
1457 .Pq Vt str
1458 Overrides the global
1459 .Va ppp_nat
1460 for
1461 .Ar profile .
1462 .It Va ppp_ Ns Ao Ar profile Ac Ns _unit
1463 .Pq Vt int
1464 Set the unit number to be used for this profile.
1465 See the manual description of
1466 .Fl unit Ns Ar N
1467 for details.
1468 .It Va ppp_user
1469 .Pq Vt str
1470 The name of the user under which
1471 .Xr ppp 8
1472 should be started.
1473 By
1474 default,
1475 .Xr ppp 8
1476 is started as
1477 .Dq Li root .
1478 .It Va rc_conf_files
1479 .Pq Vt str
1480 This option is used to specify a list of files that will override
1481 the settings in
1482 .Pa /etc/defaults/rc.conf .
1483 The files will be read in the order in which they are specified and should
1484 include the full path to the file.
1485 By default, the files specified are
1486 .Pa /etc/rc.conf
1487 and
1488 .Pa /etc/rc.conf.local
1489 .It Va zfs_enable
1490 .Pq Vt bool
1491 If set to
1492 .Dq Li YES ,
1493 .Pa /etc/rc.d/zfs
1494 will attempt to automatically mount ZFS file systems and initialize ZFS volumes
1495 (ZVOLs).
1496 .It Va gbde_autoattach_all
1497 .Pq Vt bool
1498 If set to
1499 .Dq Li YES ,
1500 .Pa /etc/rc.d/gbde
1501 will attempt to automatically initialize your .bde devices in
1502 .Pa /etc/fstab .
1503 .It Va gbde_devices
1504 .Pq Vt str
1505 List the devices that the script should try to attach,
1506 or
1507 .Dq Li AUTO .
1508 .It Va gbde_lockdir
1509 .Pq Vt str
1510 The directory where the
1511 .Xr gbde 4
1512 lockfiles are located.
1513 The default lockfile directory is
1514 .Pa /etc .
1515 .Pp
1516 The lockfile for each individual
1517 .Xr gbde 4
1518 device can be overridden by setting the variable
1519 .Va gbde_lock_ Ns Aq Ar device ,
1520 where
1521 .Ar device
1522 is the encrypted device without the
1523 .Dq Pa /dev/
1524 and
1525 .Dq Pa .bde
1526 parts.
1527 .It Va gbde_attach_attempts
1528 .Pq Vt int
1529 Number of times to attempt attaching to a
1530 .Xr gbde 4
1531 device, i.e., how many times the user is asked for the pass-phrase.
1532 Default is 3.
1533 .It Va geli_devices
1534 .Pq Vt str
1535 List of devices to automatically attach on boot.
1536 Note that .eli devices from
1537 .Pa /etc/fstab
1538 are automatically appended to this list.
1539 .It Va geli_tries
1540 .Pq Vt int
1541 Number of times user is asked for the pass-phrase.
1542 If empty, it will be taken from
1543 .Va kern.geom.eli.tries
1544 sysctl variable.
1545 .It Va geli_default_flags
1546 .Pq Vt str
1547 Default flags to use by
1548 .Xr geli 8
1549 when configuring disk encryption.
1550 Flags can be configured for every device separately by defining
1551 .Va geli_ Ns Ao Ar device Ac Ns Va _flags
1552 variable.
1553 .It Va geli_autodetach
1554 .Pq Vt str
1555 Specifies if GELI devices should be marked for detach on last close after
1556 file systems are mounted.
1557 Default is
1558 .Dq Li YES .
1559 This can be changed for every device separately by defining
1560 .Va geli_ Ns Ao Ar device Ac Ns Va _autodetach
1561 variable.
1562 .It Va geli_swap_flags
1563 Options passed to the
1564 .Xr geli 8
1565 utility when encrypted GEOM providers for swap partitions are created.
1566 The default is
1567 .Dq Li "-e aes -l 256 -s 4096 -d" .
1568 .It Va root_rw_mount
1569 .Pq Vt bool
1570 Set to
1571 .Dq Li YES
1572 by default.
1573 After the file systems are checked at boot time, the root file system
1574 is remounted as read-write if this is set to
1575 .Dq Li YES .
1576 Diskless systems that mount their root file system from a read-only remote
1577 NFS share should set this to
1578 .Dq Li NO
1579 in their
1580 .Pa rc.conf .
1581 .It Va fsck_y_enable
1582 .Pq Vt bool
1583 If set to
1584 .Dq Li YES ,
1585 .Xr fsck 8
1586 will be run with the
1587 .Fl y
1588 flag if the initial preen
1589 of the file systems fails.
1590 .It Va background_fsck
1591 .Pq Vt bool
1592 If set to
1593 .Dq Li YES ,
1594 the system will attempt to run
1595 .Xr fsck 8
1596 in the background where possible.
1597 .It Va background_fsck_delay
1598 .Pq Vt int
1599 The amount of time in seconds to sleep before starting a background
1600 .Xr fsck 8 .
1601 It defaults to sixty seconds to allow large applications such as
1602 the X server to start before disk I/O bandwidth is monopolized by
1603 .Xr fsck 8 .
1604 If set to a negative number, the background file system check will be
1605 delayed indefinitely to allow the administrator to run it at a more
1606 convenient time.
1607 For example it may be run from
1608 .Xr cron 8
1609 by adding a line like
1610 .Pp
1611 .Dl "0 4 * * * root /etc/rc.d/bgfsck forcestart"
1612 .Pp
1613 to
1614 .Pa /etc/crontab .
1615 .It Va netfs_types
1616 .Pq Vt str
1617 List of file system types that are network-based.
1618 This list should generally not be modified by end users.
1619 Use
1620 .Va extra_netfs_types
1621 instead.
1622 .It Va extra_netfs_types
1623 .Pq Vt str
1624 If set to something other than
1625 .Dq Li NO
1626 (the default),
1627 this variable extends the list of file system types
1628 for which automatic mounting at startup by
1629 .Xr rc 8
1630 should be delayed until the network is initialized.
1631 It should contain
1632 a whitespace-separated list of network file system descriptor pairs,
1633 each consisting of a file system type as passed to
1634 .Xr mount 8
1635 and a human-readable, one-word description,
1636 joined with a colon
1637 .Pq Ql \&: .
1638 Extending the default list in this way is only necessary
1639 when third party file system types are used.
1640 .It Va syslogd_enable
1641 .Pq Vt bool
1642 If set to
1643 .Dq Li YES ,
1644 run the
1645 .Xr syslogd 8
1646 daemon.
1647 .It Va syslogd_program
1648 .Pq Vt str
1649 Path to
1650 .Xr syslogd 8
1651 (default
1652 .Pa /usr/sbin/syslogd ) .
1653 .It Va syslogd_flags
1654 .Pq Vt str
1655 If
1656 .Va syslogd_enable
1657 is set to
1658 .Dq Li YES ,
1659 these are the flags to pass to
1660 .Xr syslogd 8 .
1661 .It Va inetd_enable
1662 .Pq Vt bool
1663 If set to
1664 .Dq Li YES ,
1665 run the
1666 .Xr inetd 8
1667 daemon.
1668 .It Va inetd_program
1669 .Pq Vt str
1670 Path to
1671 .Xr inetd 8
1672 (default
1673 .Pa /usr/sbin/inetd ) .
1674 .It Va inetd_flags
1675 .Pq Vt str
1676 If
1677 .Va inetd_enable
1678 is set to
1679 .Dq Li YES ,
1680 these are the flags to pass to
1681 .Xr inetd 8 .
1682 .It Va hastd_enable
1683 .Pq Vt bool
1684 If set to
1685 .Dq Li YES ,
1686 run the
1687 .Xr hastd 8
1688 daemon.
1689 .It Va hastd_program
1690 .Pq Vt str
1691 Path to
1692 .Xr hastd 8
1693 (default
1694 .Pa /sbin/hastd ) .
1695 .It Va hastd_flags
1696 .Pq Vt str
1697 If
1698 .Va hastd_enable
1699 is set to
1700 .Dq Li YES ,
1701 these are the flags to pass to
1702 .Xr hastd 8 .
1703 .It Va named_enable
1704 .Pq Vt bool
1705 If set to
1706 .Dq Li YES ,
1707 run the
1708 .Xr named 8
1709 daemon.
1710 .It Va named_program
1711 .Pq Vt str
1712 Path to
1713 .Xr named 8
1714 (default
1715 .Pa /usr/sbin/named ) .
1716 .It Va named_conf
1717 .Pq Vt str
1718 Path to
1719 .Xr named 8
1720 configuration file, (default
1721 .Pa /etc/namedb/named.conf ) .
1722 .It Va named_flags
1723 .Pq Vt str
1724 If
1725 .Va named_enable
1726 is set to
1727 .Dq Li YES ,
1728 these are the flags to pass to
1729 .Xr named 8 .
1730 .It Va named_pidfile
1731 .Pq Vt str
1732 This is the default path to the
1733 .Xr named 8
1734 daemon's PID file.
1735 This must match the location in
1736 .Xr named.conf 5 .
1737 .It Va named_uid
1738 .Pq Vt str
1739 The user that the
1740 .Xr named 8
1741 process should be run as.
1742 .It Va named_chrootdir
1743 .Pq Vt str
1744 The root directory for a name server run in a
1745 .Xr chroot 8
1746 environment (default
1747 .Pa /var/named ) .
1748 If left empty
1749 .Xr named 8
1750 will not be run in a
1751 .Xr chroot 8
1752 environment.
1753 .It Va named_chroot_autoupdate
1754 .Pq Vt bool
1755 Set to
1756 .Dq Li NO
1757 to disable automatic update of the
1758 .Xr chroot 8
1759 environment.
1760 .It Va named_symlink_enable
1761 .Pq Vt bool
1762 Set to
1763 .Dq Li NO
1764 to disable symlinking of
1765 daemon's PID file
1766 into the
1767 .Xr chroot 8
1768 environment.
1769 .It Va named_wait
1770 .Pq Vt bool
1771 Set to have
1772 .Pa /etc/rc.d/named
1773 loop until working name service is established.
1774 .It Va named_wait_host
1775 .Pq Vt str
1776 Name of host to lookup for the named_wait option.
1777 (Default localhost)
1778 .It Va named_auto_forward
1779 .Pq Vt bool
1780 Set to enable automatic creation of a forwarder
1781 configuration file derived from
1782 .Pa /etc/resolv.conf .
1783 .It Va named_auto_forward_only
1784 .Pq Vt bool
1785 Set to change the default forwarder configuration from
1786 .Dq forward first
1787 to
1788 .Dq forward only .
1789 .It Va kerberos5_server_enable
1790 .Pq Vt bool
1791 Set to
1792 .Dq Li YES
1793 to start a Kerberos 5 authentication server
1794 at boot time.
1795 .It Va kerberos5_server
1796 .Pq Vt str
1797 If
1798 .Va kerberos5_server_enable
1799 is set to
1800 .Dq Li YES
1801 this is the path to Kerberos 5 Authentication Server.
1802 .It Va kerberos5_server_flags
1803 .Pq Vt str
1804 Empty by default.
1805 This variable contains additional flags to be passed to the Kerberos 5
1806 authentication server.
1807 .It Va kadmind5_server_enable
1808 .Pq Vt bool
1809 Set to
1810 .Dq Li YES
1811 to start
1812 .Xr kadmind 8 ,
1813 the Kerberos 5 Administration Daemon; set to
1814 .Dq Li NO
1815 on a slave server.
1816 .It Va kadmind5_server
1817 .Pq Vt str
1818 If
1819 .Va kadmind5_server_enable
1820 is set to
1821 .Dq Li YES
1822 this is the path to Kerberos 5 Administration Daemon.
1823 .It Va kpasswdd_server_enable
1824 .Pq Vt bool
1825 Set to
1826 .Dq Li YES
1827 to start
1828 .Xr kpasswdd 8 ,
1829 the Kerberos 5 Password-Changing Daemon; set to
1830 .Dq Li NO
1831 on a slave server.
1832 .It Va kpasswdd_server
1833 .Pq Vt str
1834 If
1835 .Va kpasswdd_server_enable
1836 is set to
1837 .Dq Li YES
1838 this is the path to Kerberos 5 Password-Changing Daemon.
1839 .It Va rwhod_enable
1840 .Pq Vt bool
1841 If set to
1842 .Dq Li YES ,
1843 run the
1844 .Xr rwhod 8
1845 daemon at boot time.
1846 .It Va rwhod_flags
1847 .Pq Vt str
1848 If
1849 .Va rwhod_enable
1850 is set to
1851 .Dq Li YES ,
1852 these are the flags to pass to it.
1853 .It Va amd_enable
1854 .Pq Vt bool
1855 If set to
1856 .Dq Li YES ,
1857 run the
1858 .Xr amd 8
1859 daemon at boot time.
1860 .It Va amd_flags
1861 .Pq Vt str
1862 If
1863 .Va amd_enable
1864 is set to
1865 .Dq Li YES ,
1866 these are the flags to pass to it.
1867 See the
1868 .Xr amd 8
1869 manpage for more information.
1870 .It Va amd_map_program
1871 .Pq Vt str
1872 If set,
1873 the specified program is run to get the list of
1874 .Xr amd 8
1875 maps.
1876 For example, if the
1877 .Xr amd 8
1878 maps are stored in NIS, one can set this to
1879 run
1880 .Xr ypcat 1
1881 to get a list of
1882 .Xr amd 8
1883 maps from the
1884 .Pa amd.master
1885 NIS map.
1886 .It Va update_motd
1887 .Pq Vt bool
1888 If set to
1889 .Dq Li YES ,
1890 .Pa /etc/motd
1891 will be updated at boot time to reflect the kernel release
1892 being run.
1893 If set to
1894 .Dq Li NO ,
1895 .Pa /etc/motd
1896 will not be updated.
1897 .It Va nfs_client_enable
1898 .Pq Vt bool
1899 If set to
1900 .Dq Li YES ,
1901 run the NFS client daemons at boot time.
1902 .It Va nfs_access_cache
1903 .Pq Vt int
1904 If
1905 .Va nfs_client_enable
1906 is set to
1907 .Dq Li YES ,
1908 this can be set to
1909 .Dq Li 0
1910 to disable NFS ACCESS RPC caching, or to the number of seconds for which
1911 NFS ACCESS
1912 results should be cached.
1913 A value of 2-10 seconds will substantially reduce network
1914 traffic for many NFS operations.
1915 .It Va nfs_server_enable
1916 .Pq Vt bool
1917 If set to
1918 .Dq Li YES ,
1919 run the NFS server daemons at boot time.
1920 .It Va nfs_server_flags
1921 .Pq Vt str
1922 If
1923 .Va nfs_server_enable
1924 is set to
1925 .Dq Li YES ,
1926 these are the flags to pass to the
1927 .Xr nfsd 8
1928 daemon.
1929 .It Va idmapd_enable
1930 .Pq Vt bool
1931 If set to
1932 .Dq Li YES ,
1933 run the ID mapping daemon for NFS version 4.
1934 .It Va idmapd_flags
1935 .Pq Vt str
1936 If
1937 .Va idmapd_enable
1938 is set to
1939 .Dq Li YES ,
1940 these are the flags to pass to the
1941 .Xr idmapd 8
1942 daemon.
1943 .It Va mountd_enable
1944 .Pq Vt bool
1945 If set to
1946 .Dq Li YES ,
1947 and no
1948 .Va nfs_server_enable
1949 is set, start
1950 .Xr mountd 8 ,
1951 but not
1952 .Xr nfsd 8
1953 daemon.
1954 It is commonly needed to run CFS without real NFS used.
1955 .It Va mountd_flags
1956 .Pq Vt str
1957 If
1958 .Va mountd_enable
1959 is set to
1960 .Dq Li YES ,
1961 these are the flags to pass to the
1962 .Xr mountd 8
1963 daemon.
1964 .It Va weak_mountd_authentication
1965 .Pq Vt bool
1966 If set to
1967 .Dq Li YES ,
1968 allow services like PCNFSD to make non-privileged mount
1969 requests.
1970 .It Va nfs_reserved_port_only
1971 .Pq Vt bool
1972 If set to
1973 .Dq Li YES ,
1974 provide NFS services only on a secure port.
1975 .It Va nfs_bufpackets
1976 .Pq Vt int
1977 If set to a number, indicates the number of packets worth of
1978 socket buffer space to reserve on an NFS client.
1979 The kernel default is typically 4.
1980 Using a higher number may be
1981 useful on gigabit networks to improve performance.
1982 The minimum value is
1983 2 and the maximum is 64.
1984 .It Va rpc_lockd_enable
1985 .Pq Vt bool
1986 If set to
1987 .Dq Li YES
1988 and also an NFS server or client, run
1989 .Xr rpc.lockd 8
1990 at boot time.
1991 .It Va rpc_lockd_flags
1992 .Pq Vt str
1993 If
1994 .Va rpc_lockd_enable
1995 is set to
1996 .Dq Li YES ,
1997 these are the flags to pass to the
1998 .Xr rpc.lockd 8
1999 daemon.
2000 .It Va rpc_statd_enable
2001 .Pq Vt bool
2002 If set to
2003 .Dq Li YES
2004 and also an NFS server or client, run
2005 .Xr rpc.statd 8
2006 at boot time.
2007 .It Va rpc_statd_flags
2008 .Pq Vt str
2009 If
2010 .Va rpc_statd_enable
2011 is set to
2012 .Dq Li YES ,
2013 these are the flags to pass to the
2014 .Xr rpc.statd 8
2015 daemon.
2016 .It Va rpcbind_program
2017 .Pq Vt str
2018 Path to
2019 .Xr rpcbind 8
2020 (default
2021 .Pa /usr/sbin/rpcbind ) .
2022 .It Va rpcbind_enable
2023 .Pq Vt bool
2024 If set to
2025 .Dq Li YES ,
2026 run the
2027 .Xr rpcbind 8
2028 service at boot time.
2029 .It Va rpcbind_flags
2030 .Pq Vt str
2031 If
2032 .Va rpcbind_enable
2033 is set to
2034 .Dq Li YES ,
2035 these are the flags to pass to the
2036 .Xr rpcbind 8
2037 daemon.
2038 .It Va keyserv_enable
2039 .Pq Vt bool
2040 If set to
2041 .Dq Li YES ,
2042 run the
2043 .Xr keyserv 8
2044 daemon on boot for running Secure RPC.
2045 .It Va keyserv_flags
2046 .Pq Vt str
2047 If
2048 .Va keyserv_enable
2049 is set to
2050 .Dq Li YES ,
2051 these are the flags to pass to
2052 .Xr keyserv 8
2053 daemon.
2054 .It Va pppoed_enable
2055 .Pq Vt bool
2056 If set to
2057 .Dq Li YES ,
2058 run the
2059 .Xr pppoed 8
2060 daemon at boot time to provide PPP over Ethernet services.
2061 .It Va pppoed_ Ns Aq Ar provider
2062 .Pq Vt str
2063 .Xr pppoed 8
2064 listens to requests to this
2065 .Ar provider
2066 and ultimately runs
2067 .Xr ppp 8
2068 with a
2069 .Ar system
2070 argument of the same name.
2071 .It Va pppoed_flags
2072 .Pq Vt str
2073 Additional flags to pass to
2074 .Xr pppoed 8 .
2075 .It Va pppoed_interface
2076 .Pq Vt str
2077 The network interface to run
2078 .Xr pppoed 8
2079 on.
2080 This is mandatory when
2081 .Va pppoed_enable
2082 is set to
2083 .Dq Li YES .
2084 .It Va timed_enable
2085 .Pq Vt bool
2086 If set to
2087 .Dq Li YES ,
2088 run the
2089 .Xr timed 8
2090 service at boot time.
2091 This command is intended for networks of
2092 machines where a consistent
2093 .Dq "network time"
2094 for all hosts must be established.
2095 This is often useful in large NFS
2096 environments where time stamps on files are expected to be consistent
2097 network-wide.
2098 .It Va timed_flags
2099 .Pq Vt str
2100 If
2101 .Va timed_enable
2102 is set to
2103 .Dq Li YES ,
2104 these are the flags to pass to the
2105 .Xr timed 8
2106 service.
2107 .It Va ntpdate_enable
2108 .Pq Vt bool
2109 If set to
2110 .Dq Li YES ,
2111 run
2112 .Xr ntpdate 8
2113 at system startup.
2114 This command is intended to
2115 synchronize the system clock only
2116 .Em once
2117 from some standard reference.
2118 An option to set this up initially
2119 (from a list of known servers) is also provided by the
2120 .Xr sysinstall 8
2121 program when the system is first installed.
2122 .It Va ntpdate_config
2123 .Pq Vt str
2124 Configuration file for
2125 .Xr ntpdate 8 .
2126 Default
2127 .Pa /etc/ntp.conf .
2128 .It Va ntpdate_hosts
2129 .Pq Vt str
2130 A whitespace-separated list of NTP servers to synchronize with at startup.
2131 The default is to use the servers listed in
2132 .Va ntpdate_config ,
2133 if that file exists.
2134 .It Va ntpdate_program
2135 .Pq Vt str
2136 Path to
2137 .Xr ntpdate 8
2138 (default
2139 .Pa /usr/sbin/ntpdate ) .
2140 .It Va ntpdate_flags
2141 .Pq Vt str
2142 If
2143 .Va ntpdate_enable
2144 is set to
2145 .Dq Li YES ,
2146 these are the flags to pass to the
2147 .Xr ntpdate 8
2148 command (typically a hostname).
2149 .It Va ntpd_enable
2150 .Pq Vt bool
2151 If set to
2152 .Dq Li YES ,
2153 run the
2154 .Xr ntpd 8
2155 command at boot time.
2156 .It Va ntpd_program
2157 .Pq Vt str
2158 Path to
2159 .Xr ntpd 8
2160 (default
2161 .Pa /usr/sbin/ntpd ) .
2162 .It Va ntpd_config
2163 .Pq Vt str
2164 Path to
2165 .Xr ntpd 8
2166 configuration file.
2167 Default
2168 .Pa /etc/ntp.conf .
2169 .It Va ntpd_flags
2170 .Pq Vt str
2171 If
2172 .Va ntpd_enable
2173 is set to
2174 .Dq Li YES ,
2175 these are the flags to pass to the
2176 .Xr ntpd 8
2177 daemon.
2178 .It Va ntpd_sync_on_start
2179 .Pq Vt bool
2180 If set to
2181 .Dq Li YES ,
2182 .Xr ntpd 8
2183 is run with the
2184 .Fl g
2185 flag, which syncs the system's clock on startup.
2186 See
2187 .Xr ntpd 8
2188 for more information regarding the
2189 .Fl g
2190 option.
2191 This is a preferred alternative to using
2192 .Xr ntpdate 8
2193 or specifying the
2194 .Va ntpdate_enable
2195 variable.
2196 .It Va nis_client_enable
2197 .Pq Vt bool
2198 If set to
2199 .Dq Li YES ,
2200 run the
2201 .Xr ypbind 8
2202 service at system boot time.
2203 .It Va nis_client_flags
2204 .Pq Vt str
2205 If
2206 .Va nis_client_enable
2207 is set to
2208 .Dq Li YES ,
2209 these are the flags to pass to the
2210 .Xr ypbind 8
2211 service.
2212 .It Va nis_ypset_enable
2213 .Pq Vt bool
2214 If set to
2215 .Dq Li YES ,
2216 run the
2217 .Xr ypset 8
2218 daemon at system boot time.
2219 .It Va nis_ypset_flags
2220 .Pq Vt str
2221 If
2222 .Va nis_ypset_enable
2223 is set to
2224 .Dq Li YES ,
2225 these are the flags to pass to the
2226 .Xr ypset 8
2227 daemon.
2228 .It Va nis_server_enable
2229 .Pq Vt bool
2230 If set to
2231 .Dq Li YES ,
2232 run the
2233 .Xr ypserv 8
2234 daemon at system boot time.
2235 .It Va nis_server_flags
2236 .Pq Vt str
2237 If
2238 .Va nis_server_enable
2239 is set to
2240 .Dq Li YES ,
2241 these are the flags to pass to the
2242 .Xr ypserv 8
2243 daemon.
2244 .It Va nis_ypxfrd_enable
2245 .Pq Vt bool
2246 If set to
2247 .Dq Li YES ,
2248 run the
2249 .Xr rpc.ypxfrd 8
2250 daemon at system boot time.
2251 .It Va nis_ypxfrd_flags
2252 .Pq Vt str
2253 If
2254 .Va nis_ypxfrd_enable
2255 is set to
2256 .Dq Li YES ,
2257 these are the flags to pass to the
2258 .Xr rpc.ypxfrd 8
2259 daemon.
2260 .It Va nis_yppasswdd_enable
2261 .Pq Vt bool
2262 If set to
2263 .Dq Li YES ,
2264 run the
2265 .Xr rpc.yppasswdd 8
2266 daemon at system boot time.
2267 .It Va nis_yppasswdd_flags
2268 .Pq Vt str
2269 If
2270 .Va nis_yppasswdd_enable
2271 is set to
2272 .Dq Li YES ,
2273 these are the flags to pass to the
2274 .Xr rpc.yppasswdd 8
2275 daemon.
2276 .It Va rpc_ypupdated_enable
2277 .Pq Vt bool
2278 If set to
2279 .Dq Li YES ,
2280 run the
2281 .Nm rpc.ypupdated
2282 daemon at system boot time.
2283 .It Va bsnmpd_enable
2284 .Pq Vt bool
2285 If set to
2286 .Dq Li YES ,
2287 run the
2288 .Xr bsnmpd 1
2289 daemon at system boot time.
2290 Be sure to understand the security implications of running SNMP daemon
2291 on your host.
2292 .It Va bsnmpd_flags
2293 .Pq Vt str
2294 If
2295 .Va bsnmpd_enable
2296 is set to
2297 .Dq Li YES ,
2298 these are the flags to pass to the
2299 .Xr bsnmpd 1
2300 daemon.
2301 .It Va defaultrouter
2302 .Pq Vt str
2303 If not set to
2304 .Dq Li NO ,
2305 create a default route to this host name or IP address
2306 (use an IP address if this router is also required to get to the
2307 name server!).
2308 .It Va ipv6_defaultrouter
2309 .Pq Vt str
2310 The IPv6 equivalent of
2311 .Va defaultrouter .
2312 .It Va static_arp_pairs
2313 .Pq Vt str
2314 Set to the list of static ARP pairs that are to be added at system
2315 boot time.
2316 For each whitespace separated
2317 .Ar element
2318 in the value, a
2319 .Va static_arp_ Ns Aq Ar element
2320 variable is assumed to exist whose contents will later be passed to a
2321 .Dq Nm arp Cm -S
2322 operation.
2323 For example
2324 .Bd -literal
2325 static_arp_pairs="gw"
2326 static_arp_gw="192.168.1.1 00:01:02:03:04:05"
2327 .Ed
2328 .It Va static_ndp_pairs
2329 .Pq Vt str
2330 Set to the list of static NDP pairs that are to be added at system
2331 boot time.
2332 For each whitespace separated
2333 .Ar element
2334 in the value, a
2335 .Va static_ndp_ Ns Aq Ar element
2336 variable is assumed to exist whose contents will later be passed to a
2337 .Dq Nm ndp Cm -s
2338 operation.
2339 For example
2340 .Bd -literal
2341 static_ndp_pairs="gw"
2342 static_ndp_gw="2001:db8:3::1 00:01:02:03:04:05"
2343 .Ed
2344 .It Va static_routes
2345 .Pq Vt str
2346 Set to the list of static routes that are to be added at system
2347 boot time.
2348 If not set to
2349 .Dq Li NO
2350 then for each whitespace separated
2351 .Ar element
2352 in the value, a
2353 .Va route_ Ns Aq Ar element
2354 variable is assumed to exist
2355 whose contents will later be passed to a
2356 .Dq Nm route Cm add
2357 operation.
2358 For example:
2359 .Bd -literal
2360 static_routes="mcast gif0local"
2361 route_mcast="-net 224.0.0.0/4 -iface gif0"
2362 route_gif0local="-host 169.254.1.1 -iface lo0"
2363 .Ed
2364 .It Va ipv6_static_routes
2365 .Pq Vt str
2366 The IPv6 equivalent of
2367 .Va static_routes .
2368 If not set to
2369 .Dq Li NO
2370 then for each whitespace separated
2371 .Ar element
2372 in the value, a
2373 .Va ipv6_route_ Ns Aq Ar element
2374 variable is assumed to exist
2375 whose contents will later be passed to a
2376 .Dq Nm route Cm add Fl inet6
2377 operation.
2378 .It Va natm_static_routes
2379 .Pq Vt str
2380 The
2381 .Xr natmip 4
2382 equivalent of
2383 .Va static_routes .
2384 If not empty then for each whitespace separated
2385 .Ar element
2386 in the value, a
2387 .Va route_ Ns Aq Ar element
2388 variable is assumed to exist whose contents will later be passed to a
2389 .Dq Nm atmconfig Cm natm Cm add
2390 operation.
2391 .It Va gateway_enable
2392 .Pq Vt bool
2393 If set to
2394 .Dq Li YES ,
2395 configure host to act as an IP router, e.g.\& to forward packets
2396 between interfaces.
2397 .It Va ipv6_gateway_enable
2398 .Pq Vt bool
2399 The IPv6 equivalent of
2400 .Va gateway_enable .
2401 .It Va router_enable
2402 .Pq Vt bool
2403 If set to
2404 .Dq Li YES ,
2405 run a routing daemon of some sort, based on the
2406 settings of
2407 .Va router
2408 and
2409 .Va router_flags .
2410 .It Va ipv6_router_enable
2411 .Pq Vt bool
2412 The IPv6 equivalent of
2413 .Va router_enable .
2414 If set to
2415 .Dq Li YES ,
2416 run a routing daemon of some sort, based on the
2417 settings of
2418 .Va ipv6_router
2419 and
2420 .Va ipv6_router_flags .
2421 .It Va router
2422 .Pq Vt str
2423 If
2424 .Va router_enable
2425 is set to
2426 .Dq Li YES ,
2427 this is the name of the routing daemon to use.
2428 .It Va ipv6_router
2429 .Pq Vt str
2430 The IPv6 equivalent of
2431 .Va router .
2432 .It Va router_flags
2433 .Pq Vt str
2434 If
2435 .Va router_enable
2436 is set to
2437 .Dq Li YES ,
2438 these are the flags to pass to the routing daemon.
2439 .It Va ipv6_router_flags
2440 .Pq Vt str
2441 The IPv6 equivalent of
2442 .Va router_flags .
2443 .It Va mrouted_enable
2444 .Pq Vt bool
2445 If set to
2446 .Dq Li YES ,
2447 run the multicast routing daemon,
2448 .Xr mrouted 8 .
2449 .It Va mroute6d_enable
2450 .Pq Vt bool
2451 The IPv6 equivalent of
2452 .Va mrouted_enable .
2453 If set to
2454 .Dq Li YES ,
2455 run the IPv6 multicast routing daemon.
2456 .Pp
2457 Note that multicast routing daemons are no longer included in the
2458 .Fx
2459 base system, however, both
2460 .Xr mrouted 8
2461 and
2462 .Xr pim6dd 8
2463 may be installed from the
2464 .Fx
2465 Ports Collection.
2466 .It Va mrouted_flags
2467 .Pq Vt str
2468 If
2469 .Va mrouted_enable
2470 is set to
2471 .Dq Li YES ,
2472 these are the flags to pass to the
2473 .Xr mrouted 8
2474 daemon.
2475 .It Va mroute6d_flags
2476 .Pq Vt str
2477 The IPv6 equivalent of
2478 .Va mrouted_flags .
2479 If
2480 .Va mroute6d_enable
2481 is set to
2482 .Dq Li YES ,
2483 these are the flags passed to the IPv6 multicast routing daemon.
2484 .It Va mroute6d_program
2485 .Pq Vt str
2486 If
2487 .Va mroute6d_enable
2488 is set to
2489 .Dq Li YES ,
2490 this is the path to the IPv6 multicast routing daemon.
2491 .It Va rtadvd_enable
2492 .Pq Vt bool
2493 If set to
2494 .Dq Li YES ,
2495 run the
2496 .Xr rtadvd 8
2497 daemon at boot time.
2498 .Xr rtadvd 8
2499 will only run if
2500 .Va ipv6_gateway_enable
2501 is also set to
2502 .Dq Li YES .
2503 The
2504 .Xr rtadvd 8
2505 utility sends router advertisement packets to the interfaces specified in
2506 .Va rtadvd_interfaces
2507 and should only be enabled with great care.
2508 You may want to fine-tune
2509 .Xr rtadvd.conf 5 .
2510 .It Va rtadvd_interfaces
2511 .Pq Vt str
2512 If
2513 .Va rtadvd_enable
2514 is set to
2515 .Dq Li YES
2516 this is the list of interfaces to use.
2517 .It Va ipxgateway_enable
2518 .Pq Vt bool
2519 If set to
2520 .Dq Li YES ,
2521 enable the routing of IPX traffic.
2522 .It Va ipxrouted_enable
2523 .Pq Vt bool
2524 If set to
2525 .Dq Li YES ,
2526 run the
2527 .Xr IPXrouted 8
2528 daemon at system boot time.
2529 .It Va ipxrouted_flags
2530 .Pq Vt str
2531 If
2532 .Va ipxrouted_enable
2533 is set to
2534 .Dq Li YES ,
2535 these are the flags to pass to the
2536 .Xr IPXrouted 8
2537 daemon.
2538 .It Va arpproxy_all
2539 .Pq Vt bool
2540 If set to
2541 .Dq Li YES ,
2542 enable global proxy ARP.
2543 .It Va forward_sourceroute
2544 .Pq Vt bool
2545 If set to
2546 .Dq Li YES
2547 and
2548 .Va gateway_enable
2549 is also set to
2550 .Dq Li YES ,
2551 source-routed packets are forwarded.
2552 .It Va accept_sourceroute
2553 .Pq Vt bool
2554 If set to
2555 .Dq Li YES ,
2556 the system will accept source-routed packets directed at it.
2557 .It Va rarpd_enable
2558 .Pq Vt bool
2559 If set to
2560 .Dq Li YES ,
2561 run the
2562 .Xr rarpd 8
2563 daemon at system boot time.
2564 .It Va rarpd_flags
2565 .Pq Vt str
2566 If
2567 .Va rarpd_enable
2568 is set to
2569 .Dq Li YES ,
2570 these are the flags to pass to the
2571 .Xr rarpd 8
2572 daemon.
2573 .It Va bootparamd_enable
2574 .Pq Vt bool
2575 If set to
2576 .Dq Li YES ,
2577 run the
2578 .Xr bootparamd 8
2579 daemon at system boot time.
2580 .It Va bootparamd_flags
2581 .Pq Vt str
2582 If
2583 .Va bootparamd_enable
2584 is set to
2585 .Dq Li YES ,
2586 these are the flags to pass to the
2587 .Xr bootparamd 8
2588 daemon.
2589 .It Va stf_interface_ipv4addr
2590 .Pq Vt str
2591 If not set to
2592 .Dq Li NO ,
2593 this is the local IPv4 address for 6to4 (IPv6 over IPv4 tunneling
2594 interface).
2595 Specify this entry to enable the 6to4 interface.
2596 .It Va stf_interface_ipv4plen
2597 .Pq Vt int
2598 Prefix length for 6to4 IPv4 addresses, to limit peer address range.
2599 An effective value is 0-31.
2600 .It Va stf_interface_ipv6_ifid
2601 .Pq Vt str
2602 IPv6 interface ID for
2603 .Xr stf 4 .
2604 This can be set to
2605 .Dq Li AUTO .
2606 .It Va stf_interface_ipv6_slaid
2607 .Pq Vt str
2608 IPv6 Site Level Aggregator for
2609 .Xr stf 4 .
2610 .It Va ipv6_faith_prefix
2611 .Pq Vt str
2612 If not set to
2613 .Dq Li NO ,
2614 this is the faith prefix to enable a FAITH IPv6-to-IPv4 TCP
2615 translator.
2616 You also need
2617 .Xr faithd 8
2618 setup.
2619 .It Va ipv6_ipv4mapping
2620 .Pq Vt bool
2621 If set to
2622 .Dq Li YES
2623 this enables IPv4 mapped IPv6 address communication (like
2624 .Li ::ffff:a.b.c.d ) .
2625 .It Va rtsold_enable
2626 .Pq Vt bool
2627 Set to
2628 .Dq Li YES
2629 to enable the
2630 .Xr rtsold 8
2631 daemon to send ICMPv6 Router Solicitation messages.
2632 .It Va rtsold_flags
2633 .Pq Vt str
2634 If
2635 .Va rtsold_enable
2636 is set to
2637 .Dq Li YES ,
2638 these are the flags to pass to
2639 .Xr rtsold 8 .
2640 .It Va rtsol_flags
2641 .Pq Vt str
2642 For interfaces configured with the
2643 .Dq Li inet6 accept_rtadv
2644 keyword, these are the flags to pass to
2645 .Xr rtsol 8 .
2646 .Pp
2647 Note that
2648 .Va rtsold_enable
2649 is mutually exclusive to
2650 .Va rtsol_flags ;
2651 .Va rtsold_enable
2652 takes precedence.
2653 .It Va atm_enable
2654 .Pq Vt bool
2655 Set to
2656 .Dq Li YES
2657 to enable the configuration of ATM interfaces at system boot time.
2658 For all of the ATM variables described below, please refer to the
2659 .Xr atm 8
2660 manual page for further details on the available command parameters.
2661 Also refer to the files in
2662 .Pa /usr/share/examples/atm
2663 for more detailed configuration information.
2664 .It Va atm_load
2665 .Pq Vt str
2666 This is a list of physical ATM interface drivers to load.
2667 Typical values are
2668 .Dq Li hfa_pci
2669 and/or
2670 .Dq Li hea_pci .
2671 .It Va atm_netif_ Ns Aq Ar intf
2672 .Pq Vt str
2673 For the ATM physical interface
2674 .Ar intf ,
2675 this variable defines the name prefix and count for the ATM network
2676 interfaces to be created.
2677 The value will be passed as the parameters of an
2678 .Dq Nm atm Cm "set netif" Ar intf
2679 command.
2680 .It Va atm_sigmgr_ Ns Aq Ar intf
2681 .Pq Vt str
2682 For the ATM physical interface
2683 .Ar intf ,
2684 this variable defines the ATM signalling manager to be used.
2685 The value will be passed as the parameters of an
2686 .Dq Nm atm Cm attach Ar intf
2687 command.
2688 .It Va atm_prefix_ Ns Aq Ar intf
2689 .Pq Vt str
2690 For the ATM physical interface
2691 .Ar intf ,
2692 this variable defines the NSAP prefix for interfaces using a UNI signalling
2693 manager.
2694 If set to
2695 .Dq Li ILMI ,
2696 the prefix will automatically be set via the
2697 .Xr ilmid 8
2698 daemon.
2699 Otherwise, the value will be passed as the parameters of an
2700 .Dq Nm atm Cm "set prefix" Ar intf
2701 command.
2702 .It Va atm_macaddr_ Ns Aq Ar intf
2703 .Pq Vt str
2704 For the ATM physical interface
2705 .Ar intf ,
2706 this variable defines the MAC address for interfaces using a UNI signalling
2707 manager.
2708 If set to
2709 .Dq Li NO ,
2710 the hardware MAC address contained in the ATM interface card will be used.
2711 Otherwise, the value will be passed as the parameters of an
2712 .Dq Nm atm Cm "set mac" Ar intf
2713 command.
2714 .It Va atm_arpserver_ Ns Aq Ar netif
2715 .Pq Vt str
2716 For the ATM network interface
2717 .Ar netif ,
2718 this variable defines the ATM address for a host which is to provide ATMARP
2719 service.
2720 This variable is only applicable to interfaces using a UNI signalling
2721 manager.
2722 If set to
2723 .Dq Li local ,
2724 this host will become an ATMARP server.
2725 The value will be passed as the parameters of an
2726 .Dq Nm atm Cm "set arpserver" Ar netif
2727 command.
2728 .It Va atm_scsparp_ Ns Aq Ar netif
2729 .Pq Vt bool
2730 If set to
2731 .Dq Li YES ,
2732 SCSP/ATMARP service for the network interface
2733 .Ar netif
2734 will be initiated using the
2735 .Xr scspd 8
2736 and
2737 .Xr atmarpd 8
2738 daemons.
2739 This variable is only applicable if
2740 .Va atm_arpserver_ Ns Aq Ar netif
2741 is set to
2742 .Dq Li local .
2743 .It Va atm_pvcs
2744 .Pq Vt str
2745 Set to the list of ATM PVCs to be added at system
2746 boot time.
2747 For each whitespace separated
2748 .Ar element
2749 in the value, an
2750 .Va atm_pvc_ Ns Aq Ar element
2751 variable is assumed to exist.
2752 The value of each of these variables
2753 will be passed as the parameters of an
2754 .Dq Nm atm Cm "add pvc"
2755 command.
2756 .It Va atm_arps
2757 .Pq Vt str
2758 Set to the list of permanent ATM ARP entries to be added
2759 at system boot time.
2760 For each whitespace separated
2761 .Ar element
2762 in the value, an
2763 .Va atm_arp_ Ns Aq Ar element
2764 variable is assumed to exist.
2765 The value of each of these variables
2766 will be passed as the parameters of an
2767 .Dq Nm atm Cm "add arp"
2768 command.
2769 .It Va natm_interfaces
2770 .Pq Vt str
2771 Set to the list of
2772 .Xr natm 4
2773 interfaces that will also be used for HARP through
2774 .Xr harp 4 .
2775 If this list is not empty all interfaces in the list will be brought up
2776 with
2777 .Xr ifconfig 8
2778 and
2779 .Xr harp 4
2780 will be loaded.
2781 For this to work the interface drivers must be either compiled into the
2782 kernel or must reside on the root partition.
2783 .It Va keybell
2784 .Pq Vt str
2785 The keyboard bell sound.
2786 Set to
2787 .Dq Li normal ,
2788 .Dq Li visual ,
2789 .Dq Li off ,
2790 or
2791 .Dq Li NO
2792 if the default behavior is desired.
2793 For details, refer to the
2794 .Xr kbdcontrol 1
2795 manpage.
2796 .It Va keyboard
2797 .Pq Vt str
2798 If set to a non-null string, the virtual console's keyboard input is
2799 set to this device.
2800 .It Va keymap
2801 .Pq Vt str
2802 If set to
2803 .Dq Li NO ,
2804 no keymap is installed, otherwise the value is used to install
2805 the keymap file in
2806 .Pa /usr/share/syscons/keymaps/ Ns Ao Ar value Ac Ns Pa .kbd .
2807 .It Va keyrate
2808 .Pq Vt str
2809 The keyboard repeat speed.
2810 Set to
2811 .Dq Li slow ,
2812 .Dq Li normal ,
2813 .Dq Li fast ,
2814 or
2815 .Dq Li NO
2816 if the default behavior is desired.
2817 .It Va keychange
2818 .Pq Vt str
2819 If not set to
2820 .Dq Li NO ,
2821 attempt to program the function keys with the value.
2822 The value should
2823 be a single string of the form:
2824 .Dq Ar funkey_number new_value Op Ar funkey_number new_value ... .
2825 .It Va cursor
2826 .Pq Vt str
2827 Can be set to the value of
2828 .Dq Li normal ,
2829 .Dq Li blink ,
2830 .Dq Li destructive ,
2831 or
2832 .Dq Li NO
2833 to set the cursor behavior explicitly or choose the default behavior.
2834 .It Va scrnmap
2835 .Pq Vt str
2836 If set to
2837 .Dq Li NO ,
2838 no screen map is installed, otherwise the value is used to install
2839 the screen map file in
2840 .Pa /usr/share/syscons/scrnmaps/ Ns Aq Ar value .
2841 .It Va font8x16
2842 .Pq Vt str
2843 If set to
2844 .Dq Li NO ,
2845 the default 8x16 font value is used for screen size requests, otherwise
2846 the value in
2847 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
2848 is used.
2849 .It Va font8x14
2850 .Pq Vt str
2851 If set to
2852 .Dq Li NO ,
2853 the default 8x14 font value is used for screen size requests, otherwise
2854 the value in
2855 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
2856 is used.
2857 .It Va font8x8
2858 .Pq Vt str
2859 If set to
2860 .Dq Li NO ,
2861 the default 8x8 font value is used for screen size requests, otherwise
2862 the value in
2863 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
2864 is used.
2865 .It Va blanktime
2866 .Pq Vt int
2867 If set to
2868 .Dq Li NO ,
2869 the default screen blanking interval is used, otherwise it is set
2870 to
2871 .Ar value
2872 seconds.
2873 .It Va saver
2874 .Pq Vt str
2875 If not set to
2876 .Dq Li NO ,
2877 this is the actual screen saver to use
2878 .Li ( blank , snake , daemon ,
2879 etc).
2880 .It Va moused_nondefault_enable
2881 .Pq Vt str
2882 If set to
2883 .Dq Li NO ,
2884 the mouse device specified on
2885 the command line is not automatically treated as enabled by the
2886 .Pa /etc/rc.d/moused
2887 script.
2888 Having this variable set to
2889 .Dq Li YES
2890 allows a
2891 .Xr usb 4
2892 mouse,
2893 for example,
2894 to be enabled as soon as it is plugged in.
2895 .It Va moused_enable
2896 .Pq Vt str
2897 If set to
2898 .Dq Li YES ,
2899 the
2900 .Xr moused 8
2901 daemon is started for doing cut/paste selection on the console.
2902 .It Va moused_type
2903 .Pq Vt str
2904 This is the protocol type of the mouse connected to this host.
2905 This variable must be set if
2906 .Va moused_enable
2907 is set to
2908 .Dq Li YES .
2909 The
2910 .Xr moused 8
2911 daemon
2912 is able to detect the appropriate mouse type automatically in many cases.
2913 Set this variable to
2914 .Dq Li auto
2915 to let the daemon detect it, or
2916 select one from the following list if the automatic detection fails.
2917 .Pp
2918 If the mouse is attached to the PS/2 mouse port, choose
2919 .Dq Li auto
2920 or
2921 .Dq Li ps/2 ,
2922 regardless of the brand and model of the mouse.
2923 Likewise, if the
2924 mouse is attached to the bus mouse port, choose
2925 .Dq Li auto
2926 or
2927 .Dq Li busmouse .
2928 All other protocols are for serial mice and will not work with
2929 the PS/2 and bus mice.
2930 If this is a USB mouse,
2931 .Dq Li auto
2932 is the only protocol type which will work.
2933 .Pp
2934 .Bl -tag -width ".Li x10mouseremote" -compact
2935 .It Li microsoft
2936 Microsoft mouse (serial)
2937 .It Li intellimouse
2938 Microsoft IntelliMouse (serial)
2939 .It Li mousesystems
2940 Mouse systems Corp.\& mouse (serial)
2941 .It Li mmseries
2942 MM Series mouse (serial)
2943 .It Li logitech
2944 Logitech mouse (serial)
2945 .It Li busmouse
2946 A bus mouse
2947 .It Li mouseman
2948 Logitech MouseMan and TrackMan (serial)
2949 .It Li glidepoint
2950 ALPS GlidePoint (serial)
2951 .It Li thinkingmouse
2952 Kensington ThinkingMouse (serial)
2953 .It Li ps/2
2954 PS/2 mouse
2955 .It Li mmhittab
2956 MM HitTablet (serial)
2957 .It Li x10mouseremote
2958 X10 MouseRemote (serial)
2959 .It Li versapad
2960 Interlink VersaPad (serial)
2961 .El
2962 .Pp
2963 Even if the mouse is not in the above list, it may be compatible
2964 with one in the list.
2965 Refer to the manual page for
2966 .Xr moused 8
2967 for compatibility information.
2968 .Pp
2969 It should also be noted that while this is enabled, any
2970 other client of the mouse (such as an X server) should access
2971 the mouse through the virtual mouse device,
2972 .Pa /dev/sysmouse ,
2973 and configure it as a
2974 .Dq Li sysmouse
2975 type mouse, since all
2976 mouse data is converted to this single canonical format when
2977 using
2978 .Xr moused 8 .
2979 If the client program does not support the
2980 .Dq Li sysmouse
2981 type,
2982 specify the
2983 .Dq Li mousesystems
2984 type.
2985 It is the second preferred type.
2986 .It Va moused_port
2987 .Pq Vt str
2988 If
2989 .Va moused_enable
2990 is set to
2991 .Dq Li YES ,
2992 this is the actual port the mouse is on.
2993 It might be
2994 .Pa /dev/cuad0
2995 for a COM1 serial mouse,
2996 .Pa /dev/psm0
2997 for a PS/2 mouse or
2998 .Pa /dev/mse0
2999 for a bus mouse, for example.
3000 .It Va moused_flags
3001 .Pq Vt str
3002 If
3003 .Va moused_flags
3004 is set, its value is used as an additional set of flags to pass to the
3005 .Xr moused 8
3006 daemon.
3007 .It Va "moused_" Ns Ar XXX Ns Va "_flags"
3008 When
3009 .Va moused_nondefault_enable
3010 is enabled, and a
3011 .Xr moused 8
3012 daemon is started for a non-default port, the
3013 .Va "moused_" Ns Ar XXX Ns Va "_flags"
3014 set of options has precedence over and replaces the default
3015 .Va moused_flags
3016 (where
3017 .Ar XXX
3018 is the name of the non-default port, i.e.,\&
3019 .Ar ums0 ) .
3020 By setting
3021 .Va "moused_" Ns Ar XXX Ns Va "_flags"
3022 it is possible to set up a different set of default flags for each
3023 .Xr moused 8
3024 instance.
3025 For example, you can use
3026 .Dq Li "-3"
3027 for the default
3028 .Va moused_flags
3029 to make your laptop's touchpad more comfortable to use,
3030 but an empty set of options for
3031 .Va moused_ums0_flags
3032 when your
3033 .Xr usb 4
3034 mouse has three or more buttons.
3035 .It Va mousechar_start
3036 .Pq Vt int
3037 If set to
3038 .Dq Li NO ,
3039 the default mouse cursor character range
3040 .Li 0xd0 Ns - Ns Li 0xd3
3041 is used,
3042 otherwise the range start is set
3043 to
3044 .Ar value
3045 character, see
3046 .Xr vidcontrol 1 .
3047 Use if the default range is occupied in the language code table.
3048 .It Va allscreens_flags
3049 .Pq Vt str
3050 If set,
3051 .Xr vidcontrol 1
3052 is run with these options for each of the virtual terminals
3053 .Pq Pa /dev/ttyv* .
3054 For example,
3055 .Dq Fl m Cm on
3056 will enable the mouse pointer on all virtual terminals
3057 if
3058 .Va moused_enable
3059 is set to
3060 .Dq Li YES .
3061 .It Va allscreens_kbdflags
3062 .Pq Vt str
3063 If set,
3064 .Xr kbdcontrol 1
3065 is run with these options for each of the virtual terminals
3066 .Pq Pa /dev/ttyv* .
3067 For example,
3068 .Dq Fl h Li 200
3069 will set the
3070 .Xr syscons 4
3071 scrollback (history) buffer to 200 lines.
3072 .It Va cron_enable
3073 .Pq Vt bool
3074 If set to
3075 .Dq Li YES ,
3076 run the
3077 .Xr cron 8
3078 daemon at system boot time.
3079 .It Va cron_program
3080 .Pq Vt str
3081 Path to
3082 .Xr cron 8
3083 (default
3084 .Pa /usr/sbin/cron ) .
3085 .It Va cron_flags
3086 .Pq Vt str
3087 If
3088 .Va cron_enable
3089 is set to
3090 .Dq Li YES ,
3091 these are the flags to pass to
3092 .Xr cron 8 .
3093 .It Va cron_dst
3094 .Pq Vt bool
3095 If set to
3096 .Dq Li YES ,
3097 enable the special handling of transitions to and from the
3098 Daylight Saving Time in
3099 .Xr cron 8
3100 (equivalent to using the flag
3101 .Fl s ) .
3102 .It Va lpd_program
3103 .Pq Vt str
3104 Path to
3105 .Xr lpd 8
3106 (default
3107 .Pa /usr/sbin/lpd ) .
3108 .It Va lpd_enable
3109 .Pq Vt bool
3110 If set to
3111 .Dq Li YES ,
3112 run the
3113 .Xr lpd 8
3114 daemon at system boot time.
3115 .It Va lpd_flags
3116 .Pq Vt str
3117 If
3118 .Va lpd_enable
3119 is set to
3120 .Dq Li YES ,
3121 these are the flags to pass to the
3122 .Xr lpd 8
3123 daemon.
3124 .It Va chkprintcap_enable
3125 .Pq Vt bool
3126 If set to
3127 .Dq Li YES ,
3128 run the
3129 .Xr chkprintcap 8
3130 command before starting the
3131 .Xr lpd 8
3132 daemon.
3133 .It Va chkprintcap_flags
3134 .Pq Vt str
3135 If
3136 .Va lpd_enable
3137 and
3138 .Va chkprintcap_enable
3139 are set to
3140 .Dq Li YES ,
3141 these are the flags to pass to the
3142 .Xr chkprintcap 8
3143 program.
3144 The default is
3145 .Dq Li -d ,
3146 which causes missing directories to be created.
3147 .It Va mta_start_script
3148 .Pq Vt str
3149 This variable specifies the full path to the script to run to start
3150 a mail transfer agent.
3151 The default is
3152 .Pa /etc/rc.sendmail .
3153 The
3154 .Va sendmail_*
3155 variables which
3156 .Pa /etc/rc.sendmail
3157 uses are documented in the
3158 .Xr rc.sendmail 8
3159 manual page.
3160 .It Va dumpdev
3161 .Pq Vt str
3162 Indicates the device (usually a swap partition) to which a crash dump
3163 should be written in the event of a system crash.
3164 If the value of this variable is
3165 .Dq Li AUTO ,
3166 the first suitable swap device listed in
3167 .Pa /etc/fstab
3168 will be used as dump device.
3169 Otherwise, the value of this variable is passed as the argument to
3170 .Xr dumpon 8 .
3171 To disable crash dumps, set this variable to
3172 .Dq Li NO .
3173 .It Va dumpdir
3174 .Pq Vt str
3175 When the system reboots after a crash and a crash dump is found on the
3176 device specified by the
3177 .Va dumpdev
3178 variable,
3179 .Xr savecore 8
3180 will save that crash dump and a copy of the kernel to the directory
3181 specified by the
3182 .Va dumpdir
3183 variable.
3184 The default value is
3185 .Pa /var/crash .
3186 Set to
3187 .Dq Li NO
3188 to not run
3189 .Xr savecore 8
3190 at boot time when
3191 .Va dumpdir
3192 is set.
3193 .It Va savecore_flags
3194 .Pq Vt str
3195 If crash dumps are enabled, these are the flags to pass to the
3196 .Xr savecore 8
3197 utility.
3198 .It Va quota_enable
3199 .Pq Vt bool
3200 Set to
3201 .Dq Li YES
3202 to turn on user and group disk quotas on system startup via the
3203 .Xr quotaon 8
3204 command for all file systems marked as having quotas enabled in
3205 .Pa /etc/fstab .
3206 The kernel must be built with
3207 .Cd "options QUOTA"
3208 for disk quotas to function.
3209 .It Va check_quotas
3210 .Pq Vt bool
3211 Set to
3212 .Dq Li YES
3213 to enable user and group disk quota checking via the
3214 .Xr quotacheck 8
3215 command.
3216 .It Va quotacheck_flags
3217 .Pq Vt str
3218 If
3219 .Va quota_enable
3220 is set to
3221 .Dq Li YES ,
3222 and
3223 .Va check_quotas
3224 is set to
3225 .Dq Li YES ,
3226 these are the flags to pass to the
3227 .Xr quotacheck 8
3228 utility.
3229 The default is
3230 .Dq Li "-a" ,
3231 which checks quotas for all file systems with quotas enabled in
3232 .Pa /etc/fstab .
3233 .It Va quotaon_flags
3234 .Pq Vt str
3235 If
3236 .Va quota_enable
3237 is set to
3238 .Dq Li YES ,
3239 these are the flags to pass to the
3240 .Xr quotaon 8
3241 utility.
3242 The default is
3243 .Dq Li "-a" ,
3244 which enables quotas for all file systems with quotas enabled in
3245 .Pa /etc/fstab .
3246 .It Va quotaoff_flags
3247 .Pq Vt str
3248 If
3249 .Va quota_enable
3250 is set to
3251 .Dq Li YES ,
3252 these are the flags to pass to the
3253 .Xr quotaoff 8
3254 utility when shutting down the quota system.
3255 The default is
3256 .Dq Li "-a" ,
3257 which disables quotas for all file systems with quotas enabled in
3258 .Pa /etc/fstab .
3259 .It Va accounting_enable
3260 .Pq Vt bool
3261 Set to
3262 .Dq Li YES
3263 to enable system accounting through the
3264 .Xr accton 8
3265 facility.
3266 .It Va ibcs2_enable
3267 .Pq Vt bool
3268 Set to
3269 .Dq Li YES
3270 to enable iBCS2 (SCO) binary emulation at system initial boot
3271 time.
3272 .It Va ibcs2_loaders
3273 .Pq Vt str
3274 If not set to
3275 .Dq Li NO
3276 and if
3277 .Va ibcs2_enable
3278 is set to
3279 .Dq Li YES ,
3280 this specifies a list of additional iBCS2 loaders to enable.
3281 .It Va linux_enable
3282 .Pq Vt bool
3283 Set to
3284 .Dq Li YES
3285 to enable Linux/ELF binary emulation at system initial
3286 boot time.
3287 .It Va svr4_enable
3288 .Pq Vt bool
3289 If set to
3290 .Dq Li YES ,
3291 enable SysVR4 emulation at boot time.
3292 .It Va sysvipc_enable
3293 .Pq Vt bool
3294 If set to
3295 .Dq Li YES ,
3296 load System V IPC primitives at boot time.
3297 .It Va clear_tmp_enable
3298 .Pq Vt bool
3299 Set to
3300 .Dq Li YES
3301 to have
3302 .Pa /tmp
3303 cleaned at startup.
3304 .It Va clear_tmp_X
3305 .Pq Vt bool
3306 Set to
3307 .Dq Li NO
3308 to disable removing of X11 lock files,
3309 and the removal and (secure) recreation
3310 of the various socket directories for X11
3311 related programs.
3312 .It Va ldconfig_paths
3313 .Pq Vt str
3314 Set to the list of shared library paths to use with
3315 .Xr ldconfig 8 .
3316 NOTE:
3317 .Pa /usr/lib
3318 will always be added first, so it need not appear in this list.
3319 .It Va ldconfig32_paths
3320 .Pq Vt str
3321 Set to the list of 32-bit compatibility shared library paths to
3322 use with
3323 .Xr ldconfig 8 .
3324 .It Va ldconfig_paths_aout
3325 .Pq Vt str
3326 Set to the list of shared library paths to use with
3327 .Xr ldconfig 8
3328 legacy
3329 .Xr a.out 5
3330 support.
3331 .It Va ldconfig_insecure
3332 .Pq Vt bool
3333 The
3334 .Xr ldconfig 8
3335 utility normally refuses to use directories
3336 which are writable by anyone except root.
3337 Set this variable to
3338 .Dq Li YES
3339 to disable that security check during system startup.
3340 .It Va ldconfig_local_dirs
3341 .Pq Vt str
3342 Set to the list of local
3343 .Xr ldconfig 8
3344 directories.
3345 The names of all files in the directories listed will be
3346 passed as arguments to
3347 .Xr ldconfig 8 .
3348 .It Va ldconfig_local32_dirs
3349 .Pq Vt str
3350 Set to the list of local 32-bit compatibility
3351 .Xr ldconfig 8
3352 directories.
3353 The names of all files in the directories listed will be
3354 passed as arguments to
3355 .Dq Nm ldconfig Fl 32 .
3356 .It Va kern_securelevel_enable
3357 .Pq Vt bool
3358 Set to
3359 .Dq Li YES
3360 to set the kernel security level at system startup.
3361 .It Va kern_securelevel
3362 .Pq Vt int
3363 The kernel security level to set at startup.
3364 The allowed range of
3365 .Ar value
3366 ranges from \-1 (the compile time default) to 3 (the
3367 most secure).
3368 See
3369 .Xr security 7
3370 for the list of possible security levels and their effect
3371 on system operation.
3372 .It Va sshd_program
3373 .Pq Vt str
3374 Path to the SSH server program
3375 .Pa ( /usr/sbin/sshd
3376 is the default).
3377 .It Va sshd_enable
3378 .Pq Vt bool
3379 Set to
3380 .Dq Li YES
3381 to start
3382 .Xr sshd 8
3383 at system boot time.
3384 .It Va sshd_flags
3385 .Pq Vt str
3386 If
3387 .Va sshd_enable
3388 is set to
3389 .Dq Li YES ,
3390 these are the flags to pass to the
3391 .Xr sshd 8
3392 daemon.
3393 .It Va ftpd_program
3394 .Pq Vt str
3395 Path to the FTP server program
3396 .Pa ( /usr/libexec/ftpd
3397 is the default).
3398 .It Va ftpd_enable
3399 .Pq Vt bool
3400 Set to
3401 .Dq Li YES
3402 to start
3403 .Xr ftpd 8
3404 as a stand-alone daemon at system boot time.
3405 .It Va ftpd_flags
3406 .Pq Vt str
3407 If
3408 .Va ftpd_enable
3409 is set to
3410 .Dq Li YES ,
3411 these are the additional flags to pass to the
3412 .Xr ftpd 8
3413 daemon.
3414 .It Va watchdogd_enable
3415 .Pq Vt bool
3416 If set to
3417 .Dq Li YES ,
3418 start the
3419 .Xr watchdogd 8
3420 daemon at boot time.
3421 This requires that the kernel have been compiled with a
3422 .Xr watchdog 4
3423 compatible device.
3424 .It Va watchdogd_flags
3425 .Pq Vt str
3426 If
3427 .Va watchdogd_enable
3428 is set to
3429 .Dq Li YES ,
3430 these are the flags passed to the
3431 .Xr watchdogd 8
3432 daemon.
3433 .It Va devfs_rulesets
3434 .Pq Vt str
3435 List of files containing sets of rules for
3436 .Xr devfs 8 .
3437 .It Va devfs_system_ruleset
3438 .Pq Vt str
3439 Rule name(s) to apply to the system
3440 .Pa /dev
3441 itself.
3442 .It Va devfs_set_rulesets
3443 .Pq Vt str
3444 Pairs of already-mounted
3445 .Pa dev
3446 directories and rulesets that should be applied to them.
3447 For example: /mount/dev=ruleset_name
3448 .It Va devfs_load_rulesets
3449 .Pq Vt bool
3450 If set, always load the default rulesets listed in
3451 .Va devfs_rulesets .
3452 .It Va performance_cx_lowest
3453 .Pq Vt str
3454 CPU idle state to use while on AC power.
3455 The string
3456 .Dq Li LOW
3457 indicates that
3458 .Xr acpi 4
3459 should use the lowest power state available while
3460 .Dq Li HIGH
3461 indicates that the lowest latency state (less power savings) should be used.
3462 .It Va performance_cpu_freq
3463 .Pq Vt str
3464 CPU clock frequency to use while on AC power.
3465 The string
3466 .Dq Li LOW
3467 indicates that
3468 .Xr cpufreq 4
3469 should use the lowest frequency available while
3470 .Dq Li HIGH
3471 indicates that the highest frequency (less power savings) should be used.
3472 .It Va economy_cx_lowest
3473 .Pq Vt str
3474 CPU idle state to use when off AC power.
3475 The string
3476 .Dq Li LOW
3477 indicates that
3478 .Xr acpi 4
3479 should use the lowest power state available while
3480 .Dq Li HIGH
3481 indicates that the lowest latency state (less power savings) should be used.
3482 .It Va economy_cpu_freq
3483 .Pq Vt str
3484 CPU clock frequency to use when off AC power.
3485 The string
3486 .Dq Li LOW
3487 indicates that
3488 .Xr cpufreq 4
3489 should use the lowest frequency available while
3490 .Dq Li HIGH
3491 indicates that the highest frequency (less power savings) should be used.
3492 .It Va jail_enable
3493 .Pq Vt bool
3494 If set to
3495 .Dq Li NO ,
3496 any configured jails will not be started.
3497 .It Va jail_list
3498 .Pq Vt str
3499 A space separated list of names for jails.
3500 This is purely a configuration aid to help identify and
3501 configure multiple jails.
3502 The names specified in this list will be used to
3503 identify settings common to an instance of a jail,
3504 and should contain alphanumeric characters only.
3505 The literal jail name of
3506 .Dq Li 0
3507 .Pq zero
3508 is not allowed.
3509 .Pp
3510 Assuming that the jail in question was named
3511 .Li vjail ,
3512 you would have the following dependent variables:
3513 .Bd -literal
3514 jail_vjail_hostname="jail.example.com"
3515 jail_vjail_ip="192.0.2.100"
3516 jail_vjail_rootdir="/var/jails/vjail/root"
3517 .Ed
3518 .Pp
3519 .It Va jail_flags
3520 .Pq Vt str
3521 Unset by default.
3522 When set, use as default value for
3523 .Va jail_ Ns Ao Ar jname Ac Ns Va _flags
3524 for every jail in
3525 .Va jail_list .
3526 .It Va jail_interface
3527 .Pq Vt str
3528 Unset by default.
3529 When set, use as default value for
3530 .Va jail_ Ns Ao Ar jname Ac Ns Va _interface
3531 for every jail in
3532 .Va jail_list .
3533 .It Va jail_fstab
3534 .Pq Vt str
3535 Unset by default.
3536 When set, use as default value for
3537 .Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
3538 for every jail in
3539 .Va jail_list .
3540 .It Va jail_mount_enable
3541 .Pq Vt bool
3542 Set to
3543 .Dq Li NO
3544 by default.
3545 When set to
3546 .Dq Li YES ,
3547 sets
3548 .Va jail_ Ns Ao Ar jname Ac Ns Va _mount_enable
3549 to
3550 .Dq Li YES
3551 by default for every jail in
3552 .Va jail_list .
3553 .It Va jail_devfs_ruleset
3554 .Pq Vt str
3555 Unset by default.
3556 When set, sets
3557 .Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_ruleset
3558 to given value for every jail in
3559 .Va jail_list .
3560 .It Va jail_devfs_enable
3561 .Pq Vt bool
3562 Set to
3563 .Dq Li NO
3564 by default.
3565 When set to
3566 .Dq Li YES ,
3567 sets
3568 .Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_enable
3569 to
3570 .Dq Li YES
3571 by default for every jail in
3572 .Va jail_list .
3573 .It Va jail_fdescfs_enable
3574 .Pq Vt bool
3575 Set to
3576 .Dq Li NO
3577 by default.
3578 When set to
3579 .Dq Li YES ,
3580 sets
3581 .Va jail_ Ns Ao Ar jname Ac Ns Va _fdescfs_enable
3582 to
3583 .Dq Li YES
3584 by default for every jail in
3585 .Va jail_list .
3586 .It Va jail_procfs_enable
3587 .Pq Vt bool
3588 Set to
3589 .Dq Li NO
3590 by default.
3591 When set to
3592 .Dq Li YES ,
3593 sets
3594 .Va jail_ Ns Ao Ar jname Ac Ns Va _fdescfs_enable
3595 to
3596 .Dq Li YES
3597 by default for every jail in
3598 .Va jail_list .
3599 .It Va jail_exec_prestart Ns Aq Ar N
3600 .Pq Vt str
3601 Unset by default.
3602 When set, use as default value for
3603 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_prestart Ns Aq Ar N
3604 for every jail in
3605 .Va jail_list .
3606 .It Va jail_exec_start
3607 .Pq Vt str
3608 Unset by default.
3609 When set, use as default value for
3610 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_start
3611 for every jail in
3612 .Va jail_list .
3613 .It Va jail_exec_afterstart Ns Aq Ar N
3614 .Pq Vt str
3615 Unset by default.
3616 When set, use as default value for
3617 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_afterstart Ns Aq Ar N
3618 for every jail in
3619 .Va jail_list .
3620 .It Va jail_exec_poststart Ns Aq Ar N
3621 .Pq Vt str
3622 Unset by default.
3623 When set, use as default value for
3624 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_poststart Ns Aq Ar N
3625 for every jail in
3626 .Va jail_list .
3627 .It Va jail_exec_prestop Ns Aq Ar N
3628 .Pq Vt str
3629 Unset by default.
3630 When set, use as default value for
3631 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_prestop Ns Aq Ar N
3632 for every jail in
3633 .Va jail_list .
3634 .It Va jail_exec_stop
3635 Unset by default.
3636 When set, use as default value for
3637 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_stop
3638 for every jail in
3639 .Va jail_list .
3640 .It Va jail_exec_poststop Ns Aq Ar N
3641 .Pq Vt str
3642 Unset by default.
3643 When set, use as default value for
3644 .Va jail_ Ns Ao Ar jname Ac Ns Va _exec_poststop Ns Aq Ar N
3645 for every jail in
3646 .Va jail_list .
3647 .It Va jail_ Ns Ao Ar jname Ac Ns Va _rootdir
3648 .Pq Vt str
3649 Unset by default.
3650 Set to the root directory used by jail
3651 .Va jname .
3652 .It Va jail_ Ns Ao Ar jname Ac Ns Va _hostname
3653 .Pq Vt str
3654 Unset by default.
3655 Set to the fully qualified domain name (FQDN) assigned to jail
3656 .Va jname .
3657 .It Va jail_ Ns Ao Ar jname Ac Ns Va _ip
3658 .Pq Vt str
3659 Unset by default.
3660 Set to the (primary) IPv4 and/or IPv6 address(es) assigned to the jail.
3661 The argument can be a sole address or a comma separated list of addresses.
3662 Additionally each address can be prefixed by the name of an interface
3663 followed by a pipe to overwrite
3664 .Va jail_ Ns Ao Ar jname Ac Ns Va _interface
3665 or
3666 .Va jail_interface
3667 and/or suffixed by a netmask, prefixlen or prefix.
3668 In case no netmask, prefixlen or prefix is given,
3669 .Sq /32
3670 will be used for IPv4 and
3671 .Sq /128
3672 will be used for an IPv6 address.
3673 If no address is given for the jail then the jail will be started with
3674 no networking support.
3675 .It Va jail_ Ns Ao Ar jname Ac Ns Va _ip_multi Ns Aq Ar n
3676 .Pq Vt str
3677 Unset by default.
3678 Set additional IPv4 and/or IPv6 address(es) assigned to the jail.
3679 The sequence starts with
3680 .Dq Li _multi0
3681 and the numbers have to be strictly ascending.
3682 These entries follow the same syntax as their primary
3683 .Va jail_ Ns Ao Ar jname Ac Ns Va _ip
3684 entry.
3685 The order of the entries can be important as the first address for
3686 each address family found will be the primary address of the jail.
3687 See
3688 .Va ip-addresses
3689 option in
3690 .Xr jail 8
3691 for more details.
3692 .It Va jail_ Ns Ao Ar jname Ac Ns Va _flags
3693 .Pq Vt str
3694 Set to
3695 .Dq Li -l -U root
3696 by default.
3697 These are flags to pass to
3698 .Xr jail 8 .
3699 .It Va jail_ Ns Ao Ar jname Ac Ns Va _interface
3700 .Pq Vt str
3701 Unset by default.
3702 When set, sets the interface to use when setting IP address alias.
3703 Note that the alias is created at jail startup and removed at jail shutdown.
3704 .It Va jail_ Ns Ao Ar jname Ac Ns Va _fib
3705 .Pq Vt str
3706 Unset by default.
3707 When set, the jail is started with the specified forwarding table (sometimes
3708 referred to as a routing table) via
3709 .Xr setfib 1 .
3710 .It Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
3711 .Pq Vt str
3712 Set to
3713 .Pa /etc/fstab. Ns Aq Ar jname
3714 by default.
3715 This is the file system information file to use for jail
3716 .Va jname .
3717 .It Va jail_ Ns Ao Ar jname Ac Ns Va _mount_enable
3718 .Pq Vt bool
3719 Set to
3720 .Dq Li NO
3721 by default.
3722 When set to
3723 .Dq Li YES ,
3724 mount all file systems from
3725 .Va jail_ Ns Ao Ar jname Ac Ns Va _fstab
3726 at jail startup.
3727 .It Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_ruleset
3728 .Pq Vt str
3729 Unset by default.
3730 When set, defines the device file system ruleset file to use for jail
3731 .Va jname .
3732 .It Va jail_ Ns Ao Ar jname Ac Ns Va _devfs_enable
3733 .Pq Vt bool
3734 Set to
3735 .Dq Li NO
3736 by default.
3737 When set to
3738 .Dq Li YES ,
3739 mount the device file system inside jail
3740 .Ar jname
3741 at jail startup.
3742 .It Va jail_ Ns Ao Ar jname Ac Ns Va _fdescfs_enable
3743 .Pq Vt bool
3744 Set to
3745 .Dq Li NO
3746 by default.
3747 When set to
3748 .Dq Li YES ,
3749 mount the file-descriptor file system inside jail
3750 .Ar jname
3751 at jail startup.
3752 .It Va jail_ Ns Ao Ar jname Ac Ns Va _procfs_enable
3753 .Pq Vt bool
3754 Set to
3755 .Dq Li NO
3756 by default.
3757 When set to
3758 .Dq Li YES ,
3759 mount the process file system inside jail
3760 .Ar jname
3761 at jail startup.
3762 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_prestart Ns Aq Ar N
3763 .Pq Vt str
3764 Unset by default.
3765 This is the command run as
3766 .Ar N Ns
3767 th command
3768 before jail startup, where
3769 .Ar N
3770 is 0, 1, and so on.
3771 It is run outside the jail.
3772 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_start
3773 .Pq Vt str
3774 Set to
3775 .Dq Li /bin/sh /etc/rc
3776 by default.
3777 This is the command executed in a jail at jail startup.
3778 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_afterstart Ns Aq Ar N
3779 .Pq Vt str
3780 Unset by default.
3781 This is the command run as
3782 .Ar N Ns
3783 th command
3784 in a jail
3785 after jail startup, where
3786 .Ar N
3787 is 1, 2, and so on.
3788 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_poststart Ns Aq Ar N
3789 .Pq Vt str
3790 Unset by default.
3791 This is the command run as
3792 .Ar N Ns
3793 th command
3794 after jail startup, where
3795 .Ar N
3796 is 0, 1, and so on.
3797 It is run outside the jail.
3798 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_prestop Ns Aq Ar N
3799 .Pq Vt str
3800 Unset by default.
3801 This is the command run as
3802 .Ar N Ns
3803 th command
3804 before jail shutdown, where
3805 .Ar N
3806 is 0, 1, and so on.
3807 It is run outside the jail.
3808 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_stop
3809 .Pq Vt str
3810 Set to
3811 .Dq Li /bin/sh /etc/rc.shutdown
3812 by default.
3813 This is the command executed in a jail at jail shutdown.
3814 .It Va jail_ Ns Ao Ar jname Ac Ns Va _exec_poststop Ns Aq Ar N
3815 .Pq Vt str
3816 Unset by default.
3817 This is the command run as
3818 .Ar N Ns
3819 th command
3820 after jail shutdown, where
3821 .Ar N
3822 is 0, 1, and so on.
3823 It is run outside the jail.
3824 .It Va jail_set_hostname_allow
3825 .Pq Vt bool
3826 If set to
3827 .Dq Li NO ,
3828 do not allow the root user in a jail to set its hostname.
3829 .It Va jail_socket_unixiproute_only
3830 .Pq Vt bool
3831 If set to
3832 .Dq Li YES ,
3833 do not allow any sockets,
3834 besides UNIX/IP/route sockets,
3835 to be used within a jail.
3836 .It Va jail_sysvipc_allow
3837 .Pq Vt bool
3838 If set to
3839 .Dq Li YES ,
3840 allow applications within a jail to use System V IPC.
3841 .\" -----------------------------------------------------
3842 .It Va harvest_interrupt
3843 .Pq Vt bool
3844 Set to
3845 .Dq Li YES
3846 to use hardware interrupts as an entropy source.
3847 Refer to
3848 .Xr random 4
3849 for more information.
3850 .It Va harvest_ethernet
3851 .Pq Vt bool
3852 Set to
3853 .Dq Li YES
3854 to use LAN traffic as an entropy source.
3855 Refer to
3856 .Xr random 4
3857 for more information.
3858 .It Va harvest_p_to_p
3859 .Pq Vt bool
3860 Set to
3861 .Dq Li YES
3862 to use serial line traffic as an entropy source.
3863 Refer to
3864 .Xr random 4
3865 for more information.
3866 .It Va entropy_dir
3867 .Pq Vt str
3868 Set to
3869 .Dq Li NO
3870 to disable caching entropy via
3871 .Xr cron 8 .
3872 Otherwise set to the directory used to store entropy files in.
3873 .It Va entropy_file
3874 .Pq Vt str
3875 Set to
3876 .Dq Li NO
3877 to disable caching entropy through reboots.
3878 Otherwise set to the filename used to store cached entropy through
3879 reboots.
3880 This file should be located on the root file system to seed the
3881 .Xr random 4
3882 device as early as possible in the boot process.
3883 .It Va entropy_save_sz
3884 .Pq Vt int
3885 Size of the entropy cache files saved by
3886 .Nm save-entropy
3887 periodically.
3888 .It Va entropy_save_num
3889 .Pq Vt int
3890 Number of entropy cache files to save by
3891 .Nm save-entropy
3892 periodically.
3893 .It Va ipsec_enable
3894 .Pq Vt bool
3895 Set to
3896 .Dq Li YES
3897 to run
3898 .Xr setkey 8
3899 on
3900 .Va ipsec_file
3901 at boot time.
3902 .It Va ipsec_file
3903 .Pq Vt str
3904 Configuration file for
3905 .Xr setkey 8 .
3906 .It Va dmesg_enable
3907 .Pq Vt bool
3908 Set to
3909 .Dq Li YES
3910 to save
3911 .Xr dmesg 8
3912 to
3913 .Pa /var/run/dmesg.boot
3914 on boot.
3915 .It Va rcshutdown_timeout
3916 .Pq Vt int
3917 If set, start a watchdog timer in the background which will terminate
3918 .Pa rc.shutdown
3919 if
3920 .Xr shutdown 8
3921 has not completed within the specified time (in seconds).
3922 Notice that in addition to this soft timeout,
3923 .Xr init 8
3924 also applies a hard timeout for the execution of
3925 .Pa rc.shutdown .
3926 This is configured via
3927 .Xr sysctl 8
3928 variable
3929 .Va kern.init_shutdown_timeout
3930 and defaults to 120 seconds.
3931 Setting the value of
3932 .Va rcshutdown_timeout
3933 to more than 120 seconds will have no effect until the
3934 .Xr sysctl 8
3935 variable
3936 .Va kern.init_shutdown_timeout
3937 is also increased.
3938 .It Va virecover_enable
3939 .Pq Vt bool
3940 Set to
3941 .Dq Li NO
3942 to prevent the system from trying to
3943 recover pre-maturely terminated
3944 .Xr vi 1
3945 sessions.
3946 .It Va ugidfw_enable
3947 .Pq Vt bool
3948 Set to
3949 .Dq Li YES
3950 to load the
3951 .Xr mac_bsdextended 4
3952 module upon system initialization and load a default
3953 ruleset file.
3954 .It Va bsdextended_script
3955 .Pq Vt str
3956 The default
3957 .Xr mac_bsdextended 4
3958 ruleset file to load.
3959 The default value of this variable is
3960 .Pa /etc/rc.bsdextended .
3961 .It Va newsyslog_enable
3962 .Pq Vt bool
3963 If set to
3964 .Dq Li YES ,
3965 run
3966 .Xr newsyslog 8
3967 command at startup.
3968 .It Va newsyslog_flags
3969 .Pq Vt str
3970 If
3971 .Va newsyslog_enable
3972 is set to
3973 .Dq Li YES ,
3974 these are the flags to pass to the
3975 .Xr newsyslog 8
3976 program.
3977 The default is
3978 .Dq Li -CN ,
3979 which causes log files flagged with a
3980 .Cm C
3981 to be created.
3982 .It Va mdconfig_md Ns Aq Ar X
3983 .Pq Vt str
3984 Arguments to
3985 .Xr mdconfig 8
3986 for
3987 .Xr md 4
3988 device
3989 .Ar X .
3990 At minimum a
3991 .Fl t Ar type
3992 must be specified and either a
3993 .Fl s Ar size
3994 for malloc or swap backed
3995 .Xr md 4
3996 devices or a
3997 .Fl f Ar file
3998 for vnode backed
3999 .Xr md 4
4000 devices.
4001 Note that
4002 .Va mdconfig_md Ns Aq Ar X
4003 variables are evaluated until one variable is unset or null.
4004 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _newfs
4005 .Pq Vt str
4006 Optional arguments passed to
4007 .Xr newfs 8
4008 to initialize
4009 .Xr md 4
4010 device
4011 .Ar X .
4012 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _owner
4013 .Pq Vt str
4014 An ownership specification passed to
4015 .Xr chown 8
4016 after the specified
4017 .Xr md 4
4018 device
4019 .Ar X
4020 has been mounted.
4021 Both the
4022 .Xr md 4
4023 device and the mount point will be changed.
4024 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _perms
4025 .Pq Vt str
4026 A mode string passed to
4027 .Xr chmod 1
4028 after the specified
4029 .Xr md 4
4030 device
4031 .Ar X
4032 has been mounted.
4033 Both the
4034 .Xr md 4
4035 device and the mount point will be changed.
4036 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _files
4037 .Pq Vt str
4038 Files to be copied to the mount point of the
4039 .Xr md 4
4040 device
4041 .Ar X
4042 after it has been mounted.
4043 .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _cmd
4044 .Pq Vt str
4045 Command to execute after the specified
4046 .Xr md 4
4047 device
4048 .Ar X
4049 has been mounted.
4050 Note that the command is passed to
4051 .Ic eval
4052 and that both
4053 .Va _dev
4054 and
4055 .Va _mp
4056 variables can be used to reference respectively the
4057 .Xr md 4
4058 device and the mount point.
4059 Assuming that the
4060 .Xr md 4
4061 device is
4062 .Li md0 ,
4063 one could set the following:
4064 .Bd -literal
4065 mdconfig_md0_cmd="tar xfzC /var/file.tgz \e${_mp}"
4066 .Ed
4067 .It Va autobridge_interfaces
4068 .Pq Vt str
4069 Set to the list of bridge interfaces that will have newly arriving interfaces
4070 checked against to be automatically added.
4071 If not set to
4072 .Dq Li NO
4073 then for each whitespace separated
4074 .Ar element
4075 in the value, a
4076 .Va autobridge_ Ns Aq Ar element
4077 variable is assumed to exist which has a whitespace separated list of interface
4078 names to match, these names can use wildcards.
4079 For example:
4080 .Bd -literal
4081 autobridge_interfaces="bridge0"
4082 autobridge_bridge0="tap* dc0 vlan[345]"
4083 .Ed
4084 .It Va mixer_enable
4085 .Pq Vt bool
4086 If set to
4087 .Dq Li YES ,
4088 enable support for sound mixer.
4089 .It Va hcsecd_enable
4090 .Pq Vt bool
4091 If set to
4092 .Dq Li YES ,
4093 enable Bluetooth security daemon.
4094 .It Va hcsecd_config
4095 .Pq Vt str
4096 Configuration file for
4097 .Xr hcsecd 8 .
4098 Default
4099 .Pa /etc/bluetooth/hcsecd.conf .
4100 .It Va sdpd_enable
4101 .Pq Vt bool
4102 If set to
4103 .Dq Li YES ,
4104 enable Bluetooth Service Discovery Protocol daemon.
4105 .It Va sdpd_control
4106 .Pq Vt str
4107 Path to
4108 .Xr sdpd 8
4109 control socket.
4110 Default
4111 .Pa /var/run/sdp .
4112 .It Va sdpd_groupname
4113 .Pq Vt str
4114 Sets
4115 .Xr sdpd 8
4116 group to run as after it initializes.
4117 Default
4118 .Dq Li nobody .
4119 .It Va sdpd_username
4120 .Pq Vt str
4121 Sets
4122 .Xr sdpd 8
4123 user to run as after it initializes.
4124 Default
4125 .Dq Li nobody .
4126 .It Va bthidd_enable
4127 .Pq Vt bool
4128 If set to
4129 .Dq Li YES ,
4130 enable Bluetooth Human Interface Device daemon.
4131 .It Va bthidd_config
4132 .Pq Vt str
4133 Configuration file for
4134 .Xr bthidd 8 .
4135 Default
4136 .Pa /etc/bluetooth/bthidd.conf .
4137 .It Va bthidd_hids
4138 .Pq Vt str
4139 Path to a file, where
4140 .Xr bthidd 8
4141 will store information about known HID devices.
4142 Default
4143 .Pa /var/db/bthidd.hids .
4144 .It Va rfcomm_pppd_server_enable
4145 .Pq Vt bool
4146 If set to
4147 .Dq Li YES ,
4148 enable Bluetooth RFCOMM PPP wrapper daemon.
4149 .It Va rfcomm_pppd_server_profile
4150 .Pq Vt str
4151 The name of the profile to use from
4152 .Pa /etc/ppp/ppp.conf .
4153 Multiple profiles can be specified here.
4154 Also used to specify per-profile overrides.
4155 When the profile name contains any of the characters
4156 .Dq Li .-/+
4157 they are translated to
4158 .Dq Li _
4159 for the proposes of the override variable names.
4160 .It Va rfcomm_pppd_server_ Ns Ao Ar profile Ac Ns _bdaddr
4161 .Pq Vt str
4162 Overrides local address to listen on.
4163 By default
4164 .Xr rfcomm_pppd 8
4165 will listen on
4166 .Dq Li ANY
4167 address.
4168 The address can be specified as BD_ADDR or name.
4169 .It Va rfcomm_pppd_server_ Ns Ao Ar profile Ac Ns _channel
4170 .Pq Vt str
4171 Overrides local RFCOMM channel to listen on.
4172 By default
4173 .Xr rfcomm_pppd 8
4174 will listen on RFCOMM channel 1.
4175 Must set properly if multiple profiles used in the same time.
4176 .It Va rfcomm_pppd_server_ Ns Ao Ar profile Ac Ns _register_sp
4177 .Pq Vt bool
4178 Tells
4179 .Xr rfcomm_pppd 8
4180 if it should register Serial Port service on the specified RFCOMM channel.
4181 Default
4182 .Dq Li NO .
4183 .It Va rfcomm_pppd_server_ Ns Ao Ar profile Ac Ns _register_dun
4184 .Pq Vt bool
4185 Tells
4186 .Xr rfcomm_pppd 8
4187 if it should register Dial-Up Networking service on the specified
4188 RFCOMM channel.
4189 Default
4190 .Dq Li NO .
4191 .It Va ubthidhci_enable
4192 .Pq Vt bool
4193 If set to
4194 .Dq Li YES ,
4195 change the USB Bluetooth controller from HID mode to HCI mode.
4196 You also need to specify the location of USB Bluetooth controller with the
4197 .Va ubthidhci_busnum
4198 and
4199 .Va ubthidhci_addr
4200 variables.
4201 .It Va ubthidhci_busnum
4202 Bus number where the USB Bluetooth controller is located.
4203 Check the output of
4204 .Xr usbconfig 8
4205 on your system to find this information.
4206 .It Va ubthidhci_addr
4207 Bus address of the USB Bluetooth controller.
4208 Check the output of
4209 .Xr usbconfig 8
4210 on your system to find this information.
4211 .It Va netwait_enable
4212 .Pq Vt bool
4213 If set to
4214 .Dq Li YES ,
4215 delays the start of network-reliant services until
4216 .Va netwait_if
4217 is up and ICMP packets to a destination defined in
4218 .Va netwait_ip
4219 are flowing.
4220 Link state is examined first, followed by
4221 .Dq Li pinging
4222 an IP address to verify network usability.
4223 If no destination can be reached or timeouts are exceeded,
4224 network services are started anyway with no guarantee that
4225 the network is usable.
4226 Use of this variable requires both
4227 .Va netwait_ip
4228 and
4229 .Va netwait_if
4230 to be set.
4231 .It Va netwait_ip
4232 .Pq Vt str
4233 Empty by default.
4234 This variable contains a space-delimited list of IP addresses to
4235 .Xr ping 8 .
4236 DNS hostnames should not be used as resolution is not guaranteed
4237 to be functional at this point.
4238 If multiple IP addresses are specified,
4239 each will be tried until one is successful or the list is exhausted.
4240 .It Va netwait_timeout
4241 .Pq Vt int
4242 Indicates the total number of seconds to perform a
4243 .Dq Li ping
4244 against each IP address in
4245 .Va netwait_ip ,
4246 at a rate of one ping per second.
4247 If any of the pings are successful,
4248 full network connectivity is considered reliable.
4249 The default is 60.
4250 .It Va netwait_if
4251 .Pq Vt str
4252 Empty by default.
4253 Defines the name of the network interface on which watch for link.
4254 .Xr ifconfig 8
4255 is used to monitor the interface, looking for
4256 .Dq Li status: no carrier .
4257 Once gone, the link is considered up.
4258 This can be a
4259 .Xr vlan 4
4260 interface if desired.
4261 .It Va netwait_if_timeout
4262 .Pq Vt int
4263 Defines the total number of seconds to wait for link to become usable,
4264 polled at a 1-second interval.
4265 The default is 30.
4266 .El
4267 .Sh FILES
4268 .Bl -tag -width ".Pa /etc/defaults/rc.conf" -compact
4269 .It Pa /etc/defaults/rc.conf
4270 .It Pa /etc/rc.conf
4271 .It Pa /etc/rc.conf.local
4272 .El
4273 .Sh SEE ALSO
4274 .Xr catman 1 ,
4275 .Xr chmod 1 ,
4276 .Xr gdb 1 ,
4277 .Xr info 1 ,
4278 .Xr kbdcontrol 1 ,
4279 .Xr makewhatis 1 ,
4280 .Xr sh 1 ,
4281 .Xr vi 1 ,
4282 .Xr vidcontrol 1 ,
4283 .Xr bridge 4 ,
4284 .Xr dummynet 4 ,
4285 .Xr ip 4 ,
4286 .Xr ipf 4 ,
4287 .Xr ipfw 4 ,
4288 .Xr ipnat 4 ,
4289 .Xr kld 4 ,
4290 .Xr pf 4 ,
4291 .Xr pflog 4 ,
4292 .Xr pfsync 4 ,
4293 .Xr tcp 4 ,
4294 .Xr udp 4 ,
4295 .Xr exports 5 ,
4296 .Xr fstab 5 ,
4297 .Xr ipf 5 ,
4298 .Xr ipnat 5 ,
4299 .Xr motd 5 ,
4300 .Xr newsyslog.conf 5 ,
4301 .Xr pf.conf 5 ,
4302 .Xr security 7 ,
4303 .Xr accton 8 ,
4304 .Xr amd 8 ,
4305 .Xr apm 8 ,
4306 .Xr atm 8 ,
4307 .Xr bthidd 8 ,
4308 .Xr chkprintcap 8 ,
4309 .Xr chown 8 ,
4310 .Xr cron 8 ,
4311 .Xr devfs 8 ,
4312 .Xr dhclient 8 ,
4313 .Xr ftpd 8 ,
4314 .Xr geli 8 ,
4315 .Xr hcsecd 8 ,
4316 .Xr ifconfig 8 ,
4317 .Xr inetd 8 ,
4318 .Xr ipf 8 ,
4319 .Xr ipfw 8 ,
4320 .Xr ipnat 8 ,
4321 .Xr jail 8 ,
4322 .Xr kldxref 8 ,
4323 .Xr lpd 8 ,
4324 .Xr mdconfig 8 ,
4325 .Xr mdmfs 8 ,
4326 .Xr mixer 8 ,
4327 .Xr mountd 8 ,
4328 .Xr moused 8 ,
4329 .Xr mrouted 8 ,
4330 .Xr named 8 ,
4331 .Xr newfs 8 ,
4332 .Xr newsyslog 8 ,
4333 .Xr nfsd 8 ,
4334 .Xr ntpd 8 ,
4335 .Xr ntpdate 8 ,
4336 .Xr pfctl 8 ,
4337 .Xr pflogd 8 ,
4338 .Xr ping 8 ,
4339 .Xr powerd 8 ,
4340 .Xr quotacheck 8 ,
4341 .Xr quotaon 8 ,
4342 .Xr rc 8 ,
4343 .Xr rc.sendmail 8 ,
4344 .Xr rfcomm_pppd 8 ,
4345 .Xr route 8 ,
4346 .Xr routed 8 ,
4347 .Xr rpcbind 8 ,
4348 .Xr rpc.lockd 8 ,
4349 .Xr rpc.statd 8 ,
4350 .Xr rwhod 8 ,
4351 .Xr savecore 8 ,
4352 .Xr sdpd 8 ,
4353 .Xr sshd 8 ,
4354 .Xr swapon 8 ,
4355 .Xr sysctl 8 ,
4356 .Xr syslogd 8 ,
4357 .Xr timed 8 ,
4358 .Xr usbconfig 8 ,
4359 .Xr wlandebug 8 ,
4360 .Xr yp 8 ,
4361 .Xr ypbind 8 ,
4362 .Xr ypserv 8 ,
4363 .Xr ypset 8
4364 .Sh HISTORY
4365 The
4366 .Nm
4367 file appeared in
4368 .Fx 2.2.2 .
4369 .Sh AUTHORS
4370 .An Jordan K. Hubbard .