Fix comments in /sbin/shorewall-lite

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4267 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-07-21 16:37:00 +00:00
parent 69e478be24
commit 8972adfb82
3 changed files with 37 additions and 41 deletions

View File

@ -305,15 +305,11 @@ echo "Help command executor installed in ${PREFIX}/usr/share/shorewall-lite/help
# #
# Install the Modules files # Install the Modules files
# #
if [ ! -f ${PREFIX}/usr/share/shorewall-lite/modules ]; then run_install $OWNERSHIP -m 0600 modules ${PREFIX}/usr/share/shorewall-lite/modules
run_install $OWNERSHIP -m 0600 modules ${PREFIX}/usr/share/shorewall-lite/modules echo "Modules file installed as ${PREFIX}/usr/share/shorewall-lite/modules"
echo "Modules file installed as ${PREFIX}/usr/share/shorewall-lite/modules"
fi
if [ ! -f ${PREFIX}/usr/share/shorewall-lite/xmodules ]; then run_install $OWNERSHIP -m 0600 xmodules ${PREFIX}/usr/share/shorewall-lite/xmodules
run_install $OWNERSHIP -m 0600 xmodules ${PREFIX}/usr/share/shorewall-lite/xmodules echo "Xmodules file installed as ${PREFIX}/usr/share/shorewall-lite/xmodules"
echo "Xmodules file installed as ${PREFIX}/usr/share/shorewall-lite/xmodules"
fi
# #
# Create the version file # Create the version file

View File

