Validate TARGET column in rfc1918 file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@91 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-06-21 21:40:36 +00:00
parent 2bcb33a34d
commit 1623988384

View File

@ -2687,6 +2687,14 @@ add_common_rules() {
fi
while read subnet target; do
case $target in
logdrop|DROP|RETURN)
;;
*)
fatal_error " Error:Illegal target ($target) for $subnet"
;;
esac
run_iptables -A rfc1918 -s $subnet -j $target
####################################################################
# If packet mangling is enabled, trap packets with an