release doc update; add comments to prog.*

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9574 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2009-03-02 03:25:16 +00:00
parent cb078a416e
commit 3adff7f550
8 changed files with 74 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Changes in Shorewall 4.3.7
1) Fix forward treatment of interface options.
2) Replace $VARDIR/.restore with $VARDIR/firewall
Changes in Shorewall 4.3.6 Changes in Shorewall 4.3.6
1) Add SAME tcrules target. 1) Add SAME tcrules target.

View File

@ -1,3 +1,6 @@
###############################################################################
# Code imported from /usr/share/shorewall/prog.footer
###############################################################################
# #
# Give Usage Information # Give Usage Information
# #

View File

@ -1,3 +1,6 @@
###############################################################################
# Code imported from /usr/share/shorewall/prog.footer6
###############################################################################
# #
# Give Usage Information # Give Usage Information
# #

View File

@ -1,3 +1,6 @@
####################################################################################
# Functions imported from /usr/share/shorewall/prog.functions
####################################################################################
# #
# Clear Proxy Arp # Clear Proxy Arp
# #
@ -155,6 +158,9 @@ run_tc() {
fi fi
} }
#
# Restore the rules generated by 'drop','reject','logdrop', etc.
#
restore_dynamic_rules() { restore_dynamic_rules() {
if [ -f ${VARDIR}/save ]; then if [ -f ${VARDIR}/save ]; then
progress_message2 "Setting up dynamic rules..." progress_message2 "Setting up dynamic rules..."
@ -271,3 +277,6 @@ debug_restore_input() {
esac esac
done done
} }
####################################################################################
# End of f unctions imported from /usr/share/shorewall/prog.functions
####################################################################################

View File

@ -1,3 +1,6 @@
####################################################################################
# Functions imported from /usr/share/shorewall/prog.functions6
####################################################################################
# #
# Remove all Shorewall-added rules # Remove all Shorewall-added rules
# #
@ -131,6 +134,9 @@ run_tc() {
fi fi
} }
#
# Restore the rules generated by 'drop','reject','logdrop', etc.
#
restore_dynamic_rules() { restore_dynamic_rules() {
if [ -f ${VARDIR}/save ]; then if [ -f ${VARDIR}/save ]; then
progress_message2 "Setting up dynamic rules..." progress_message2 "Setting up dynamic rules..."
@ -232,3 +238,6 @@ debug_restore_input() {
esac esac
done done
} }
####################################################################################
# End of f unctions imported from /usr/share/shorewall/prog.functions
####################################################################################

View File

@ -20,7 +20,7 @@
# generated this program # generated this program
# #
################################################################################ ################################################################################
# Functions imported from /usr/share/shorewall/lib.base # Functions imported from /usr/share/shorewall/prog.header
################################################################################ ################################################################################
# #
# Message to stderr # Message to stderr
@ -647,6 +647,9 @@ get_routed_networks() # $1 = interface name, $2-n = Fatal error message
done done
} }
#
# Get the broadcast addresses associated with an interface
#
get_interface_bcasts() # $1 = interface get_interface_bcasts() # $1 = interface
{ {
local addresses local addresses
@ -796,6 +799,9 @@ add_ip_aliases() # $* = List of addresses
done done
} }
#
# Detect the gateway through a PPP or DHCP-configured interface
#
detect_dynamic_gateway() { # $1 = interface detect_dynamic_gateway() { # $1 = interface
local interface local interface
interface=$1 interface=$1
@ -817,6 +823,9 @@ detect_dynamic_gateway() { # $1 = interface
[ -n "$gateway" ] && echo $gateway [ -n "$gateway" ] && echo $gateway
} }
#
# Detect the gateway through an interface
#
detect_gateway() # $1 = interface detect_gateway() # $1 = interface
{ {
local interface local interface
@ -872,6 +881,10 @@ truncate() # $1 = length
cut -b -${1} cut -b -${1}
} }
#
# Clear the current traffic shaping configuration
#
delete_tc1() delete_tc1()
{ {
clear_one_tc() { clear_one_tc() {
@ -953,6 +966,9 @@ undo_routing() {
} }
#
# Restore the default route that was in place before the initial 'shorewall start'
#
restore_default_route() { restore_default_route() {
if [ -z "$NOROUTES" -a -f ${VARDIR}/default_route ]; then if [ -z "$NOROUTES" -a -f ${VARDIR}/default_route ]; then
local default_route local default_route
@ -1052,5 +1068,5 @@ conditionally_flush_conntrack() {
} }
################################################################################ ################################################################################
# End of functions imported from /usr/share/shorewall/lib.base # End of functions in /usr/share/shorewall/prog.header
################################################################################ ################################################################################

View File

@ -20,7 +20,7 @@
# generated this program # generated this program
# #
################################################################################ ################################################################################
# Functions imported from /usr/share/shorewall/lib.base # Functions imported from /usr/share/shorewall/prog.header
################################################################################ ################################################################################
# #
# Message to stderr # Message to stderr
@ -522,6 +522,9 @@ get_routed_networks() # $1 = interface name, $2-n = Fatal error message
done done
} }
#
# Normalize an IPv6 Address by compressing out consecutive zero elements
#
normalize_address() # $1 = valid IPv6 Address normalize_address() # $1 = valid IPv6 Address
{ {
local address local address
@ -743,6 +746,9 @@ INCLUDE() {
. $(find_file $(expand $@)) . $(find_file $(expand $@))
} }
#
# Detect the gateway through an interface
#
detect_gateway() # $1 = interface detect_gateway() # $1 = interface
{ {
local interface local interface
@ -765,11 +771,20 @@ detect_gateway() # $1 = interface
[ -n "$gateway" ] && echo $gateway [ -n "$gateway" ] && echo $gateway
} }
# Function to truncate a string -- It uses 'cut -b -<n>'
# rather than ${v:first:last} because light-weight shells like ash and
# dash do not support that form of expansion.
#
truncate() # $1 = length truncate() # $1 = length
{ {
cut -b -${1} cut -b -${1}
} }
#
# Clear the current traffic shaping configuration
#
delete_tc1() delete_tc1()
{ {
clear_one_tc() { clear_one_tc() {
@ -851,6 +866,9 @@ undo_routing() {
} }
#
# Restore the default route that was in place before the initial 'shorewall start'
#
restore_default_route() { restore_default_route() {
if [ -z "$NOROUTES" -a -f ${VARDIR}/default_route ]; then if [ -z "$NOROUTES" -a -f ${VARDIR}/default_route ]; then
local default_route local default_route
@ -950,5 +968,5 @@ conditionally_flush_conntrack() {
} }
################################################################################ ################################################################################
# End of functions imported from /usr/share/shorewall/lib.base # End of functions imported from /usr/share/shorewall/prog.header
################################################################################ ################################################################################

View File

@ -57,7 +57,12 @@ None.
N E W F E A T U R E S I N 4 . 3 . 6 N E W F E A T U R E S I N 4 . 3 . 6
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
None. 1) The file /var/lib/shorewall/.restore has been renamed to
/var/lib/shorewall/firewall. A similar change has been made in
Shorewall6.
When a successful start or restart is completed, the script that
executed the command copies itself to to /var/lib/shorewall[6/firewall.
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
N E W F E A T U R E S IN 4 . 3 N E W F E A T U R E S IN 4 . 3