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() {