mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-14 05:36:55 +02: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
|
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 INPUT ACCEPT 2> /dev/null
|
||||||
ip6tables -P OUTPUT ACCEPT 2> /dev/null
|
ip6tables -P OUTPUT ACCEPT 2> /dev/null
|
||||||
ip6tables -P FORWARD 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
|
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||||
|
|
||||||
|
__EOF__
|
||||||
|
if [ -n "$DISABLE_IPV6" ]; then
|
||||||
|
cat >> $RESTOREBASE << __EOF__
|
||||||
if qt mywhich ip6tables; then
|
if qt mywhich ip6tables; then
|
||||||
ip6tables -P INPUT ACCEPT 2> /dev/null
|
ip6tables -P INPUT ACCEPT 2> /dev/null
|
||||||
ip6tables -P OUTPUT ACCEPT 2> /dev/null
|
ip6tables -P OUTPUT ACCEPT 2> /dev/null
|
||||||
ip6tables -P FORWARD ACCEPT 2> /dev/null
|
ip6tables -P FORWARD ACCEPT 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
__EOF__
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >> $RESTOREBASE << __EOF__
|
||||||
run_user_exit clear
|
run_user_exit clear
|
||||||
|
|
||||||
set_state "Cleared"
|
set_state "Cleared"
|
||||||
|
@ -69,6 +69,12 @@ case "$COMMAND" in
|
|||||||
status=$?
|
status=$?
|
||||||
echo "done."
|
echo "done."
|
||||||
;;
|
;;
|
||||||
|
reload)
|
||||||
|
echo "Reloading Shorewall...."
|
||||||
|
define_firewall
|
||||||
|
status=$?
|
||||||
|
echo "done."
|
||||||
|
;;
|
||||||
clear)
|
clear)
|
||||||
echo "Clearing Shorewall...."
|
echo "Clearing Shorewall...."
|
||||||
clear_firewall
|
clear_firewall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user