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