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/_epl_network.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/jail_confs/_epl_network.j2') diff --git a/templates/jail_confs/_epl_network.j2 b/templates/jail_confs/_epl_network.j2 index e80aebe..fa3744a 100644 --- a/templates/jail_confs/_epl_network.j2 +++ b/templates/jail_confs/_epl_network.j2 @@ -8,10 +8,11 @@ exec.prestart += "ifconfig brlan0 addm epl{{ jail.num }}a"; exec.poststart += "ifconfig epl{{ jail.num }}b vnet ${name}"; exec.poststart += "jexec ${name} ifconfig epl{{ jail.num }}b up"; exec.poststart += "ifconfig epl{{ jail.num }}a up"; -exec.poststart += "jexec ${name} ifconfig epl{{ jail.num }}b 192.168.2.{{ jail.num }}/16"; +exec.poststart += "jexec ${name} ifconfig epl{{ jail.num }}b {{ jail_lan_prefix }}.{{ jail.num + jail_ip_offset }}/{{ jail_lan_prefixlen }}"; exec.poststart += "jexec ${name} route delete default || echo 'No default route to delete'"; +{% if not is_test_vm %} exec.poststart += "jexec ${name} route add 10.6.210.0/24 {{ lan_ipv4_gateway }} || echo 'Failed to add Wireguard return route'"; - +{% endif %} exec.poststop += "ifconfig epl{{ jail.num }}a destroy"; ## _epl_network end -- cgit v1.3