From f52f017cc380fd1054b54f41b4aa14a4e0d6d9a3 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 12 Jun 2025 12:49:53 -0600 Subject: [PATCH] Update common.sh --- usr/local/share/bastille/common.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index 2ba8207a..4ba8e636 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -415,7 +415,6 @@ generate_vnet_jail_netblock() { exec.prestart += "ifconfig ${host_epair} ether ${macaddr}a"; exec.prestart += "ifconfig ${jail_epair} ether ${macaddr}b"; exec.prestart += "ifconfig ${host_epair} description \"vnet0 host interface for Bastille jail ${jail_name}\""; - exec.poststop += "ifconfig ${external_interface} deletem ${host_epair}"; exec.poststop += "ifconfig ${host_epair} destroy"; EOF else @@ -426,7 +425,6 @@ EOF exec.prestart += "epair0=\\\$(ifconfig epair create) && ifconfig \\\${epair0} up name ${host_epair} && ifconfig \\\${epair0%a}b up name ${jail_epair}"; exec.prestart += "ifconfig ${external_interface} addm ${host_epair}"; exec.prestart += "ifconfig ${host_epair} description \"vnet0 host interface for Bastille jail ${jail_name}\""; - exec.poststop += "ifconfig ${external_interface} deletem ${host_epair}"; exec.poststop += "ifconfig ${host_epair} destroy"; EOF fi @@ -442,7 +440,7 @@ EOF exec.prestart += "ifconfig ${host_epair} ether ${macaddr}a"; exec.prestart += "ifconfig ${jail_epair} ether ${macaddr}b"; exec.prestart += "ifconfig ${host_epair} description \"vnet0 host interface for Bastille jail ${jail_name}\""; - exec.poststop += "jib destroy ${jib_epair}"; + exec.poststop += "ifconfig ${host_epair} destroy"; EOF else ## Generate VNET config without static MAC address @@ -451,7 +449,7 @@ EOF vnet.interface = ${jail_epair}; exec.prestart += "jib addm ${jib_epair} ${external_interface}"; exec.prestart += "ifconfig ${host_epair} description \"vnet0 host interface for Bastille jail ${jail_name}\""; - exec.poststop += "jib destroy ${jib_epair}"; + exec.poststop += "ifconfig ${host_epair} destroy"; EOF fi elif [ "${bastille_network_vnet_type}" = "netgraph" ]; then