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