diff options
Diffstat (limited to 'templates/jail_confs/ingress.j2')
| -rw-r--r-- | templates/jail_confs/ingress.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/jail_confs/ingress.j2 b/templates/jail_confs/ingress.j2 new file mode 100644 index 0000000..d6e4cad --- /dev/null +++ b/templates/jail_confs/ingress.j2 @@ -0,0 +1,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"; |
