shorewall forget

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1298 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-04-30 03:29:07 +00:00
parent d97b771632
commit 93da1e7cca
4 changed files with 37 additions and 7 deletions

View File

@ -33,3 +33,7 @@ Changes since 2.0.1
integration).
16) Use modprobe if it is available.
17) Lots of fixes to 'save'
18) 'shorewall forget'

View File

@ -116,6 +116,14 @@ drop)
See also \"help address\""
;;
forget)
echo "forget: forget
Deletes /var/lib/shorewall/save and /var/lib/shorewall/restore. Those
files are created by the 'shorewall save' command
See also \"help save\""
;;
help)
echo "help: help [<command> | host | address ]
Display helpful information about the shorewall commands."
@ -185,16 +193,23 @@ restart)
If \"-q\" is specified, less detain is displayed making it easier to spot warnings"
;;
Restore)
restore)
echo "restore: restore
Restore Shorewall to it's last state saved using the 'save' command
Restore Shorewall to its last state saved using the 'save' command
Existing connections are maintained.
See also \"help save\" and \"help forget\""
;;
save)
echo "save: save
The dynamic data is stored in /var/lib/shorewall/save
Shorewall allow, drop, rejct and save implement dynamic blacklisting."
The dynamic data is stored in /var/lib/shorewall/save. The state of the
firewall is stored in /var/lib/shorewall/restore for use by the 'shorewall restore'
and 'shorewall -f start' commands.
Shorewall allow, drop, rejct and save implement dynamic blacklisting.
See also \"help restore\" and \"help forget\""
;;
show)
@ -225,7 +240,7 @@ start)
Start shorewall. Existing connections through shorewall managed
interfaces are untouched. New connections will be allowed only
if they are allowed by the firewall rules or policies.
If \"-q\" is specified, less detain is displayed making it easier to spot warnings"
If \"-q\" is specified, less detain is displayed making it easier to spot warnings
If \"-f\" is specified, the last saved configuraton if any will be restored"
;;

View File

@ -52,10 +52,11 @@ New Features:
(currently, the firewall is placed in the 'stopped' state).
f) If you have previously saved the running configuration and want
Shorewall to discard it, simply 'rm /var/lib/shorewall/restore'.
Shorewall to discard it, use the 'shorewall forget' command.
WARNING: iptables 1.2.9 is broken with respect to iptables-save;
you must patch iptables 1.2.9 with the iptables patch availale from
If your kernel has connection tracking match support, you must
patch iptables 1.2.9 with the iptables patch availale from
the Shorewall errata page.
2) The previous implementation of dynamic zones was difficult to

View File

@ -80,6 +80,10 @@
# "dropped" addresses so that it will
# be automatically reinstated the
# next time that Shorewall starts.
# Save the current state so that 'shorewall
# restore' can be used.
#
# shorewall forget Discard the data saved by 'shorewall save'
#
# shorewall ipaddr [ <address>/<cidr> | <address> <netmask> ]
#
@ -539,6 +543,7 @@ usage() # $1 = exit status
echo " clear"
echo " delete <interface>[:<host>] <zone>"
echo " drop <address> ..."
echo " forget"
echo " help [ <command > | host | address ]"
echo " hits"
echo " ipcalc [ <address>/<vlsm> | <address> <netmask> ]"
@ -986,6 +991,11 @@ case "$1" in
fi
mutex_off
;;
forget)
rm -f /var/lib/shorewall/restore
rm -f /var/lib/shorewall/save
echo " Previously saved information discarded"
;;
ipcalc)
[ -n "$debugging" ] && set -x
if [ $# -eq 2 ]; then