mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-09 01:04:06 +01:00
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:
parent
49944c7d9a
commit
1cb43c539c
@ -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..."
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user