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