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