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