Add SHOREWALL_LIBRARY global variable

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2649 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-09-08 22:30:32 +00:00
parent 6d310db4e5
commit 819e9dd38f
4 changed files with 30 additions and 5 deletions

View File

@ -6,6 +6,8 @@ Changes in 2.5.5
3) Fix error handling.
4) Add SHOREWALL_LIBRARY function.
Changes in 2.5.4
1) Allow TAG to be used as a general parameter mechanism [hack].

View File

@ -851,3 +851,5 @@ set_state () # $1 = state
{
echo "$1 ($(date))" > /var/lib/shorewall/state
}
SHOREWALL_LIBRARY=Loaded

View File

@ -19,6 +19,14 @@ New Features in 2.5.5:
firewall The firewall zone. There must be
exactly one firewall zone.
2) When /usr/share/shorewall/functions is loaded it now sets
SHOREWALL_LIBRARY=Loaded
Application code such as /etc/shorewall/tcstart may test that
variable to determine if the library has been loaded into the
current shell process.
Problems Corrected in 2.5.4:
1) Several serious problems associated with macros have been corrected.

View File

@ -11,6 +11,24 @@
# The names "all" and "none" are reserved and may not be
# used as zone names.
#
# Where a zone is nested in one or more other zones,
# you may follow the (sub)zone name by ":" and a
# comma-separated list of the parent zones. The parent
# zones must have been defined in earlier records in this
# file.
#
# Example:
#
# #ZONE TYPE OPTIONS
# a plain
# b plain
# c:a,b plain
#
# Currently, Shorewall uses this information only to reorder the
# zone list so that parent zones appear after their subzones in
# the list. In the future, Shorewall may make more extensive use
# of that information.
#
# TYPE ipsec - Communication with all zone hosts is encrypted
# Your kernel and iptables must include policy
# match support.
@ -58,11 +76,6 @@
#
# If you wish to leave a column empty but need to make an entry
# in a following column, use "-".
#
# THE ORDER OF THE ENTRIES IN THIS FILE IS IMPORTANT IF YOU HAVE NESTED OR
# OVERLAPPING ZONES DEFINED THROUGH /etc/shorewall/hosts.
#
# See http://www.shorewall.net/Documentation.htm#Nested
#------------------------------------------------------------------------------
# Example zones:
#