From 4715a28fdcd87440400d17154bfa361d99db29cc Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 12 May 2026 15:06:28 +0300 Subject: Add local vm for testing, adjust configs --- templates/jail_confs/ingress.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/jail_confs/ingress.j2') diff --git a/templates/jail_confs/ingress.j2 b/templates/jail_confs/ingress.j2 index 59db3f1..5964d06 100644 --- a/templates/jail_confs/ingress.j2 +++ b/templates/jail_confs/ingress.j2 @@ -10,7 +10,12 @@ 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'"; -- cgit v1.3