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