From 2bcb33a34d15009a4784ed22243e5d1e4b3d8ff6 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 21 Jun 2002 17:20:18 +0000 Subject: [PATCH] Rename rfc1918 mangle chain git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@90 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 16 +++++++++------- Shorewall/releasenotes.txt | 4 ++++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index ed50ce61b..f1145b57f 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -2574,6 +2574,10 @@ initialize_netfilter () { # Construct zone-independent rules # ################################################################################ add_common_rules() { + logdisp() # $1 = Chain Name + { + echo "LOG --log-prefix "Shorewall:$1{1}:DROP:" --log-level info" + } ############################################################################ # Reject Rules # @@ -2661,13 +2665,11 @@ add_common_rules() { echo "Enabling RFC1918 Filtering" strip_file rfc1918 - - disp="LOG --log-prefix "Shorewall:rfc1918:DROP:" --log-level info" createchain rfc1918 no createchain logdrop no - run_iptables -A logdrop -j $disp + run_iptables -A logdrop -j `logdisp rfc1818` run_iptables -A logdrop -j DROP if [ -n "$MANGLE_ENABLED" ]; then @@ -2678,9 +2680,9 @@ add_common_rules() { # # Also add a chain to log and drop any RFC1918 packets that we find # - run_iptables -t mangle -N rfc1918 + run_iptables -t mangle -N man1918 run_iptables -t mangle -N logdrop - run_iptables -t mangle -A logdrop -j $disp + run_iptables -t mangle -A logdrop -j `logdisp man1918` run_iptables -t mangle -A logdrop -j DROP fi @@ -2691,7 +2693,7 @@ add_common_rules() { # RFC1918 destination # if [ -n "$MANGLE_ENABLED" ]; then - run_iptables -t mangle -A rfc1918 -d $subnet -j $target + run_iptables -t mangle -A man1918 -d $subnet -j $target fi done < $TMP_DIR/rfc1918 @@ -2701,7 +2703,7 @@ add_common_rules() { done [ -n "$MANGLE_ENABLED" ] && \ - run_iptables -t mangle -A PREROUTING -i $interface -j rfc1918 + run_iptables -t mangle -A PREROUTING -i $interface -j man1918 done fi diff --git a/Shorewall/releasenotes.txt b/Shorewall/releasenotes.txt index e04c4ee58..85d736911 100755 --- a/Shorewall/releasenotes.txt +++ b/Shorewall/releasenotes.txt @@ -5,6 +5,10 @@ In this release: 1. Entries in /etc/shorewall/interface that use the wildcard character ("+") now have the "multi" option assumed. +2. The 'rfc1918' chain in the mangle table has been renamed 'man1918' + to make log messages generated from that chain distinguishable from + those generated by the 'rfc1918' chain in the filter table. +