Fix typo.
[dragonfly.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: src/share/man/man5/rc.conf.5,v 1.197 2003/07/28 13:56:00 mbr Exp $
26 .\" $DragonFly: src/share/man/man5/rc.conf.5,v 1.33 2007/05/27 23:17:47 swildner Exp $
27 .Dd May 11, 2007
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 installer.
42 .Pp
43 The purpose of
44 .Nm
45 is not to run commands or perform system startup actions
46 directly.
47 Instead, it is included by the
48 various generic startup scripts in
49 .Pa /etc
50 which conditionalize their
51 internal actions according to the settings found there.
52 .Pp
53 The
54 .Pa /etc/rc.conf
55 file is included from the file
56 .Pa /etc/defaults/rc.conf ,
57 which specifies the default settings for all the available options.
58 Options need only be specified in
59 .Pa /etc/rc.conf
60 when the system administrator wishes to override these defaults.
61 The file
62 .Pa /etc/rc.conf.local
63 is used to override settings in
64 .Pa /etc/rc.conf
65 for historical reasons.
66 See the
67 .Va rc_conf_files
68 variable below.
69 .Pp
70 The following list provides a name and short description for each
71 variable that can be set in the
72 .Nm
73 file:
74 .Bl -tag -width indent-two
75 .It Va rc_debug
76 .Pq Vt bool
77 If set to
78 .Dq Li YES ,
79 enable output of debug messages from rc scripts.
80 This variable can be helpful in diagnosing mistakes when
81 editing or integrating new scripts.
82 Beware that this produces copious output to the terminal and
83 .Xr syslog 3 .
84 .It Va rc_info
85 .Pq Vt bool
86 If set to
87 .Dq Li NO ,
88 disable informational messages from the rc scripts.
89 Informational messages are displayed when
90 a condition that is not serious enough to warrant a warning or
91 an error occurs.
92 .It Va swapfile
93 .Pq Vt str
94 If set to
95 .Dq Li NO ,
96 no swapfile is installed, otherwise the value is used as the full
97 pathname to a file to use for additional swap space.
98 .It Va apm_enable
99 .Pq Vt bool
100 If set to
101 .Dq Li YES ,
102 enable support for Automatic Power Management with
103 the
104 .Xr apm 8
105 command.
106 .It Va apmd_enable
107 .Pq Vt bool
108 Run
109 .Xr apmd 8
110 to handle APM event from userland.
111 This also enables support for APM.
112 .It Va apmd_flags
113 .Pq Vt str
114 If
115 .Va apmd_enable
116 is set to
117 .Dq Li YES ,
118 these are the flags to pass to the
119 .Xr apmd 8
120 daemon.
121 .It Va battd_enable
122 Enable
123 .Xr battd 8
124 to monitor the status of batteries present in the system.
125 This also enables support for APM.
126 .It Va battd_flags
127 .Pq Vt str
128 If
129 .Va battd_enable
130 is set to
131 .Dq Li YES ,
132 these are the flags to pass to the
133 .Xr battd 8
134 daemon.
135 .It Va pccard_ifconfig
136 .Pq Vt str
137 List of arguments to be passed to
138 .Xr ifconfig 8
139 at boot time or on
140 insertion of the card (e.g.\&
141 .Dq Cm inet Li 192.168.1.1 Cm netmask Li 255.255.255.0
142 for a fixed address or
143 .Dq Li DHCP
144 for a DHCP client).
145 .It Va pccard_ether_delay
146 .Pq Vt str
147 Set the delay before starting
148 .Xr dhclient 8
149 in the
150 .Pa /etc/pccard_ether
151 script.
152 This defaults to 5 seconds to work around a bug in the
153 .Xr ed 4
154 driver which can lead to system hangs when using some newer
155 .Xr ed 4
156 based cards.
157 .It Va removable_interfaces
158 .Pq Vt str
159 List of removable network interfaces to be supported by
160 .Pa /etc/pccard_ether .
161 .It Va local_startup
162 .Pq Vt str
163 List of directories to search for startup script files.
164 .It Va script_name_sep
165 .Pq Vt str
166 The field separator to use for breaking down the list of startup script files
167 into individual filenames.
168 The default is a space.
169 It is not necessary to change this unless there are startup scripts with names
170 containing spaces.
171 .It Va hostname
172 .Pq Vt str
173 The fully qualified domain name (FQDN) of this host on the network.
174 This should almost certainly be set to something meaningful, even if
175 there is no network connection.
176 If
177 .Xr dhclient 8
178 is used to set the hostname via DHCP,
179 this variable should be set to an empty string.
180 .It Va ipv6_enable
181 .Pq Vt bool
182 Enable support for IPv6 networking.
183 Note that this requires that the kernel have been compiled with
184 .Cd "options INET6" .
185 .It Va nisdomainname
186 .Pq Vt str
187 The NIS domain name of this host, or
188 .Dq Li NO
189 if NIS is not used.
190 .It Va dhclient_program
191 .Pq Vt str
192 Path to the DHCP client program
193 .Pa ( /sbin/dhclient ,
194 the ISC DHCP client,
195 is the default).
196 .It Va dhclient_flags
197 .Pq Vt str
198 Additional flags to pass to the DHCP client program.
199 For the ISC DHCP client, see the
200 .Xr dhclient 8
201 manpage for a description of the command line options available.
202 .It Va background_dhclient
203 .Pq Vt bool
204 Set to
205 .Dq Li YES
206 to start the DHCP client in background.
207 This can cause trouble with applications depending on
208 a working network, but it will provide a faster startup
209 in many cases.
210 .It Va dhcpd_enable
211 .Pq Vt bool
212 Set to
213 .Dq Li YES
214 to run
215 .Xr dhcpd 8
216 at system boot time.
217 .It Va dhcrelay_enable
218 .Pq Vt bool
219 Set to
220 .Dq Li YES
221 to run
222 .Xr dhcrelay 8
223 .It Va firewall_enable
224 .Pq Vt bool
225 Set to
226 .Dq Li YES
227 to load firewall rules at startup.
228 If the kernel was not built with
229 .Cd "options IPFIREWALL" ,
230 the
231 .Pa ipfw.ko
232 kernel module will be loaded.
233 See also
234 .Va ipfilter_enable .
235 .It Va ipv6_firewall_enable
236 .Pq Vt bool
237 The IPv6 equivalent of
238 .Va firewall_enable .
239 Set to
240 .Dq Li YES
241 to load IPv6 firewall rules at startup.
242 If the kernel was not built with
243 .Cd "options IPV6FIREWALL" ,
244 the
245 .Pa ip6fw.ko
246 kernel module will be loaded.
247 .It Va firewall_script
248 .Pq Vt str
249 This variable specifies the full path to the firewall script to run.
250 The default is
251 .Pa /etc/rc.firewall .
252 .It Va ipv6_firewall_script
253 .Pq Vt str
254 The IPv6 equivalent of
255 .Va firewall_script .
256 .It Va firewall_type
257 .Pq Vt str
258 Names the firewall type from the selection in
259 .Pa /etc/rc.firewall ,
260 or the file which contains the local firewall ruleset.
261 Valid selections from
262 .Pa /etc/rc.firewall
263 are:
264 .Pp
265 .Bl -tag -width ".Li simple" -compact
266 .It Li open
267 unrestricted IP access
268 .It Li closed
269 all IP services disabled, except via
270 .Dq Li lo0
271 .It Li client
272 basic protection for a workstation
273 .It Li simple
274 basic protection for a LAN.
275 .El
276 .Pp
277 If a filename is specified, the full path
278 must be given.
279 .It Va ipv6_firewall_type
280 .Pq Vt str
281 The IPv6 equivalent of
282 .Va firewall_type .
283 .It Va firewall_quiet
284 .Pq Vt bool
285 Set to
286 .Dq Li YES
287 to disable the display of firewall rules on the console during boot.
288 .It Va ipv6_firewall_quiet
289 .Pq Vt bool
290 The IPv6 equivalent of
291 .Va firewall_quiet .
292 .It Va firewall_logging
293 .Pq Vt bool
294 Set to
295 .Dq Li YES
296 to enable firewall event logging.
297 This is equivalent to the
298 .Dv IPFIREWALL_VERBOSE
299 kernel option.
300 .It Va ipv6_firewall_logging
301 .Pq Vt bool
302 The IPv6 equivalent of
303 .Va firewall_logging .
304 .It Va firewall_flags
305 .Pq Vt str
306 Flags passed to
307 .Xr ipfw 8
308 if
309 .Va firewall_type
310 specifies a filename.
311 .It Va ipv6_firewall_flags
312 .Pq Vt str
313 The IPv6 equivalent of
314 .Va firewall_flags .
315 .It Va natd_program
316 .Pq Vt str
317 Path to
318 .Xr natd 8 .
319 .It Va natd_enable
320 .Pq Vt bool
321 Set to
322 .Dq Li YES
323 to enable
324 .Xr natd 8 .
325 .Va firewall_enable
326 must also be set to
327 .Dq Li YES ,
328 and
329 .Xr divert 4
330 sockets must be enabled in the kernel.
331 .It Va natd_interface
332 .Pq Vt str
333 This is the name of the public interface on which
334 .Xr natd 8
335 should run.
336 The interface may be given as an interface name or as an IP address.
337 .It Va natd_flags
338 .Pq Vt str
339 Additional
340 .Xr natd 8
341 flags should be placed here.
342 The
343 .Fl n
344 or
345 .Fl a
346 flag is automatically added with the above
347 .Va natd_interface
348 as an argument.
349 .\" ----- ipfilter_enable setting --------------------------------
350 .It Va ipfilter_enable
351 .Pq Vt bool
352 Set to
353 .Dq Li NO
354 by default.
355 Setting this to
356 .Dq Li YES
357 enables
358 .Xr ipf 8
359 packet filtering.
360 .Pp
361 Typical usage will require putting
362 .Bd -literal
363 ipfilter_enable="YES"
364 ipnat_enable="YES"
365 ipmon_enable="YES"
366 ipfs_enable="YES"
367 .Ed
368 .Pp
369 into
370 .Pa /etc/rc.conf
371 and editing
372 .Pa /etc/ipf.rules
373 and
374 .Pa /etc/ipnat.rules
375 appropriately.
376 .Pp
377 Note that
378 .Va ipfilter_enable
379 and
380 .Va ipnat_enable
381 can be enabled independently.
382 .Va ipmon_enable
383 and
384 .Va ipfs_enable
385 both require at least one of
386 .Va ipfilter_enable
387 and
388 .Va ipnat_enable
389 to be enabled.
390 .Pp
391 Having
392 .Bd -literal
393 options IPFILTER
394 options IPFILTER_LOG
395 options IPFILTER_DEFAULT_BLOCK
396 .Ed
397 .Pp
398 in the kernel configuration file is a good idea, too.
399 .\" ----- ipfilter_program setting ------------------------------
400 .It Va ipfilter_program
401 .Pq Vt str
402 Path to
403 .Xr ipf 8
404 (default
405 .Pa /sbin/ipf ) .
406 .\" ----- ipfilter_rules setting --------------------------------
407 .It Va ipfilter_rules
408 .Pq Vt str
409 Set to
410 .Pa /etc/ipf.rules
411 by default.
412 This variable contains the name of the filter rule definition file.
413 The file is expected to be readable for the
414 .Xr ipf 8
415 command to execute.
416 .\" ----- ipv6_ipfilter_rules setting ---------------------------
417 .It Va ipv6_ipfilter_rules
418 .Pq Vt str
419 Set to
420 .Pa /etc/ipf6.rules
421 by default.
422 This variable contains the IPv6 filter rule definition file.
423 The file is expected to be readable for the
424 .Xr ipf 8
425 command to execute.
426 .\" ----- ipfilter_flags setting --------------------------------
427 .It Va ipfilter_flags
428 .Pq Vt str
429 Empty by default.
430 This variable contains flags passed to the
431 .Xr ipf 8
432 program.
433 .\" ----- ipnat_enable setting ----------------------------------
434 .It Va ipnat_enable
435 .Pq Vt bool
436 Set to
437 .Dq Li NO
438 by default.
439 Set it to
440 .Dq Li YES
441 to enable
442 .Xr ipnat 8
443 network address translation.
444 See
445 .Va ipfilter_enable
446 for a detailed discussion.
447 .\" ----- ipnat_program setting ---------------------------------
448 .It Va ipnat_program
449 .Pq Vt str
450 Path to
451 .Xr ipnat 8
452 (default
453 .Pa /sbin/ipnat ) .
454 .\" ----- ipnat_rules setting -----------------------------------
455 .It Va ipnat_rules
456 .Pq Vt str
457 Set to
458 .Pa /etc/ipnat.rules
459 by default.
460 This variable contains the name of the file
461 holding the network address translation definition.
462 This file is expected to be readable for the
463 .Xr ipnat 8
464 command to execute.
465 .\" ----- ipnat_flags setting -----------------------------------
466 .It Va ipnat_flags
467 .Pq Vt str
468 Empty by default.
469 This variable contains flags passed to the
470 .Xr ipnat 8
471 program.
472 .\" ----- ipmon_enable setting ----------------------------------
473 .It Va ipmon_enable
474 .Pq Vt bool
475 Set to
476 .Dq Li NO
477 by default.
478 Set it to
479 .Dq Li YES
480 to enable
481 .Xr ipmon 8
482 monitoring (logging
483 .Xr ipf 8
484 and
485 .Xr ipnat 8
486 events).
487 Setting this variable needs setting
488 .Va ipfilter_enable
489 or
490 .Va ipnat_enable
491 too.
492 See
493 .Va ipfilter_enable
494 for a detailed discussion.
495 .\" ----- ipmon_program setting ---------------------------------
496 .It Va ipmon_program
497 .Pq Vt str
498 Path to
499 .Xr ipmon 8
500 (default
501 .Pa /sbin/ipmon ) .
502 .\" ----- ipmon_flags setting -----------------------------------
503 .It Va ipmon_flags
504 .Pq Vt str
505 Set to
506 .Dq Li -Ds
507 by default.
508 This variable contains flags passed to the
509 .Xr ipmon 8
510 program.
511 Another typical example would be
512 .Dq Fl D Pa /var/log/ipflog
513 to have
514 .Xr ipmon 8
515 log directly to a file bypassing
516 .Xr syslogd 8 .
517 Make sure to adjust
518 .Pa /etc/newsyslog.conf
519 in such case like this:
520 .Bd -literal
521 /var/log/ipflog  640  10  100  *  Z  /var/run/ipmon.pid
522 .Ed
523 .\" ----- ipfs_enable setting -----------------------------------
524 .It Va ipfs_enable
525 .Pq Vt bool
526 Set to
527 .Dq Li NO
528 by default.
529 Set it to
530 .Dq Li YES
531 to enable
532 .Xr ipfs 8
533 saving the filter and NAT state tables during shutdown
534 and reloading them during startup again.
535 Setting this variable needs setting
536 .Va ipfilter_enable
537 or
538 .Va ipnat_enable
539 to
540 .Dq Li YES
541 too.
542 See
543 .Va ipfilter_enable
544 for a detailed discussion.
545 Note that if
546 .Va kern_securelevel
547 is set to 3,
548 .Va ipfs_enable
549 cannot be used
550 because the raised securelevel will prevent
551 .Xr ipfs 8
552 from saving the state tables at shutdown time.
553 .\" ----- ipfs_program setting ----------------------------------
554 .It Va ipfs_program
555 .Pq Vt str
556 Path to
557 .Xr ipfs 8
558 (default
559 .Pa /sbin/ipfs ) .
560 .\" ----- ipfs_flags setting ------------------------------------
561 .It Va ipfs_flags
562 .Pq Vt str
563 Empty by default.
564 This variable contains flags passed to the
565 .Xr ipfs 8
566 program.
567 .\" ----- end of added ipf hook ---------------------------------
568 .It Va tcp_extensions
569 .Pq Vt bool
570 Set to
571 .Dq Li YES
572 by default.
573 Setting this to
574 .Dq Li NO
575 disables certain TCP options as described by
576 .Rs
577 .%T "RFC 1323"
578 .Re
579 Setting this to
580 .Dq Li NO
581 might help remedy such problems with connections as randomly hanging
582 or other weird behavior.
583 Some network devices are known
584 to be broken with respect to these options.
585 .It Va log_in_vain
586 .Pq Vt int
587 Set to 0 by default.
588 The
589 .Xr sysctl 8
590 variables,
591 .Va net.inet.tcp.log_in_vain
592 and
593 .Va net.inet.udp.log_in_vain ,
594 as described in
595 .Xr tcp 4
596 and
597 .Xr udp 4 ,
598 are set to the given value.
599 .It Va tcp_keepalive
600 .Pq Vt bool
601 Set to
602 .Dq Li YES
603 by default.
604 Setting to
605 .Dq Li NO
606 will disable probing idle TCP connections to verify that the
607 peer is still up and reachable.
608 .It Va tcp_drop_synfin
609 .Pq Vt bool
610 Set to
611 .Dq Li NO
612 by default.
613 Setting to
614 .Dq Li YES
615 will cause the kernel to ignore TCP frames that have both
616 the SYN and FIN flags set.
617 This prevents OS fingerprinting, but may
618 break some legitimate applications.
619 This option is only available if the
620 kernel was built with the
621 .Dv TCP_DROP_SYNFIN
622 option.
623 .It Va icmp_drop_redirect
624 .Pq Vt bool
625 Set to
626 .Dq Li NO
627 by default.
628 Setting to
629 .Dq Li YES
630 will cause the kernel to ignore ICMP REDIRECT packets.
631 Refer to
632 .Xr icmp 4
633 for more information.
634 .It Va icmp_log_redirect
635 .Pq Vt bool
636 Set to
637 .Dq Li NO
638 by default.
639 Setting to
640 .Dq Li YES
641 will cause the kernel to log ICMP REDIRECT packets.
642 Note that
643 the log messages are not rate-limited, so this option should only be used
644 for troubleshooting networks.
645 Refer to
646 .Xr icmp 4
647 for more information.
648 .It Va icmp_bmcastecho
649 .Pq Vt bool
650 Set to
651 .Dq Li YES
652 to respond to broadcast or multicast ICMP ping packets.
653 Refer to
654 .Xr icmp 4
655 for more information.
656 .It Va ip_portrange_first
657 .Pq Vt int
658 If not set to
659 .Dq Li NO ,
660 this is the first port in the default portrange.
661 Refer to
662 .Xr ip 4
663 for more information.
664 .It Va ip_portrange_last
665 .Pq Vt int
666 If not set to
667 .Dq Li NO ,
668 this is the last port in the default portrange.
669 Refer to
670 .Xr ip 4
671 for more information.
672 .It Va network_interfaces
673 .Pq Vt str
674 Set to the list of network interfaces to configure on this host.
675 For example, if the only network devices in the system are the loopback
676 device
677 .Pq Li lo0
678 and a NIC using the
679 .Xr ed 4
680 driver,
681 this could be set to
682 .Dq Li "lo0 ed0" .
683 An
684 .Va ifconfig_ Ns Aq Ar interface
685 variable is also assumed to exist for each value of
686 .Ar interface .
687 It is also possible to add IP alias entries here in cases where
688 multiple IP addresses registered against a single interface
689 are desired.
690 Assuming that the interface in question was
691 .Li ed0 ,
692 it might look
693 something like this:
694 .Bd -literal
695 ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
696 ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"
697 .Ed
698 .Pp
699 And so on.
700 For each
701 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
702 entry that is found,
703 its contents are passed to
704 .Xr ifconfig 8 .
705 Execution stops at the first unsuccessful access, so if
706 something like this is present:
707 .Bd -literal
708 ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff"
709 ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff"
710 ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff"
711 ifconfig_ed0_alias4="inet 127.0.0.254 netmask 0xffffffff"
712 .Ed
713 .Pp
714 Then note that alias4 would
715 .Em not
716 be added since the search would
717 stop with the missing alias3 entry.
718 .Pp
719 If the
720 .Pa /etc/start_if. Ns Aq Ar interface
721 file is present, it is read and executed by the
722 .Xr sh 1
723 interpreter
724 before configuring the interface as specified in the
725 .Va ifconfig_ Ns Aq Ar interface
726 and
727 .Va ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n
728 variables.
729 .Pp
730 It is possible to bring up an interface with DHCP by setting the
731 .Va ifconfig_ Ns Aq Ar interface
732 variable to
733 .Dq Li DHCP .
734 For instance, to initialize the
735 .Li ed0
736 device via DHCP,
737 it is possible to use something like:
738 .Bd -literal
739 ifconfig_ed0="DHCP"
740 .Ed
741 .It Va ipv6_network_interfaces
742 .Pq Vt str
743 This is the IPv6 equivalent of
744 .Va network_interfaces .
745 Instead of setting the ifconfig variables as
746 .Va ifconfig_ Ns Aq Ar interface
747 they should be set as
748 .Va ipv6_ifconfig_ Ns Aq Ar interface .
749 Aliases should be set as
750 .Va ipv6_ifconfig_ Ns Ao Ar interface Ac Ns Va _alias Ns Aq Ar n .
751 .Va ipv6_prefix_ Ns Aq Ar interface
752 does something.
753 Interfaces that do not have a
754 .Va ipv6_ifconfig_ Ns Aq Ar interface
755 setting will be auto configured by
756 .Xr rtsol 8
757 if the
758 .Va ipv6_gateway_enable
759 is set to
760 .Dq Li NO .
761 Note that the IPv6 networking code does not support the
762 .Pa /etc/start_if. Ns Aq Ar interface
763 files.
764 .It Va ipv6_default_interface
765 .Pq Vt str
766 If not set to
767 .Dq Li NO ,
768 this is the default output interface for scoped addresses.
769 Now this works only for IPv6 link local multicast addresses.
770 .It Va cloned_interfaces
771 .Pq Vt str
772 Set to the list of clonable network interfaces to create on this host.
773 Entries in
774 .Va cloned_interfaces
775 are automatically appended to
776 .Va network_interfaces
777 for configuration.
778 .It Va gif_interfaces
779 .Pq Vt str
780 Set to the list of
781 .Xr gif 4
782 tunnel interfaces to configure on this host.
783 A
784 .Va gifconfig_ Ns Aq Ar interface
785 variable is assumed to exist for each value of
786 .Ar interface .
787 The value of this variable is used to configure the link layer of the
788 tunnel according to the syntax of the
789 .Cm tunnel
790 option to
791 .Xr ifconfig 8 .
792 Additionally, this option ensures that each listed interface is created
793 via the
794 .Cm create
795 option to
796 .Xr ifconfig 8
797 before attempting to configure it.
798 .It Va sppp_interfaces
799 .Pq Vt str
800 Set to the list of
801 .Xr sppp 4
802 interfaces to configure on this host.
803 A
804 .Va spppconfig_ Ns Aq Ar interface
805 variable is assumed to exist for each value of
806 .Ar interface .
807 Each interface should also be configured by a general
808 .Va ifconfig_ Ns Aq Ar interface
809 setting.
810 Refer to
811 .Xr spppcontrol 8
812 for more information about available options.
813 .It Va ppp_enable
814 .Pq Vt bool
815 If set to
816 .Dq Li YES ,
817 run the
818 .Xr ppp 8
819 daemon.
820 .It Va ppp_mode
821 .Pq Vt str
822 Mode in which to run the
823 .Xr ppp 8
824 daemon.
825 Accepted modes are
826 .Dq Li auto ,
827 .Dq Li ddial ,
828 .Dq Li direct
829 and
830 .Dq Li dedicated .
831 See the manual for a full description.
832 .It Va ppp_nat
833 .Pq Vt bool
834 If set to
835 .Dq Li YES ,
836 enables network address translation.
837 Used in conjunction with
838 .Va gateway_enable
839 allows hosts on private network addresses access to the Internet using
840 this host as a network address translating router.
841 .It Va ppp_profile
842 .Pq Vt str
843 The name of the profile to use from
844 .Pa /etc/ppp/ppp.conf .
845 .It Va ppp_user
846 .Pq Vt str
847 The name of the user under which
848 .Xr ppp 8
849 should be started.
850 By
851 default,
852 .Xr ppp 8
853 is started as
854 .Dq Li root .
855 .It Va rc_conf_files
856 .Pq Vt str
857 This option is used to specify a list of files that will override
858 the settings in
859 .Pa /etc/defaults/rc.conf .
860 The files will be read in the order in which they are specified and should
861 include the full path to the file.
862 By default, the files specified are
863 .Pa /etc/rc.conf
864 and
865 .Pa /etc/rc.conf.local
866 .It Va fsck_y_enable
867 .Pq Vt bool
868 If set to
869 .Dq Li YES ,
870 .Xr fsck 8
871 will be run with the
872 .Fl y
873 flag if the initial preen
874 of the file systems fails.
875 .It Va netfs_types
876 .Pq Vt str
877 List of file system types that are network-based.
878 This list should generally not be modified by end users.
879 Use
880 .Va extra_netfs_types
881 instead.
882 .It Va extra_netfs_types
883 .Pq Vt str
884 If set to something other than
885 .Dq Li NO
886 (the default),
887 this variable extends the list of file system types
888 for which automatic mounting at startup by
889 .Xr rc 8
890 should be delayed until the network is initialized.
891 It should contain
892 a whitespace-separated list of network file system descriptor pairs,
893 each consisting of a file system type as passed to
894 .Xr mount 8
895 and a human-readable, one-word description,
896 joined with a colon
897 .Pq Ql \&: .
898 Extending the default list in this way is only necessary
899 when third party file system types are used.
900 .It Va syslogd_enable
901 .Pq Vt bool
902 If set to
903 .Dq Li YES ,
904 run the
905 .Xr syslogd 8
906 daemon.
907 .It Va syslogd_program
908 .Pq Vt str
909 Path to
910 .Xr syslogd 8
911 (default
912 .Pa /usr/sbin/syslogd ) .
913 .It Va syslogd_flags
914 .Pq Vt str
915 If
916 .Va syslogd_enable
917 is set to
918 .Dq Li YES ,
919 these are the flags to pass to
920 .Xr syslogd 8 .
921 .It Va inetd_enable
922 .Pq Vt bool
923 If set to
924 .Dq Li YES ,
925 run the
926 .Xr inetd 8
927 daemon.
928 .It Va inetd_program
929 .Pq Vt str
930 Path to
931 .Xr inetd 8
932 (default
933 .Pa /usr/sbin/inetd ) .
934 .It Va inetd_flags
935 .Pq Vt str
936 If
937 .Va inetd_enable
938 is set to
939 .Dq Li YES ,
940 these are the flags to pass to
941 .Xr inetd 8 .
942 .It Va named_rcng
943 .Pq Vt bool
944 If set to
945 .Dq Li YES
946 use new functionality provided in the
947 .Pa /etc/rc.d/named
948 script to facilitate a
949 .Xr chroot 8
950 instance of
951 .Xr named 8 .
952 This variable is experimental.
953 It may be removed or changed in the near future.
954 .It Va named_enable
955 .Pq Vt bool
956 If set to
957 .Dq Li YES ,
958 run the
959 .Xr named 8
960 daemon.
961 .It Va named_program
962 .Pq Vt str
963 Path to
964 .Xr named 8
965 (default
966 .Pa /usr/sbin/named ) .
967 .It Va named_flags
968 .Pq Vt str
969 If
970 .Va named_enable
971 is set to
972 .Dq Li YES ,
973 these are the flags to pass to
974 .Xr named 8 .
975 .It Va named_pidfile
976 .Pq Vt str
977 This is the default path to the
978 .Xr named 8
979 daemon's PID file.
980 Change it if you change the location in
981 .Pa /etc/namedb/named.conf .
982 .It Va named_chrootdir
983 .Pq Vt str
984 The root directory for a name server run in a
985 .Xr chroot 8
986 environment.
987 If left empty
988 .Xr named 8
989 will not be run in a
990 .Xr chroot 8
991 environment.
992 This variable has no effect if
993 .Va named_rcng
994 is not enabled.
995 This variable is experimental.
996 It may be removed or changed in the near future.
997 .It Va named_chroot_autoupdate
998 .Pq Vt bool
999 Set to
1000 .Dq Li NO
1001 to disable automatic syncing of libraries and
1002 other system files between the root file system and the
1003 .Xr chroot 8 .
1004 This variable has no effect if
1005 .Va named_rcng
1006 is not enabled.
1007 This variable is experimental.
1008 It may be removed or changed in the near future.
1009 .It Va named_symlink_enable
1010 .Pq Vt bool
1011 Set to
1012 .Dq Li NO
1013 to disable symlinking of
1014 .Va named_pidfile
1015 and
1016 .Pa /var/run/ndc
1017 into the
1018 .Xr chroot 8
1019 environment in which
1020 .Xr named 8
1021 is running.
1022 This variable has no effect if
1023 .Va named_rcng
1024 is not enabled.
1025 This variable is experimental.
1026 It may be removed or changed in the near future.
1027 .It Va kerberos5_server_enable
1028 .Pq Vt bool
1029 Set to
1030 .Dq Li YES
1031 to start a Kerberos 5 authentication server
1032 at boot time.
1033 .It Va kerberos5_server_program
1034 .Pq Vt str
1035 If
1036 .Va kerberos5_server_enable
1037 is set to
1038 .Dq Li YES
1039 this is the path to Kerberos 5 Authentication Server.
1040 .It Va kadmind5_server_enable
1041 .Pq Vt bool
1042 Set to
1043 .Dq Li YES
1044 to start
1045 .Xr kadmind 8 ,
1046 the Kerberos 5 Administration Daemon; set to
1047 .Dq Li NO
1048 on a slave server.
1049 .It Va kadmind5_server_program
1050 .Pq Vt str
1051 If
1052 .Va kadmind5_server_enable
1053 is set to
1054 .Dq Li YES
1055 this is the path to Kerberos 5 Administration Daemon.
1056 .It Va kpasswdd_server_enable
1057 .Pq Vt bool
1058 Set to
1059 .Dq Li YES
1060 to start
1061 .Xr kpasswdd 8 ,
1062 the Kerberos 5 Password-Changing Daemon; set to
1063 .Dq Li NO
1064 on a slave server.
1065 .It Va kpasswdd_server_program
1066 .Pq Vt str
1067 If
1068 .Va kpasswdd_server_enable
1069 is set to
1070 .Dq Li YES
1071 this is the path to Kerberos 5 Password-Changing Daemon.
1072 .It Va rwhod_enable
1073 .Pq Vt bool
1074 If set to
1075 .Dq Li YES ,
1076 run the
1077 .Xr rwhod 8
1078 daemon at boot time.
1079 .It Va rwhod_flags
1080 .Pq Vt str
1081 If
1082 .Va rwhod_enable
1083 is set to
1084 .Dq Li YES ,
1085 these are the flags to pass to it.
1086 .It Va amd_enable
1087 .Pq Vt bool
1088 If set to
1089 .Dq Li YES ,
1090 run the
1091 .Xr amd 8
1092 daemon at boot time.
1093 .It Va amd_flags
1094 .Pq Vt str
1095 If
1096 .Va amd_enable
1097 is set to
1098 .Dq Li YES ,
1099 these are the flags to pass to it.
1100 See the
1101 .Xr amd 8
1102 manpage for more information.
1103 .It Va amd_map_program
1104 .Pq Vt str
1105 If set,
1106 the specified program is run to get the list of
1107 .Xr amd 8
1108 maps.
1109 For example, if the
1110 .Xr amd 8
1111 maps are stored in NIS, one can set this to
1112 run
1113 .Xr ypcat 1
1114 to get a list of
1115 .Xr amd 8
1116 maps from the
1117 .Pa amd.master
1118 NIS map.
1119 .It Va update_motd
1120 .Pq Vt bool
1121 If set to
1122 .Dq Li YES ,
1123 .Pa /etc/motd
1124 will be updated at boot time to reflect the kernel release
1125 being run.
1126 If set to
1127 .Dq Li NO ,
1128 .Pa /etc/motd
1129 will not be updated.
1130 .It Va nfs_client_enable
1131 .Pq Vt bool
1132 If set to
1133 .Dq Li YES ,
1134 run the NFS client daemons at boot time.
1135 .It Va nfs_client_flags
1136 .Pq Vt str
1137 If
1138 .Va nfs_client_enable
1139 is set to
1140 .Dq Li YES ,
1141 these are the flags to pass to the
1142 .Xr nfsiod 8
1143 daemon.
1144 .It Va nfs_access_cache
1145 .Pq Vt int
1146 If
1147 .Va nfs_client_enable
1148 is set to
1149 .Dq Li YES ,
1150 this can be set to
1151 .Dq Li 0
1152 to disable NFS ACCESS RPC caching, or to the number of seconds for which
1153 NFS ACCESS
1154 results should be cached.
1155 A value of 2-10 seconds will substantially reduce network traffic for
1156 many NFS operations.  The default is 5 seconds.  Note that the attribute
1157 cache holds stat information only.  The NFS data cache is independent
1158 of the attribute cache and is only invalidated when the client detects that
1159 the server has modified the underlying file.  This value specifies a
1160 maximum timeout.  The NFS client will automatically use a shorter timeout
1161 for files which have been recently modified.
1162 .It Va nfs_neg_cache
1163 .Pq Vt int
1164 If
1165 .Va nfs_client_enable
1166 is set to
1167 .Dq Li YES ,
1168 this can be set to
1169 .Dq Li 0
1170 to disable the caching of NEGATIVE LOOKUPS (lookups of non-existent
1171 filenames), or to the number of seconds for which negative lookups should
1172 be cached.
1173 A value of 2-10 seconds will substantially reduce network
1174 traffic for many NFS operations, especially source code builds.  The
1175 default is 3 seconds.
1176 .It Va nfs_server_enable
1177 .Pq Vt bool
1178 If set to
1179 .Dq Li YES ,
1180 run the NFS server daemons at boot time.
1181 .It Va nfs_server_flags
1182 .Pq Vt str
1183 If
1184 .Va nfs_server_enable
1185 is set to
1186 .Dq Li YES ,
1187 these are the flags to pass to the
1188 .Xr nfsd 8
1189 daemon.
1190 .It Va mountd_enable
1191 .Pq Vt bool
1192 If set to
1193 .Dq Li YES ,
1194 and no
1195 .Va nfs_server_enable
1196 is set, start
1197 .Xr mountd 8 ,
1198 but not
1199 .Xr nfsd 8
1200 daemon.
1201 It is commonly needed to run CFS without real NFS used.
1202 .It Va mountd_flags
1203 .Pq Vt str
1204 If
1205 .Va mountd_enable
1206 is set to
1207 .Dq Li YES ,
1208 these are the flags to pass to the
1209 .Xr mountd 8
1210 daemon.
1211 .It Va weak_mountd_authentication
1212 .Pq Vt bool
1213 If set to
1214 .Dq Li YES ,
1215 allow services like PCNFSD to make non-privileged mount
1216 requests.
1217 .It Va nfs_reserved_port_only
1218 .Pq Vt bool
1219 If set to
1220 .Dq Li YES ,
1221 provide NFS services only on a secure port.
1222 .It Va nfs_bufpackets
1223 .Pq Vt int
1224 If set to a number, indicates the number of packets worth of
1225 socket buffer space to reserve on an NFS client.
1226 The kernel default is typically 4.
1227 Using a higher number may be
1228 useful on gigabit networks to improve performance.
1229 The minimum value is
1230 2 and the maximum is 64.
1231 .It Va rpc_umntall_enable
1232 .Pq Vt bool
1233 If set to
1234 .Dq Li YES
1235 (default) and we are also an NFS client, run
1236 .Xr rpc.umntall 8
1237 at boot time to clear out old mounts on remote servers.
1238 If set to
1239 .Dq Li NO
1240 then
1241 .Xr rpc.umntall 8
1242 will not be run at boot time.
1243 .It Va rpc_lockd_enable
1244 .Pq Vt bool
1245 If set to
1246 .Dq Li YES
1247 and also an NFS server, run
1248 .Xr rpc.lockd 8
1249 at boot time.
1250 .It Va rpc_statd_enable
1251 .Pq Vt bool
1252 If set to
1253 .Dq Li YES
1254 and also an NFS server, run
1255 .Xr rpc.statd 8
1256 at boot time.
1257 .It Va rpcbind_program
1258 .Pq Vt str
1259 Path to
1260 .Xr rpcbind 8
1261 (default
1262 .Pa /usr/sbin/rpcbind ) .
1263 .It Va rpcbind_enable
1264 .Pq Vt bool
1265 If set to
1266 .Dq Li YES ,
1267 run the
1268 .Xr rpcbind 8
1269 service at boot time.
1270 .It Va rpcbind_flags
1271 .Pq Vt str
1272 If
1273 .Va rpcbind_enable
1274 is set to
1275 .Dq Li YES ,
1276 these are the flags to pass to the
1277 .Xr rpcbind 8
1278 daemon.
1279 .It Va keyserv_enable
1280 .Pq Vt bool
1281 If set to
1282 .Dq Li YES ,
1283 run the
1284 .Xr keyserv 8
1285 daemon on boot for running Secure RPC.
1286 .It Va keyserv_flags
1287 .Pq Vt str
1288 If
1289 .Va keyserv_enable
1290 is set to
1291 .Dq Li YES ,
1292 these are the flags to pass to
1293 .Xr keyserv 8
1294 daemon.
1295 .It Va pppoed_enable
1296 .Pq Vt bool
1297 If set to
1298 .Dq Li YES ,
1299 run the
1300 .Xr pppoed 8
1301 daemon at boot time to provide PPP over Ethernet services.
1302 .It Va pppoed_provider
1303 .Pq Vt str
1304 .Xr pppoed 8
1305 listens to requests to this provider and ultimately runs
1306 .Xr ppp 8
1307 with a
1308 .Ar system
1309 argument of the same name.
1310 .It Va pppoed_flags
1311 .Pq Vt str
1312 Additional flags to pass to
1313 .Xr pppoed 8 .
1314 .It Va pppoed_interface
1315 .Pq Vt str
1316 The network interface to run
1317 .Xr pppoed 8
1318 on.
1319 This is mandatory when
1320 .Va pppoed_enable
1321 is set to
1322 .Dq Li YES .
1323 .It Va timed_enable
1324 .Pq Vt bool
1325 If set to
1326 .Dq Li YES ,
1327 run the
1328 .Xr timed 8
1329 service at boot time.
1330 This command is intended for networks of
1331 machines where a consistent
1332 .Dq "network time"
1333 for all hosts must be established.
1334 This is often useful in large NFS
1335 environments where time stamps on files are expected to be consistent
1336 network-wide.
1337 .It Va timed_flags
1338 .Pq Vt str
1339 If
1340 .Va timed_enable
1341 is set to
1342 .Dq Li YES ,
1343 these are the flags to pass to the
1344 .Xr timed 8
1345 service.
1346 .It Va ntpd_enable
1347 .Pq Vt bool
1348 If set to
1349 .Dq Li YES ,
1350 run the
1351 .Xr ntpd 8
1352 command at boot time.
1353 .It Va ntpd_program
1354 .Pq Vt str
1355 Path to
1356 .Xr ntpd 8
1357 (default
1358 .Pa /usr/sbin/ntpd ) .
1359 .It Va ntpd_flags
1360 .Pq Vt str
1361 If
1362 .Va ntpd_enable
1363 is set to
1364 .Dq Li YES ,
1365 these are the flags to pass to the
1366 .Xr ntpd 8
1367 daemon. Set to
1368 .Dq Li -s
1369 by default which sets the time immediately at startup if the
1370 local clock is off by more than 180 seconds. To prevent
1371 .Xr ntpd 8
1372 from doing this, set
1373 .Va ntpd_flags
1374 to
1375 .Dq Li -S .
1376 .It Va dntpd_enable
1377 .Pq Vt bool
1378 If set to
1379 .Dq Li YES ,
1380 run
1381 .Xr dntpd 8
1382 at system boot time.
1383 .It Va dntpd_program
1384 .Pq Vt str
1385 Path to
1386 .Xr dntpd 8
1387 (default
1388 .Pa /usr/sbin/dntpd ) .
1389 .It Va dntpd_flags
1390 .Pq Vt str
1391 If
1392 .Va dntpd_enable
1393 is set to
1394 .Dq Li YES ,
1395 these are the flags to pass to the
1396 .Xr dntpd 8
1397 daemon.
1398 .It Va nis_client_enable
1399 .Pq Vt bool
1400 If set to
1401 .Dq Li YES ,
1402 run the
1403 .Xr ypbind 8
1404 service at system boot time.
1405 .It Va nis_client_flags
1406 .Pq Vt str
1407 If
1408 .Va nis_client_enable
1409 is set to
1410 .Dq Li YES ,
1411 these are the flags to pass to the
1412 .Xr ypbind 8
1413 service.
1414 .It Va nis_ypset_enable
1415 .Pq Vt bool
1416 If set to
1417 .Dq Li YES ,
1418 run the
1419 .Xr ypset 8
1420 daemon at system boot time.
1421 .It Va nis_ypset_flags
1422 .Pq Vt str
1423 If
1424 .Va nis_ypset_enable
1425 is set to
1426 .Dq Li YES ,
1427 these are the flags to pass to the
1428 .Xr ypset 8
1429 daemon.
1430 .It Va nis_server_enable
1431 .Pq Vt bool
1432 If set to
1433 .Dq Li YES ,
1434 run the
1435 .Xr ypserv 8
1436 daemon at system boot time.
1437 .It Va nis_server_flags
1438 .Pq Vt str
1439 If
1440 .Va nis_server_enable
1441 is set to
1442 .Dq Li YES ,
1443 these are the flags to pass to the
1444 .Xr ypserv 8
1445 daemon.
1446 .It Va nis_ypxfrd_enable
1447 .Pq Vt bool
1448 If set to
1449 .Dq Li YES ,
1450 run the
1451 .Xr rpc.ypxfrd 8
1452 daemon at system boot time.
1453 .It Va nis_ypxfrd_flags
1454 .Pq Vt str
1455 If
1456 .Va nis_ypxfrd_enable
1457 is set to
1458 .Dq Li YES ,
1459 these are the flags to pass to the
1460 .Xr rpc.ypxfrd 8
1461 daemon.
1462 .It Va nis_yppasswdd_enable
1463 .Pq Vt bool
1464 If set to
1465 .Dq Li YES ,
1466 run the
1467 .Xr rpc.yppasswdd 8
1468 daemon at system boot time.
1469 .It Va nis_yppasswdd_flags
1470 .Pq Vt str
1471 If
1472 .Va nis_yppasswdd_enable
1473 is set to
1474 .Dq Li YES ,
1475 these are the flags to pass to the
1476 .Xr rpc.yppasswdd 8
1477 daemon.
1478 .It Va rpc_ypupdated_enable
1479 .Pq Vt bool
1480 If set to
1481 .Dq Li YES ,
1482 run the
1483 .Nm rpc.ypupdated
1484 daemon at system boot time.
1485 .It Va defaultrouter
1486 .Pq Vt str
1487 If not set to
1488 .Dq Li NO ,
1489 create a default route to this host name or IP address
1490 (use an IP address if this router is also required to get to the
1491 name server!).
1492 .It Va ipv6_defaultrouter
1493 .Pq Vt str
1494 The IPv6 equivalent of
1495 .Va defaultrouter .
1496 .It Va static_routes
1497 .Pq Vt str
1498 Set to the list of static routes that are to be added at system
1499 boot time.
1500 If not set to
1501 .Dq Li NO
1502 then for each whitespace separated
1503 .Ar element
1504 in the value, a
1505 .Va route_ Ns Aq Ar element
1506 variable is assumed to exist
1507 whose contents will later be passed to a
1508 .Dq Nm route Cm add
1509 operation.
1510 .It Va ipv6_static_routes
1511 .Pq Vt str
1512 The IPv6 equivalent of
1513 .Va static_routes .
1514 If not set to
1515 .Dq Li NO
1516 then for each whitespace separated
1517 .Ar element
1518 in the value, a
1519 .Va ipv6_route_ Ns Aq Ar element
1520 variable is assumed to exist
1521 whose contents will later be passed to a
1522 .Dq Nm route Cm add Fl inet6
1523 operation.
1524 .It Va gateway_enable
1525 .Pq Vt bool
1526 If set to
1527 .Dq Li YES ,
1528 configure host to act as an IP router, e.g. to forward packets
1529 between interfaces.
1530 .It Va ipv6_gateway_enable
1531 .Pq Vt bool
1532 The IPv6 equivalent of
1533 .Va gateway_enable .
1534 .It Va router_enable
1535 .Pq Vt bool
1536 If set to
1537 .Dq Li YES ,
1538 run a routing daemon of some sort, based on the
1539 settings of
1540 .Va router_program
1541 and
1542 .Va router_flags .
1543 .It Va ipv6_router_enable
1544 .Pq Vt bool
1545 The IPv6 equivalent of
1546 .Va router_enable .
1547 If set to
1548 .Dq Li YES ,
1549 run a routing daemon of some sort, based on the
1550 settings of
1551 .Va ipv6_router_program
1552 and
1553 .Va ipv6_router_flags .
1554 .It Va router_program
1555 .Pq Vt str
1556 If
1557 .Va router_enable
1558 is set to
1559 .Dq Li YES ,
1560 this is the name of the routing daemon to use.
1561 .It Va ipv6_router_program
1562 .Pq Vt str
1563 The IPv6 equivalent of
1564 .Va router_program .
1565 .It Va router_flags
1566 .Pq Vt str
1567 If
1568 .Va router_enable
1569 is set to
1570 .Dq Li YES ,
1571 these are the flags to pass to the routing daemon.
1572 .It Va ipv6_router_flags
1573 .Pq Vt str
1574 The IPv6 equivalent of
1575 .Va router_flags .
1576 .It Va mrouted_enable
1577 .Pq Vt bool
1578 If set to
1579 .Dq Li YES ,
1580 run the multicast routing daemon,
1581 .Xr mrouted 8 .
1582 .It Va mroute6d_enable
1583 .Pq Vt bool
1584 The IPv6 equivalent of
1585 .Va mrouted_enable .
1586 If set to
1587 .Dq Li YES ,
1588 run the IPv6 multicast routing daemon.
1589 Note that no IPv6 multicast routing daemon is included in the
1590 .Dx
1591 base system but
1592 .Xr pim6dd 8
1593 can be installed from the
1594 .Xr pkgsrc 7
1595 collection.
1596 .It Va mrouted_flags
1597 .Pq Vt str
1598 If
1599 .Va mrouted_enable
1600 is set to
1601 .Dq Li YES ,
1602 these are the flags to pass to the
1603 .Xr mrouted 8
1604 daemon.
1605 .It Va mroute6d_flags
1606 .Pq Vt str
1607 The IPv6 equivalent of
1608 .Va mrouted_flags .
1609 If
1610 .Va mroute6d_enable
1611 is set to
1612 .Dq Li YES ,
1613 these are the flags passed to the IPv6 multicast routing daemon.
1614 .It Va mroute6d_program
1615 .Pq Vt str
1616 If
1617 .Va mroute6d_enable
1618 is set to
1619 .Dq Li YES ,
1620 this is the path to the IPv6 multicast routing daemon.
1621 .It Va rtadvd_enable
1622 .Pq Vt bool
1623 If set to
1624 .Dq Li YES ,
1625 run the
1626 .Xr rtadvd 8
1627 daemon at boot time.
1628 .Xr rtadvd 8
1629 will only run if
1630 .Va ipv6_gateway_enable
1631 is also set to
1632 .Dq Li YES .
1633 The
1634 .Xr rtadvd 8
1635 utility sends router advertisement packets to the interfaces specified in
1636 .Va rtadvd_interfaces .
1637 .Xr rtadvd 8
1638 and should only be enabled with great care.
1639 You may want to fine-tune
1640 .Xr rtadvd.conf 5 .
1641 .It Va rtadvd_interfaces
1642 .Pq Vt str
1643 If
1644 .Va rtadvd_enable
1645 is set to
1646 .Dq Li YES
1647 this is the list of interfaces to use.
1648 .It Va ipxgateway_enable
1649 .Pq Vt bool
1650 If set to
1651 .Dq Li YES ,
1652 enable the routing of IPX traffic.
1653 .It Va ipxrouted_enable
1654 .Pq Vt bool
1655 If set to
1656 .Dq Li YES ,
1657 run the
1658 .Xr IPXrouted 8
1659 daemon at system boot time.
1660 .It Va ipxrouted_flags
1661 .Pq Vt str
1662 If
1663 .Va ipxrouted_enable
1664 is set to
1665 .Dq Li YES ,
1666 these are the flags to pass to the
1667 .Xr IPXrouted 8
1668 daemon.
1669 .It Va arpproxy_all
1670 .Pq Vt bool
1671 If set to
1672 .Dq Li YES ,
1673 enable global proxy ARP.
1674 .It Va forward_sourceroute
1675 .Pq Vt bool
1676 If set to
1677 .Dq Li YES
1678 and
1679 .Va gateway_enable
1680 is also set to
1681 .Dq Li YES ,
1682 source-routed packets are forwarded.
1683 .It Va accept_sourceroute
1684 .Pq Vt bool
1685 If set to
1686 .Dq Li YES ,
1687 the system will accept source-routed packets directed at it.
1688 .It Va rarpd_enable
1689 .Pq Vt bool
1690 If set to
1691 .Dq Li YES ,
1692 run the
1693 .Xr rarpd 8
1694 daemon at system boot time.
1695 .It Va rarpd_flags
1696 .Pq Vt str
1697 If
1698 .Va rarpd_enable
1699 is set to
1700 .Dq Li YES ,
1701 these are the flags to pass to the
1702 .Xr rarpd 8
1703 daemon.
1704 .It Va bootparamd_enable
1705 .Pq Vt bool
1706 If set to
1707 .Dq Li YES ,
1708 run the
1709 .Xr bootparamd 8
1710 daemon at system boot time.
1711 .It Va bootparamd_flags
1712 .Pq Vt str
1713 If
1714 .Va bootparamd_enable
1715 is set to
1716 .Dq Li YES ,
1717 these are the flags to pass to the
1718 .Xr bootparamd 8
1719 daemon.
1720 .It Va stf_interface_ipv4addr
1721 .Pq Vt str
1722 If not set to
1723 .Dq Li NO ,
1724 this is the local IPv4 address for 6to4 (IPv6 over IPv4 tunneling
1725 interface).
1726 Specify this entry to enable the 6to4 interface.
1727 .It Va stf_interface_ipv4plen
1728 .Pq Vt int
1729 Prefix length for 6to4 IPv4 addresses, to limit peer address range.
1730 An effective value is 0-31.
1731 .It Va stf_interface_ipv6_ifid
1732 .Pq Vt str
1733 IPv6 interface ID for
1734 .Xr stf 4 .
1735 This can be set to
1736 .Dq Li AUTO .
1737 .It Va stf_interface_ipv6_slaid
1738 .Pq Vt str
1739 IPv6 Site Level Aggregator for
1740 .Xr stf 4 .
1741 .It Va ipv6_faith_prefix
1742 .Pq Vt str
1743 If not set to
1744 .Dq Li NO ,
1745 this is the faith prefix to enable a FAITH IPv6-to-IPv4 TCP
1746 translator.
1747 You also need
1748 .Xr faithd 8
1749 setup.
1750 .It Va ipv6_ipv4mapping
1751 .Pq Vt bool
1752 If set to
1753 .Dq Li YES
1754 this enables IPv4 mapped IPv6 address communication (like
1755 .Li ::ffff:a.b.c.d ) .
1756 .It Va atm_enable
1757 .Pq Vt bool
1758 Set to
1759 .Dq Li YES
1760 to enable the configuration of ATM interfaces at system boot time.
1761 For all of the ATM variables described below, please refer to the
1762 .Xr atm 8
1763 man page for further details on the available command parameters.
1764 Also refer to the files in
1765 .Pa /usr/share/examples/atm
1766 for more detailed configuration information.
1767 .It Va atm_load
1768 .Pq Vt str
1769 This is a list of physical ATM interface drivers to load. Typical values are
1770 .Dq Li hfa_pci
1771 and/or
1772 .Dq Li hea_pci .
1773 .It Va atm_netif_ Ns Aq Ar intf
1774 .Pq Vt str
1775 For the ATM physical interface
1776 .Ar intf ,
1777 this variable defines the name prefix and count for the ATM network
1778 interfaces to be created.
1779 The value will be passed as the parameters of an
1780 .Dq Nm atm Cm "set netif" Ar intf
1781 command.
1782 .It Va atm_sigmgr_ Ns Aq Ar intf
1783 .Pq Vt str
1784 For the ATM physical interface
1785 .Ar intf ,
1786 this variable defines the ATM signalling manager to be used.
1787 The value will be passed as the parameters of an
1788 .Dq Nm atm Cm attach Ar intf
1789 command.
1790 .It Va atm_prefix_ Ns Aq Ar intf
1791 .Pq Vt str
1792 For the ATM physical interface
1793 .Ar intf ,
1794 this variable defines the NSAP prefix for interfaces using a UNI signalling
1795 manager.
1796 If set to
1797 .Dq Li ILMI ,
1798 the prefix will automatically be set via the
1799 .Xr ilmid 8
1800 daemon.
1801 Otherwise, the value will be passed as the parameters of an
1802 .Dq Nm atm Cm "set prefix" Ar intf
1803 command.
1804 .It Va atm_macaddr_ Ns Aq Ar intf
1805 .Pq Vt str
1806 For the ATM physical interface
1807 .Ar intf ,
1808 this variable defines the MAC address for interfaces using a UNI signalling
1809 manager.
1810 If set to
1811 .Dq Li NO ,
1812 the hardware MAC address contained in the ATM interface card will be used.
1813 Otherwise, the value will be passed as the parameters of an
1814 .Dq Nm atm Cm "set mac" Ar intf
1815 command.
1816 .It Va atm_arpserver_ Ns Aq Ar netif
1817 .Pq Vt str
1818 For the ATM network interface
1819 .Ar netif ,
1820 this variable defines the ATM address for a host which is to provide ATMARP
1821 service.
1822 This variable is only applicable to interfaces using a UNI signalling
1823 manager.
1824 If set to
1825 .Dq Li local ,
1826 this host will become an ATMARP server.
1827 The value will be passed as the parameters of an
1828 .Dq Nm atm Cm "set arpserver" Ar netif
1829 command.
1830 .It Va atm_scsparp_ Ns Aq Ar netif
1831 .Pq Vt bool
1832 If set to
1833 .Dq Li YES ,
1834 SCSP/ATMARP service for the network interface
1835 .Ar netif
1836 will be initiated using the
1837 .Xr scspd 8
1838 and
1839 .Xr atmarpd 8
1840 daemons.
1841 This variable is only applicable if
1842 .Va atm_arpserver_ Ns Aq Ar netif
1843 is set to
1844 .Dq Li local .
1845 .It Va atm_pvcs
1846 .Pq Vt str
1847 Set to the list of ATM PVCs to be added at system
1848 boot time.
1849 For each whitespace separated
1850 .Ar element
1851 in the value, an
1852 .Va atm_pvc_ Ns Aq Ar element
1853 variable is assumed to exist.
1854 The value of each of these variables
1855 will be passed as the parameters of an
1856 .Dq Nm atm Cm "add pvc"
1857 command.
1858 .It Va atm_arps
1859 .Pq Vt str
1860 Set to the list of permanent ATM ARP entries to be added
1861 at system boot time.
1862 For each whitespace separated
1863 .Ar element
1864 in the value, an
1865 .Va atm_arp_ Ns Aq Ar element
1866 variable is assumed to exist.
1867 The value of each of these variables
1868 will be passed as the parameters of an
1869 .Dq Nm atm Cm "add arp"
1870 command.
1871 .It Va natm_interfaces
1872 .Pq Vt str
1873 Set to the list of
1874 .Xr natm 4
1875 interfaces that will also be used for HARP through
1876 .Xr harp 4 .
1877 If this list is not empty all interfaces in the list will be brought up
1878 with
1879 .Xr ifconfig 9
1880 and
1881 .Xr harp 4
1882 will be loaded.
1883 For this to work the interface drivers must be either compiled into the
1884 kernel or must reside on the root partition.
1885 .It Va keybell
1886 .Pq Vt str
1887 The keyboard bell sound.
1888 Set to
1889 .Dq Li normal ,
1890 .Dq Li visual ,
1891 .Dq Li off ,
1892 or
1893 .Dq Li NO
1894 if the default behavior is desired.
1895 For details, refer to the
1896 .Xr kbdcontrol 1
1897 manpage.
1898 .It Va keymap
1899 .Pq Vt str
1900 If set to
1901 .Dq Li NO ,
1902 no keymap is installed, otherwise the value is used to install
1903 the keymap file in
1904 .Pa /usr/share/syscons/keymaps/ Ns Ao Ar value Ac Ns Pa .kbd .
1905 .It Va keyrate
1906 .Pq Vt str
1907 The keyboard repeat speed.
1908 Set to
1909 .Dq Li slow ,
1910 .Dq Li normal ,
1911 .Dq Li fast ,
1912 or
1913 .Dq Li NO
1914 if the default behavior is desired.
1915 .It Va keychange
1916 .Pq Vt str
1917 If not set to
1918 .Dq Li NO ,
1919 attempt to program the function keys with the value.
1920 The value should
1921 be a single string of the form:
1922 .Dq Ar funkey_number new_value Op Ar funkey_number new_value ... .
1923 .It Va cursor
1924 .Pq Vt str
1925 Can be set to the value of
1926 .Dq Li normal ,
1927 .Dq Li blink ,
1928 .Dq Li destructive ,
1929 or
1930 .Dq Li NO
1931 to set the cursor behavior explicitly or choose the default behavior.
1932 .It Va scrnmap
1933 .Pq Vt str
1934 If set to
1935 .Dq Li NO ,
1936 no screen map is installed, otherwise the value is used to install
1937 the screen map file in
1938 .Pa /usr/share/syscons/scrnmaps/ Ns Aq Ar value .
1939 .It Va font8x16
1940 .Pq Vt str
1941 If set to
1942 .Dq Li NO ,
1943 the default 8x16 font value is used for screen size requests, otherwise
1944 the value in
1945 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
1946 is used.
1947 .It Va font8x14
1948 .Pq Vt str
1949 If set to
1950 .Dq Li NO ,
1951 the default 8x14 font value is used for screen size requests, otherwise
1952 the value in
1953 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
1954 is used.
1955 .It Va font8x8
1956 .Pq Vt str
1957 If set to
1958 .Dq Li NO ,
1959 the default 8x8 font value is used for screen size requests, otherwise
1960 the value in
1961 .Pa /usr/share/syscons/fonts/ Ns Aq Ar value
1962 is used.
1963 .It Va blanktime
1964 .Pq Vt int
1965 If set to
1966 .Dq Li NO ,
1967 the default screen blanking interval is used, otherwise it is set
1968 to
1969 .Ar value
1970 seconds.
1971 .It Va saver
1972 .Pq Vt str
1973 If not set to
1974 .Dq Li NO ,
1975 this is the actual screen saver to use
1976 .Li ( blank , snake , daemon ,
1977 etc).
1978 .It Va moused_enable
1979 .Pq Vt str
1980 If set to
1981 .Dq Li YES ,
1982 the
1983 .Xr moused 8
1984 daemon is started for doing cut/paste selection on the console.
1985 .It Va moused_type
1986 .Pq Vt str
1987 This is the protocol type of the mouse connected to this host.
1988 This variable must be set if
1989 .Va moused_enable
1990 is set to
1991 .Dq Li YES .
1992 The
1993 .Xr moused 8
1994 daemon
1995 is able to detect the appropriate mouse type automatically in many cases.
1996 Set this variable to
1997 .Dq Li auto
1998 to let the daemon detect it, or
1999 select one from the following list if the automatic detection fails.
2000 .Pp
2001 If the mouse is attached to the PS/2 mouse port, choose
2002 .Dq Li auto
2003 or
2004 .Dq Li ps/2 ,
2005 regardless of the brand and model of the mouse.
2006 Likewise, if the
2007 mouse is attached to the bus mouse port, choose
2008 .Dq Li auto
2009 or
2010 .Dq Li busmouse .
2011 All other protocols are for serial mice and will not work with
2012 the PS/2 and bus mice.
2013 If this is a USB mouse,
2014 .Dq Li auto
2015 is the only protocol type which will work.
2016 .Pp
2017 .Bl -tag -width ".Li x10mouseremote" -compact
2018 .It Li microsoft
2019 Microsoft mouse (serial)
2020 .It Li intellimouse
2021 Microsoft IntelliMouse (serial)
2022 .It Li mousesystems
2023 Mouse systems Corp. mouse (serial)
2024 .It Li mmseries
2025 MM Series mouse (serial)
2026 .It Li logitech
2027 Logitech mouse (serial)
2028 .It Li busmouse
2029 A bus mouse
2030 .It Li mouseman
2031 Logitech MouseMan and TrackMan (serial)
2032 .It Li glidepoint
2033 ALPS GlidePoint (serial)
2034 .It Li thinkingmouse
2035 Kensington ThinkingMouse (serial)
2036 .It Li ps/2
2037 PS/2 mouse
2038 .It Li mmhittab
2039 MM HitTablet (serial)
2040 .It Li x10mouseremote
2041 X10 MouseRemote (serial)
2042 .It Li versapad
2043 Interlink VersaPad (serial)
2044 .El
2045 .Pp
2046 Even if the mouse is not in the above list, it may be compatible
2047 with one in the list.
2048 Refer to the man page for
2049 .Xr moused 8
2050 for compatibility information.
2051 .Pp
2052 It should also be noted that while this is enabled, any
2053 other client of the mouse (such as an X server) should access
2054 the mouse through the virtual mouse device,
2055 .Pa /dev/sysmouse ,
2056 and configure it as a
2057 .Dq Li sysmouse
2058 type mouse, since all
2059 mouse data is converted to this single canonical format when
2060 using
2061 .Xr moused 8 .
2062 If the client program does not support the
2063 .Dq Li sysmouse
2064 type,
2065 specify the
2066 .Dq Li mousesystems
2067 type.
2068 It is the second preferred type.
2069 .It Va moused_port
2070 .Pq Vt str
2071 If
2072 .Va moused_enable
2073 is set to
2074 .Dq Li YES ,
2075 this is the actual port the mouse is on.
2076 It might be
2077 .Pa /dev/cuaa0
2078 for a COM1 serial mouse,
2079 .Pa /dev/psm0
2080 for a PS/2 mouse or
2081 .Pa /dev/mse0
2082 for a bus mouse, for example.
2083 .It Va moused_flags
2084 .Pq Vt str
2085 If
2086 .Va moused_type
2087 is set, these are the additional flags to pass to the
2088 .Xr moused 8
2089 daemon.
2090 .It Va mousechar_start
2091 .Pq Vt int
2092 If set to
2093 .Dq Li NO ,
2094 the default mouse cursor character range
2095 .Li 0xd0 Ns - Ns Li 0xd3
2096 is used,
2097 otherwise the range start is set
2098 to
2099 .Ar value
2100 character, see
2101 .Xr vidcontrol 1 .
2102 Use if the default range is occupied in the language code table.
2103 .It Va vidhistory
2104 .Pq Vt int
2105 Set the size of the history (scrollback) buffer in lines.
2106 .It Va allscreens_flags
2107 .Pq Vt str
2108 If set,
2109 .Xr vidcontrol 1
2110 is run with these options for each of the virtual terminals
2111 .Pq Pa /dev/ttyv* .
2112 For example,
2113 .Dq Fl m Cm on
2114 will enable the mouse pointer on all virtual terminals
2115 if
2116 .Va moused_enable
2117 is set to
2118 .Dq Li YES .
2119 .It Va allscreens_kbdflags
2120 .Pq Vt str
2121 If set,
2122 .Xr kbdcontrol 1
2123 is run with these options for each of the virtual terminals
2124 .Pq Pa /dev/ttyv* .
2125 For example,
2126 .Dq Fl h Li 200
2127 will set the
2128 .Xr syscons 4
2129 scrollback (history) buffer to 200 lines.
2130 .It Va cron_enable
2131 .Pq Vt bool
2132 If set to
2133 .Dq Li YES ,
2134 run the
2135 .Xr cron 8
2136 daemon at system boot time.
2137 .It Va cron_program
2138 .Pq Vt str
2139 Path to
2140 .Xr cron 8
2141 (default
2142 .Pa /usr/sbin/cron ) .
2143 .It Va cron_flags
2144 .Pq Vt str
2145 If
2146 .Va cron_enable
2147 is set to
2148 .Dq Li YES ,
2149 these are the flags to pass to
2150 .Xr cron 8 .
2151 .It Va lpd_program
2152 .Pq Vt str
2153 Path to
2154 .Xr lpd 8
2155 (default
2156 .Pa /usr/sbin/lpd ) .
2157 .It Va lpd_enable
2158 .Pq Vt bool
2159 If set to
2160 .Dq Li YES ,
2161 run the
2162 .Xr lpd 8
2163 daemon at system boot time.
2164 .It Va lpd_flags
2165 .Pq Vt str
2166 If
2167 .Va lpd_enable
2168 is set to
2169 .Dq Li YES ,
2170 these are the flags to pass to the
2171 .Xr lpd 8
2172 daemon.
2173 .It Va mixer_enable
2174 .Pq Vt bool
2175 If set to
2176 .Dq Li YES ,
2177 preserve
2178 .Xr mixer 8
2179 settings across reboots.
2180 .It Va mta_start_script
2181 .Pq Vt str
2182 This variable specifies the full path to the script to run to start
2183 a mail transfer agent.
2184 The default is
2185 .Pa /etc/rc.sendmail .
2186 The
2187 .Va sendmail_*
2188 variables which
2189 .Pa /etc/rc.sendmail
2190 uses are documented in the
2191 .Xr rc.sendmail 8
2192 man page.
2193 .It Va dumpdev
2194 .Pq Vt str
2195 Indicates the device (usually a swap partition) to which a crash dump
2196 should be written in the event of a system crash.
2197 The value of this variable is passed as the argument to
2198 .Xr dumpon 8 .
2199 To disable crash dumps, set this variable to
2200 .Dq Li NO .
2201 .It Va dumpdir
2202 .Pq Vt str
2203 When the system reboots after a crash and a crash dump is found on the
2204 device specified by the
2205 .Va dumpdev
2206 variable,
2207 .Xr savecore 8
2208 will save that crash dump and a copy of the kernel to the directory
2209 specified by the
2210 .Va dumpdir
2211 variable.
2212 The default value is
2213 .Pa /var/crash .
2214 Set to
2215 .Dq Li NO
2216 to not run
2217 .Xr savecore 8
2218 at boot time when
2219 .Va dumpdir
2220 is set.
2221 .It Va savecore_flags
2222 .Pq Vt str
2223 If crash dumps are enabled, these are the flags to pass to the
2224 .Xr savecore 8
2225 utility.
2226 .It Va enable_quotas
2227 .Pq Vt bool
2228 Set to
2229 .Dq Li YES
2230 to turn on user disk quotas on system startup via the
2231 .Xr quotaon 8
2232 command.
2233 .It Va check_quotas
2234 .Pq Vt bool
2235 Set to
2236 .Dq Li YES
2237 to enable user disk quota checking via the
2238 .Xr quotacheck 8
2239 command.
2240 .It Va accounting_enable
2241 .Pq Vt bool
2242 Set to
2243 .Dq Li YES
2244 to enable system accounting through the
2245 .Xr accton 8
2246 facility.
2247 .It Va linux_enable
2248 .Pq Vt bool
2249 Set to
2250 .Dq Li YES
2251 to enable Linux/ELF binary emulation at system initial
2252 boot time.
2253 .It Va sysvipc_enable
2254 .Pq Vt bool
2255 If set to
2256 .Dq Li YES ,
2257 load System V IPC primitives at boot time.
2258 .\" ----- cleanvar_enable setting--------------------------------
2259 .It Va cleanvar_enable
2260 .Pq Vt bool
2261 Set to
2262 .Dq Li YES
2263 to have
2264 .Pa /var/run ,
2265 .Pa /var/spool/lock
2266 and
2267 .Pa /var/spool/uucp/.Temp/*
2268 cleaned at startup.
2269 .\" ----- clear_tmp_enable setting-------------------------------
2270 .It Va clear_tmp_enable
2271 .Pq Vt bool
2272 Set to
2273 .Dq Li YES
2274 to have
2275 .Pa /tmp
2276 cleaned at startup.
2277 .\" ----- ldconfig_paths setting --------------------------------
2278 .It Va ldconfig_paths
2279 .Pq Vt str
2280 Set to the list of shared library paths to use with
2281 .Xr ldconfig 8 .
2282 NOTE:
2283 .Pa /usr/lib
2284 will always be added first, so it need not appear in this list.
2285 .It Va ldconfig_insecure
2286 .Pq Vt bool
2287 The
2288 .Xr ldconfig 8
2289 utility normally refuses to use directories
2290 which are writable by anyone except root.
2291 Set this variable to
2292 .Dq Li YES
2293 to disable that security check during system startup.
2294 .It Va kern_securelevel
2295 .Pq Vt int
2296 The kernel security level to set at startup.
2297 The allowed range of
2298 .Ar value
2299 ranges from \-1 (the compile time default) to 3 (the
2300 most secure).
2301 See
2302 .Xr init 8
2303 for the list of possible security levels and their effect
2304 on system operation.
2305 .It Va lomac_enable
2306 .Pq Vt bool
2307 Set to
2308 .Dq Li YES
2309 to enable Low Watermark Mandatory Access Control (LOMAC) at boot time.
2310 This security model enforces integrity constraints for system processes;
2311 see
2312 .Xr lomac 4
2313 for a complete description of the LOMAC model, as well as its impact
2314 on system operation.
2315 .It Va start_vinum
2316 .Pq Vt bool
2317 Set to
2318 .Dq Li YES
2319 to start
2320 .Xr vinum 8
2321 at system boot time.
2322 .It Va sshd_enable
2323 .Pq Vt bool
2324 Set to
2325 .Dq Li YES
2326 to start
2327 .Xr sshd 8
2328 at system boot time.
2329 .It Va sshd_program
2330 .Pq Vt str
2331 Path to the SSH server program
2332 .Pa ( /usr/sbin/sshd
2333 is the default).
2334 .It Va sshd_flags
2335 .Pq Vt str
2336 If
2337 .Va sshd_enable
2338 is set to
2339 .Dq Li YES ,
2340 these are the flags to pass to the
2341 .Xr sshd 8
2342 daemon.
2343 .It Va ftpd_enable
2344 .Pq Vt bool
2345 Set to
2346 .Dq Li YES
2347 to start
2348 .Xr ftpd 8
2349 at system boot time.
2350 .It Va ftpd_flags
2351 .Pq Vt str
2352 If
2353 .Va ftpd_enable
2354 is set to
2355 .Dq Li YES ,
2356 these are the flags to pass to the
2357 .Xr ftpd 8
2358 daemon.
2359 .It Va usbd_enable
2360 .Pq Vt bool
2361 If set to
2362 .Dq Li YES ,
2363 run the
2364 .Xr usbd 8
2365 daemon at boot time.
2366 .It Va usbd_flags
2367 .Pq Vt str
2368 If
2369 .Va usbd_enable
2370 is set to
2371 .Dq Li YES ,
2372 these are the flags passed to
2373 .Xr usbd 8
2374 daemon.
2375 .It Va watchdogd_enable
2376 .Pq Vt bool
2377 If set to
2378 .Dq Li YES ,
2379 start the
2380 .Xr watchdogd 8
2381 daemon at boot time.
2382 This requires that the kernel have been compiled with
2383 .Cd "options WATCHDOG" .
2384 .It Va jail_enable
2385 .Pq Vt bool
2386 If set to
2387 .Dq Li NO ,
2388 any configured jails will not be started.
2389 .It Va jail_list
2390 .Pq Vt str
2391 A space separated list of names for jails.
2392 This is purely a configuration aid to help identify and
2393 configure multiple jails.
2394 The names specified in this list will be used to
2395 identify settings common to an instance of a jail.
2396 Assuming that the jail in question was named
2397 .Li vjail ,
2398 you would have the following dependent variables:
2399 .Bd -literal
2400 jail_vjail_hostname="jail.example.com"
2401 jail_vjail_ip="192.168.1.100"
2402 jail_vjail_rootdir="/var/jails/vjail/root"
2403 jail_vjail_exec="/bin/sh /etc/rc"
2404 .Ed
2405 .Pp
2406 The last one is optional.
2407 It defaults to
2408 .Pa /etc/rc
2409 if it is not set.
2410 .It Va jail_set_hostname_allow
2411 .Pq Vt bool
2412 If set to
2413 .Dq Li NO ,
2414 do not allow the root user in a jail to set its hostname.
2415 .It Va jail_socket_unixiproute_only
2416 .Pq Vt bool
2417 If set to
2418 .Dq Li NO ,
2419 do not allow any protocol,
2420 besides TCP/IP,
2421 to be used within a jail.
2422 .It Va jail_sysvipc_allow
2423 .Pq Vt bool
2424 If set to
2425 .Dq Li YES ,
2426 allow applications within a jail to use System V IPC.
2427 .It Va resident_enable
2428 .Pq Vt bool
2429 If set to
2430 .Dq Li YES ,
2431 make the dynamic binaries listed in
2432 .Pa /etc/resident.conf
2433 resident.
2434 .It Va varsym_enable
2435 .Pq Vt bool
2436 If set to
2437 .Dq Li YES ,
2438 process
2439 .Pa /etc/varsym.conf
2440 to set system-wide variables for variant symlinks.
2441 .It Va unaligned_print
2442 .Pq Vt bool
2443 If set to
2444 .Dq Li NO ,
2445 unaligned access warnings will not be printed.
2446 (alpha)
2447 .It Va rand_irqs
2448 .Pq Vt str
2449 Set either to
2450 .Dq Li NO
2451 or a whitespace separated list of IRQ numbers which will be used as a source of
2452 randomness.
2453 .\" ----- isdn settings ---------------------------------
2454 .It Va isdn_enable
2455 .Pq Vt bool
2456 Set to
2457 .Dq Li NO
2458 by default.
2459 When set to
2460 .Dq Li YES ,
2461 starts the
2462 .Xr isdnd 8
2463 daemon
2464 at system boot time.
2465 .It Va isdn_flags
2466 .Pq Vt str
2467 Set to
2468 .Dq Fl d Ns Cm n Fl d Ns Li 0x1f9
2469 by default.
2470 Additional flags to pass to
2471 .Xr isdnd 8
2472 (but see
2473 .Va isdn_fsdev
2474 and
2475 .Va isdn_ttype
2476 for certain tunable parameters).
2477 .It Va isdn_ttype
2478 .Pq Vt str
2479 Set to
2480 .Dq Li cons25
2481 by default.
2482 The terminal type of the output device when
2483 .Xr isdnd 8
2484 operates in full-screen mode.
2485 .It Va isdn_screenflags
2486 .Pq Vt str
2487 Set to
2488 .Dq Li NO
2489 by default.
2490 The video mode for full-screen mode (only for
2491 .Xr syscons 4
2492 console driver, see
2493 .Xr vidcontrol 1
2494 for valid modes).
2495 .It Va isdn_fsdev
2496 .Pq Vt str
2497 Set to
2498 .Dq Li NO
2499 by default.
2500 The output device for
2501 .Xr isdnd 8
2502 in full-screen mode (or
2503 .Dq Li NO
2504 for daemon mode).
2505 .It Va isdn_trace
2506 .Pq Vt bool
2507 Set to
2508 .Dq Li NO
2509 by default.
2510 When set to
2511 .Dq Li YES ,
2512 enables the ISDN protocol trace utility
2513 .Xr isdntrace 8
2514 at system boot time.
2515 .It Va isdn_traceflags
2516 .Pq Vt str
2517 Set to
2518 .Dq Fl f Pa /var/tmp/isdntrace0
2519 by default.
2520 Flags for
2521 .Xr isdntrace 8 .
2522 .\" -----------------------------------------------------
2523 .It Va harvest_interrupt
2524 .Pq Vt bool
2525 Set to
2526 .Dq Li YES
2527 to use hardware interrupts as an entropy source.
2528 Refer to
2529 .Xr random 4
2530 for more information.
2531 .It Va harvest_ethernet
2532 .Pq Vt bool
2533 Set to
2534 .Dq Li YES
2535 to use LAN traffic as an entropy source.
2536 Refer to
2537 .Xr random 4
2538 for more information.
2539 .It Va harvest_p_to_p
2540 .Pq Vt bool
2541 Set to
2542 .Dq Li YES
2543 to use serial line traffic as an entropy source.
2544 Refer to
2545 .Xr random 4
2546 for more information.
2547 .It Va entropy_dir
2548 .Pq Vt str
2549 Set to
2550 .Dq Li NO
2551 to disable caching entropy via
2552 .Xr cron 8 .
2553 Otherwise set to the directory used to store entropy files in.
2554 .It Va entropy_file
2555 .Pq Vt str
2556 Set to
2557 .Dq Li NO
2558 to disable caching entropy through reboots.
2559 Otherwise set to the filename used to store cached entropy through
2560 reboots.
2561 This file should be located on the root file system to seed the
2562 .Xr random 4
2563 device as early as possible in the boot process.
2564 .It Va entropy_save_sz
2565 .Pq Vt int
2566 Size of the entropy cache files saved by
2567 .Nm save-entropy
2568 periodically.
2569 .It Va entropy_save_num
2570 .Pq Vt int
2571 Number of entropy cache files to save by
2572 .Nm save-entropy
2573 periodically.
2574 .It Va ipsec_enable
2575 .Pq Vt bool
2576 Set to
2577 .Dq Li YES
2578 to run
2579 .Xr setkey 8
2580 on
2581 .Va ipsec_file
2582 at boot time.
2583 .It Va ipsec_file
2584 .Pq Vt str
2585 Configuration file for
2586 .Xr setkey 8 .
2587 .It Va dmesg_enable
2588 .Pq Vt bool
2589 Set to
2590 .Dq Li YES
2591 to save
2592 .Xr dmesg 8
2593 to
2594 .Pa /var/run/dmesg.boot
2595 on boot.
2596 .It Va rcshutdown_timeout
2597 .Pq Vt int
2598 If set, start a watchdog timer in the background which will terminate
2599 .Pa rc.shutdown
2600 if
2601 .Xr shutdown 8
2602 has not completed within the specified time (in seconds).
2603 .El
2604 .Sh FILES
2605 .Bl -tag -width ".Pa /etc/defaults/rc.conf" -compact
2606 .It Pa /etc/defaults/rc.conf
2607 .It Pa /etc/rc.conf
2608 .It Pa /etc/rc.conf.local
2609 .El
2610 .Sh SEE ALSO
2611 .Xr catman 1 ,
2612 .Xr gdb 1 ,
2613 .Xr info 1 ,
2614 .Xr kbdcontrol 1 ,
2615 .Xr varsym 1 ,
2616 .Xr vidcontrol 1 ,
2617 .Xr ip 4 ,
2618 .Xr kld 4 ,
2619 .Xr tcp 4 ,
2620 .Xr udp 4 ,
2621 .Xr exports 5 ,
2622 .Xr motd 5 ,
2623 .Xr resident.conf 5 ,
2624 .Xr varsym.conf 5 ,
2625 .Xr accton 8 ,
2626 .Xr amd 8 ,
2627 .Xr apm 8 ,
2628 .Xr atm 8 ,
2629 .Xr cron 8 ,
2630 .Xr dhclient 8 ,
2631 .Xr dhcpd 8 ,
2632 .Xr dhcrelay 8 ,
2633 .Xr dntpd 8 ,
2634 .Xr ftpd 8 ,
2635 .Xr ifconfig 8 ,
2636 .Xr inetd 8 ,
2637 .Xr isdnd 8 ,
2638 .Xr isdntrace 8 ,
2639 .Xr kldxref 8 ,
2640 .Xr lpd 8 ,
2641 .Xr makewhatis 8 ,
2642 .Xr mdconfig 8 ,
2643 .Xr mixer 8 ,
2644 .Xr mountd 8 ,
2645 .Xr moused 8 ,
2646 .Xr mrouted 8 ,
2647 .Xr named 8 ,
2648 .Xr nfsd 8 ,
2649 .Xr ntpd 8 ,
2650 .Xr pcnfsd 8 ,
2651 .Xr quotacheck 8 ,
2652 .Xr quotaon 8 ,
2653 .Xr rc 8 ,
2654 .Xr rc.sendmail 8 ,
2655 .Xr resident 8 ,
2656 .Xr rndcontrol 8 ,
2657 .Xr route 8 ,
2658 .Xr routed 8 ,
2659 .Xr rpc.lockd 8 ,
2660 .Xr rpc.statd 8 ,
2661 .Xr rpcbind 8 ,
2662 .Xr rwhod 8 ,
2663 .Xr savecore 8 ,
2664 .Xr sshd 8 ,
2665 .Xr swapon 8 ,
2666 .Xr sysctl 8 ,
2667 .Xr syslogd 8 ,
2668 .Xr timed 8 ,
2669 .Xr usbd 8 ,
2670 .Xr vinum 8 ,
2671 .Xr yp 8 ,
2672 .Xr ypbind 8 ,
2673 .Xr ypserv 8 ,
2674 .Xr ypset 8
2675 .Sh HISTORY
2676 The
2677 .Nm
2678 file appeared in
2679 .Fx 2.2.2 .
2680 .Sh AUTHORS
2681 .An Jordan K. Hubbard .