mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 01:53:27 +01:00
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:
parent
62a0cdfb02
commit
21cfe437d0
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user