Move the 'save' file to /var/lib/shorewall

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@76 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-06-16 17:56:45 +00:00
parent 49944c7d9a
commit 1cb43c539c
2 changed files with 3 additions and 3 deletions

View File

@ -2537,7 +2537,7 @@ initialize_netfilter () {
createchain reject no
createchain dynamic no
if [ -f /etc/shorewall/save ]; then
if [ -f /var/lib/shorewall/save ]; then
echo "Restoring dynamic rules..."
while read target ignore1 ignore2 address rest; do
@ -2548,7 +2548,7 @@ initialize_netfilter () {
*)
;;
esac
done < /etc/shorewall/save
done < /var/lib/shorewall/save
fi
echo "Creating input Chains..."

View File

@ -684,7 +684,7 @@ case "$1" in
[ $# -ne 1 ] && usage 1
mutex_on
if qt iptables -L shorewall -n; then
if iptables -L dynamic -n > /etc/shorewall/save; then
if iptables -L dynamic -n > /var/lib/shorewall/save; then
echo "Dynamic Rules Saved"
else
echo "Error Saving the Dynamic Rules"