@ -4,11 +4,11 @@
# #
# This program is under GPL [http://www.gnu.org/copyleft/gpl.htm] # This program is under GPL [http://www.gnu.org/copyleft/gpl.htm]
# #
# (c) 1999,2000,2001,2002,2003,2004,2005,2006 - Tom Eastep (teastep@shorewall.net) # (c) 2006 - Tom Eastep (teastep@shorewall.net)
# #
# This file should be placed in /sbin/shorewall-lite. # This file should be placed in /sbin/shorewall-lite.
# #
# Shorewall documentation is available at http://shorewall.sourceforge.net # Shorewall documentation is available at http://shorewall.net
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of Version 2 of the GNU General Public License # it under the terms of Version 2 of the GNU General Public License
@ -23,62 +23,62 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA
# #
# If an error occurs while starting or restarting the firewall, the # If an error occurs while starting or restarting the firewall, the
# firewall is automatically stopped. # firewall is automatically stopped.
# #
# Commands are: # Commands are:
# #
# shorewall dump Dumps all Shorewall-related information # shorewall-lite dump Dumps all Shorewall-related information
# for problem analysis # for problem analysis
# shorewall start Starts the firewall # shorewall-lite start Starts the firewall
# shorewall restart Restarts the firewall # shorewall-lite restart Restarts the firewall
# shorewall stop Stops the firewall # shorewall-lite stop Stops the firewall
# shorewall status Displays firewall status # shorewall-lite status Displays firewall status
# shorewall reset Resets iptables packet and # shorewall-lite reset Resets iptables packet and
# byte counts # byte counts
# shorewall clear Open the floodgates by # shorewall-lite clear Open the floodgates by
# removing all iptables rules # removing all iptables rules
# and setting the three permanent # and setting the three permanent
# chain policies to ACCEPT # chain policies to ACCEPT
# shorewall show <chain> [ <chain> ... ] Display the rules in each <chain> listed # shorewall-lite show <chain> [ <chain> ... ] Display the rules in each <chain> listed
# shorewall show log Print the last 20 log messages # shorewall-lite show log Print the last 20 log messages
# shorewall show connections Show the kernel's connection # shorewall-lite show connections Show the kernel's connection
# tracking table # tracking table
# shorewall show nat Display the rules in the nat table # shorewall-lite show nat Display the rules in the nat table
# shorewall show {mangle|tos} Display the rules in the mangle table # shorewall-lite show {mangle|tos} Display the rules in the mangle table
# shorewall show tc Display traffic control info # shorewall-lite show tc Display traffic control info
# shorewall show classifiers Display classifiers # shorewall-lite show classifiers Display classifiers
# shorewall show capabilities Display iptables/kernel capabilities # shorewall-lite show capabilities Display iptables/kernel capabilities
# shorewall version Display the installed version id # shorewall-lite version Display the installed version id
# shorewall logwatch [ refresh-interval ] Monitor the local log for Shorewall # shorewall-lite logwatch [ refresh-interval ] Monitor the local log for Shorewall
# messages. # messages.
# shorewall drop <address> ... Temporarily drop all packets from the # shorewall-lite drop <address> ... Temporarily drop all packets from the
# listed address(es) # listed address(es)
# shorewall reject <address> ... Temporarily reject all packets from the # shorewall-lite reject <address> ... Temporarily reject all packets from the
# listed address(es) # listed address(es)
# shorewall allow <address> ... Reenable address(es) previously # shorewall-lite allow <address> ... Reenable address(es) previously
# disabled with "drop" or "reject" # disabled with "drop" or "reject"
# shorewall save [ <file> ] Save the list of "rejected" and # shorewall-lite save [ <file> ] Save the list of "rejected" and
# "dropped" addresses so that it will # "dropped" addresses so that it will
# be automatically reinstated the # be automatically reinstated the
# next time that Shorewall starts. # next time that Shorewall starts.
# Save the current state so that 'shorewall # Save the current state so that 'shorewall
# restore' can be used. # restore' can be used.
# #
# shorewall forget [ <file> ] Discard the data saved by 'shorewall save' # shorewall-lite forget [ <file> ] Discard the data saved by 'shorewall save'
# #
# shorewall restore [ <file> ] Restore the state of the firewall from # shorewall-lite restore [ <file> ] Restore the state of the firewall from
# previously saved information. # previously saved information.
# #
# shorewall ipaddr { <address>/<cidr> | <address> <netmask> } # shorewall-lite ipaddr { <address>/<cidr> | <address> <netmask> }
# #
# Displays information about the network # Displays information about the network
# defined by the argument[s] # defined by the argument[s]
# #
# shorewall iprange <address>-<address> Decomposes a range of IP addresses into # shorewall-lite iprange <address>-<address> Decomposes a range of IP addresses into
# a list of network/host addresses. # a list of network/host addresses.
# #
# shorewall ipdecimal { <address> | <integer> } # shorewall-lite ipdecimal { <address> | <integer> }
# #
# Displays the decimal equivalent of an IP # Displays the decimal equivalent of an IP
# address and vice versa. # address and vice versa.
@ -1318,7 +1318,7 @@ case "$COMMAND" in
if [ $(grep -c "$LOGFORMAT" $LOGFILE ) -gt 0 ] ; then if [ $(grep -c "$LOGFORMAT" $LOGFILE ) -gt 0 ] ; then
echo " HITS IP DATE" echo " HITS IP DATE"
echo " ---- --------------- ------" echo " ---- --------------- ------"
grep "$LOGFORMAT" $LOGFILE | sed 's/\(.\{6\}\)\(.*SRC=\)\(.*\)\( DST=.*\)/\3 \1/' | sort | uniq -c | sort -rn | \ grep "$LOGFORMAT" $LOGFILE | sed 's/\(.\{6\}\)\(.*SRC=\)\(.*\)\( DST=.*\)/\3 \1/' | sort | uniq -c | sort -rn | \
while read count address month day; do while read count address month day; do
printf '%7d %-15s %3s %2d\n' $count $address $month $day printf '%7d %-15s %3s %2d\n' $count $address $month $day
done done

View File

@ -1,5 +1,5 @@
############################################################################### ###############################################################################
# /etc/shorewall-lite/shorewall.conf V3.0 - Change the following variables to # /etc/shorewall-lite/shorewall.conf V3.2 - Change the following variables to
# match your setup # match your setup
# #
# This program is under GPL [http://www.gnu.org/copyleft/gpl.htm] # This program is under GPL [http://www.gnu.org/copyleft/gpl.htm]