aboutsummaryrefslogtreecommitdiffstats
path: root/templates/jail_confs/ingress.j2
blob: d6e4cad92ac9a95216fc150dc5a02fa72cb9fc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
devfs_ruleset = 6;

{% include 'jail_confs/_epl_network.j2' %}

exec.prestart    += "ifconfig epair{{ jail.num }}001 create || echo 'Failed to create epair{{ jail.num }}001'";
exec.prestart    += "ifconfig epair{{ jail.num }}001a name epw1a";
exec.prestart    += "ifconfig epair{{ jail.num }}001b name epw1b";
exec.prestart    += "ifconfig brwan0 addm epw{{ jail.num }}a";

exec.poststart   += "ifconfig epw{{ jail.num }}b vnet ${name}";
exec.poststart   += "jexec ${name} ifconfig epw{{ jail.num }}b up";
exec.poststart   += "ifconfig epw{{ jail.num }}a up";
exec.poststart   += "jexec ${name} service dhclient restart epw{{ jail.num }}b";

exec.poststop    += "ifconfig epw{{ jail.num }}a destroy";