Add loopback class A to rfc1918 file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@201 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-08-17 22:15:41 +00:00
parent aa01e00479
commit 652cadb22c
2 changed files with 11 additions and 18 deletions

View File

@ -1656,29 +1656,21 @@ add_a_rule()
case $proto in
tcp|udp|TCP|UDP|6|17)
if [ -n "$port" -a "x${port}" != "x-" ]; then
if [ -n "$multioption" ]; then
if [ "$port" != "${port%,*}" ]; then
multiport="$multioption"
dports="--dports $port"
else
dports="--dport $port"
fi
else
dports="--dport $port"
dports="--dport"
if [ -n "$multioption" -a "$port" != "${port%,*}" ]; then
multiport="$multioption"
dports="--dports"
fi
dports="$dports $ports"
fi
if [ -n "$cport" -a "x${cport}" != "x-" ]; then
if [ -n "$multioption" ]; then
if [ "$cport" != "${cport%,*}" ]; then
multiport="$multioption"
sports="--sports $cport"
else
sports="--sport $cport"
fi
else
sports="--sport $cport"
sports="--sport"
if [ -n "$multioption" -a "$cport" != "${cport%,*}" ]; then
multiport="$multioption"
sports="--sports"
fi
sports="$sports $cport"
fi
;;
icmp|ICMP|1)

View File

@ -51,6 +51,7 @@
84.0.0.0/6 logdrop # Reserved
88.0.0.0/5 logdrop # Reserved
96.0.0.0/3 logdrop # Reserved
127.0.0.0/8 logdrop # Loopback
197.0.0.0/8 logdrop # Reserved
222.0.0.0/7 logdrop # Reserved
240.0.0.0/4 logdrop # Reserved