Diff for scripts/shell/firewall/fw-universal.sh between version 2.58 and 2.59
version 2.58, 2008/04/13 19:27:00 |
version 2.59, 2008/04/14 18:04:31 |
|
|
# Licensed under terms of GNU General Public License. |
# Licensed under terms of GNU General Public License. |
# All rights reserved. |
# All rights reserved. |
# |
# |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.57 2008-02-02 22:57:54 rajo Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.58 2008-04-13 19:27:00 rajo Exp $ |
# |
# |
# Changelog: |
# Changelog: |
# 2003-10-24 - created |
# 2003-10-24 - created |
|
|
|
|
if [ -f "$CACHE_FILE" ]; then |
if [ -f "$CACHE_FILE" ]; then |
print_info "Loading rules from cache file $CACHE_FILE" |
print_info "Loading rules from cache file $CACHE_FILE" |
|
|
|
# this has nothing to do with IPtables rules, we need to run them explicitly |
|
forward_on |
|
shaping_on |
|
|
|
# restore IPtables rules |
$IPTABLES_RESTORE -c < $CACHE_FILE; |
$IPTABLES_RESTORE -c < $CACHE_FILE; |
forward_on # this has nothing to do with IPtables rules, we need to run them explicitly |
|
exit 0; |
exit 0; |
fi |
fi |
} # }}} |
} # }}} |
Platon Group <platon@platon.org> http://platon.org/
|
|