summaryrefslogtreecommitdiffstats
path: root/share/examples/jails/jail.xxx.conf
blob: 8efa77dba173fecab255928a27c91276cfe65a93 (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
# $FreeBSD$

xxx {
	host.hostname = "xxx.yyy";	# hostname
	path = "/vm/xxx";		# root directory

	exec.clean;
	exec.system_user = "root";
	exec.jail_user = "root";

	#
	# NB: Below 4-lines required
	#
	vnet;
	# netgraph
	vnet.interface = "ng0_xxx";		# vnet interface(s)
	exec.prestart += "jng bridge xxx em0";	# bridge interface(s)
	exec.poststop += "jng shutdown xxx";	# destroy interface(s)
	# if_bridge
	#vnet.interface = "e0b_xxx";		# vnet interface(s)
	#exec.prestart += "jib addm xxx em0";	# bridge interface(s)
	#exec.poststop += "jib destroy xxx";	# destroy interface(s)

	# Standard recipe
	exec.start += "/bin/sh /etc/rc";
	exec.stop = "/bin/sh /etc/rc.shutdown";
	exec.consolelog = "/var/log/jail_xxx_console.log";
	mount.devfs;	# mount devfs

	# Optional (default off)
	#devfs_ruleset = "11";		# rule to unhide bpf for DHCP
	#allow.mount;			# mount /etc/fstab.xxx
	#allow.set_hostname = 1;	# Allow hostname to change
	#allow.sysvipc = 1;		# Allow SysV Interprocess Comm.
}
OpenPOWER on IntegriCloud