aboutsummaryrefslogtreecommitdiffstats
path: root/templates/jail_confs/ingress.j2
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-05-13 00:13:57 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-05-16 18:42:27 +0300
commitb5860daf11ac353049cb1654b9414a129e5cfb96 (patch)
tree87ed89711e4f0e85ace0a97fa123199152c67302 /templates/jail_confs/ingress.j2
parent4715a28fdcd87440400d17154bfa361d99db29cc (diff)
Rework
Diffstat (limited to 'templates/jail_confs/ingress.j2')
-rw-r--r--templates/jail_confs/ingress.j222
1 files changed, 0 insertions, 22 deletions
diff --git a/templates/jail_confs/ingress.j2 b/templates/jail_confs/ingress.j2
deleted file mode 100644
index 5964d06..0000000
--- a/templates/jail_confs/ingress.j2
+++ /dev/null
@@ -1,22 +0,0 @@
-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";
-{% if is_test_vm %}
-exec.poststart += "jexec ${name} ifconfig epw{{ jail.num }}b inet 10.0.20.3/24";
-exec.poststart += "jexec ${name} route add default 10.0.20.1";
-{% else %}
-exec.poststart += "jexec ${name} service dhclient restart epw{{ jail.num }}b";
-{% endif %}
-
-exec.prestart += "mount -t nullfs /usr/local/jails/containers/goaccess/var/www/goaccess /usr/local/jails/containers/ingress/mnt/www_goaccess || echo 'Failed to mount'";
-exec.poststop += "umount /usr/local/jails/containers/ingress/mnt/www_goaccess || echo 'Failed to umount'";
-exec.poststop += "ifconfig epw{{ jail.num }}a destroy";