summaryrefslogtreecommitdiffstats
path: root/share/examples/jails/rc.conf.jails
blob: 674dce538ea6ba9d3bc712944486c8bf873ef547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# $FreeBSD$

###############################################################################
############################# JAIL CONFIGURATIONS #############################
###############################################################################

jail_enable="YES"
jail_list="xxx"

#
# Global presets for all jails
#
jail_devfs_enable="YES"		# mount devfs
# Optional (default off)
#jail_sysvipc_allow="YES"	# Allow SysV Interprocess Comm.
#jail_set_hostname_allow="YES"	# Allow hostname to change

#
# To allow dhclient(8) to work inside a jail, make sure the following appears
# in /etc/devfs.rules (which should be created if it doesn't exist):
#
# [devfsrules_jail=11]
# add include $devfsrules_hide_all
# add include $devfsrules_unhide_basic
# add include $devfsrules_unhide_login
# add path 'bpf*' unhide
#

############################################################ JAILS

# NETGRAPH TEMPLATE (copy/pate; then replace {name} with short name for jail)
#
# {name}
#
#jail_{name}_hostname="{name}.shxd.cx"		# hostname
#jail_{name}_rootdir="/vm/{name}"		# root directory
#jail_{name}_vnet_interfaces="ng0_{name}"	# vnet interface(s)
#jail_{name}_exec_prestart0="jng bridge {name} em0"	# bridge interface(s)
#jail_{name}_exec_poststop0="jng shutdown {name}"	# destroy interface(s)
# Optional (default off)
#jail_{name}_devfs_ruleset="11"			# rule to unhide bpf for DHCP
#jail_{name}_mount_enable="YES"			# mount /etc/fstab.{name}

# IF_BRIDGE TEMPLATE (copy/pate; then replace {name} with short name for jail)
#
# {name}
#
#jail_{name}_hostname="{name}.shxd.cx"		# hostname
#jail_{name}_rootdir="/vm/{name}"		# root directory
#jail_{name}_vnet_interfaces="e0b_{name}"	# vnet interface(s)
#jail_{name}_exec_prestart0="jib addm {name} em0"	# bridge interface(s)
#jail_{name}_exec_poststop0="jib destroy {name}"	# destroy interface(s)
# Optional (default off)
#jail_{name}_devfs_ruleset="11"			# rule to unhide bpf for DHCP
#jail_{name}_mount_enable="YES"			# mount /etc/fstab.{name}

#
# XXX
#
jail_xxx_hostname="xxx.yyy"			# hostname
jail_xxx_rootdir="/vm/xxx"			# root directory
# netgraph
jail_xxx_vnet_interface="ng0_xxx"		# vnet interface(s)
jail_xxx_exec_prestart0="jng bridge xxx em0"	# bridge interface(s)
jail_xxx_exec_poststop0="jng shutdown xxx"	# destroy interface(s)
# if_bridge
#jail_xxx_vnet_interface="e0b_xxx"		# vnet interface(s)
#jail_xxx_exec_prestart0="jib addm xxx em0"	# bridge interface(s)
#jail_xxx_exec_poststop0="jib destroy xxx"	# destroy interface(s)
# Optional (default off)
#jail_xxx_devfs_ruleset="11"			# rule to unhide bpf for DHCP
#jail_xxx_mount_enable="YES"			# mount /etc/fstab.xxx

################################################################################
# END
################################################################################
OpenPOWER on IntegriCloud