From 1623988384bf1d654f5b6b458b97e6ad5683ac89 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 21 Jun 2002 21:40:36 +0000 Subject: [PATCH] Validate TARGET column in rfc1918 file git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@91 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Shorewall/firewall b/Shorewall/firewall index f1145b57f..a93e7876c 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -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