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