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