From 49bea0ba2f6435206aac47b0640dfb11eff15751 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 25 Aug 2025 14:58:25 -0600 Subject: [PATCH] network: don't allow dots in interface name if -V --- usr/local/share/bastille/network.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr/local/share/bastille/network.sh b/usr/local/share/bastille/network.sh index c6191b0b..757a012a 100644 --- a/usr/local/share/bastille/network.sh +++ b/usr/local/share/bastille/network.sh @@ -211,6 +211,13 @@ validate_netif() { else error_exit "Invalid: (${_interface})." fi + + # Don't allow dots in INTERFACE if -V + if [ "${VNET}" -eq 1 ] && [ "${BRIDGE}" -eq 0 ]; then + if echo "${INTERFACE}" | grep -q "\."; then + error_exit "[ERROR]: [-V|--vnet] does not support dots (.) in interface names." + fi + fi } check_interface_added() {