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