xref: /freebsd/share/examples/jails/rc.conf.jails (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1
2###############################################################################
3############################# JAIL CONFIGURATIONS #############################
4###############################################################################
5
6jail_enable="YES"
7jail_list="XXX"
8
9#
10# Global presets for all jails
11#
12jail_devfs_enable="YES"		# mount devfs
13# Optional (default off)
14#jail_sysvipc_allow="YES"	# Allow SysV Interprocess Comm.
15#jail_set_hostname_allow="YES"	# Allow hostname to change
16
17#
18# To allow dhclient(8) to work inside a jail, make sure the following appears
19# in /etc/devfs.rules (which should be created if it doesn't exist):
20#
21# [devfsrules_jail=11]
22# add include $devfsrules_hide_all
23# add include $devfsrules_unhide_basic
24# add include $devfsrules_unhide_login
25# add path 'bpf*' unhide
26#
27
28############################################################ JAILS
29
30# NETGRAPH TEMPLATE (copy/pate; then replace {name} with short name for jail)
31#
32# {name}
33#
34#jail_{name}_hostname="{name}.shxd.cx"		# hostname
35#jail_{name}_rootdir="/vm/{name}"		# root directory
36#jail_{name}_vnet_interfaces="ng0_{name}"	# vnet interface(s)
37#jail_{name}_exec_prestart0="jng bridge {name} em0"	# bridge interface(s)
38#jail_{name}_exec_poststop0="jng shutdown {name}"	# destroy interface(s)
39# Optional (default off)
40#jail_{name}_devfs_ruleset="11"			# rule to unhide bpf for DHCP
41#jail_{name}_mount_enable="YES"			# mount /etc/fstab.{name}
42
43# IF_BRIDGE TEMPLATE (copy/pate; then replace {name} with short name for jail)
44#
45# {name}
46#
47#jail_{name}_hostname="{name}.shxd.cx"		# hostname
48#jail_{name}_rootdir="/vm/{name}"		# root directory
49#jail_{name}_vnet_interfaces="e0b_{name}"	# vnet interface(s)
50#jail_{name}_exec_prestart0="jib addm {name} em0"	# bridge interface(s)
51#jail_{name}_exec_poststop0="jib destroy {name}"	# destroy interface(s)
52# Optional (default off)
53#jail_{name}_devfs_ruleset="11"			# rule to unhide bpf for DHCP
54#jail_{name}_mount_enable="YES"			# mount /etc/fstab.{name}
55
56#
57# XXX
58#
59jail_XXX_hostname="XXX.YYY"			# hostname
60jail_XXX_rootdir="/vm/XXX"			# root directory
61# netgraph
62jail_XXX_vnet_interface="ng0_XXX"		# vnet interface(s)
63jail_XXX_exec_prestart0="jng bridge XXX em0"	# bridge interface(s)
64jail_XXX_exec_poststop0="jng shutdown XXX"	# destroy interface(s)
65# if_bridge
66#jail_XXX_vnet_interface="e0b_XXX"		# vnet interface(s)
67#jail_XXX_exec_prestart0="jib addm XXX em0"	# bridge interface(s)
68#jail_XXX_exec_poststop0="jib destroy XXX"	# destroy interface(s)
69# Optional (default off)
70#jail_XXX_devfs_ruleset="11"			# rule to unhide bpf for DHCP
71#jail_XXX_mount_enable="YES"			# mount /etc/fstab.XXX
72
73################################################################################
74# END
75################################################################################
76