Generate error if 'lo' is defined in the interfaces file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@353 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-12-05 17:29:56 +00:00
parent cfee967d46
commit 992cc301a7

View File

@ -564,6 +564,9 @@ validate_interfaces_file() {
r="$z $interface $subnet $options"
[ "x$z" = "x-" ] || validate_zone $z || startup_error "Invalid zone ($z) in record \"$r\""
[ "x$interface" = "xlo" ] && \
startup_error "Error: The loopback interface (lo) may not be defined in /etc/shorewall/interfaces"
list_search $interface $all_interfaces && \
startup_error "Error: Duplicate Interface $interface"