forked from extern/shorewall_code
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:
parent
2bcb33a34d
commit
1623988384
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user