More compiled-program tweaks

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3313 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-01-18 01:42:24 +00:00
parent 62a0cdfb02
commit 21cfe437d0
2 changed files with 14 additions and 1 deletions

View File

@ -2206,7 +2206,7 @@ clear_firewall() {
echo 1 > /proc/sys/net/ipv4/ip_forward
if qt mywhich ip6tables; then
if [ -n "$DISABLE_IPV6" ] && qt mywhich ip6tables; then
ip6tables -P INPUT ACCEPT 2> /dev/null
ip6tables -P OUTPUT ACCEPT 2> /dev/null
ip6tables -P FORWARD ACCEPT 2> /dev/null
@ -9325,12 +9325,19 @@ clear_firewall() {
echo 1 > /proc/sys/net/ipv4/ip_forward
__EOF__
if [ -n "$DISABLE_IPV6" ]; then
cat >> $RESTOREBASE << __EOF__
if qt mywhich ip6tables; then
ip6tables -P INPUT ACCEPT 2> /dev/null
ip6tables -P OUTPUT ACCEPT 2> /dev/null
ip6tables -P FORWARD ACCEPT 2> /dev/null
fi
__EOF__
fi
cat >> $RESTOREBASE << __EOF__
run_user_exit clear
set_state "Cleared"

View File

@ -69,6 +69,12 @@ case "$COMMAND" in
status=$?
echo "done."
;;
reload)
echo "Reloading Shorewall...."
define_firewall
status=$?
echo "done."
;;
clear)
echo "Clearing Shorewall...."
clear_firewall