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