mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-15 10:48:35 +02:00
Fix 'disable_ipv6
This commit is contained in:
@ -32,11 +32,9 @@ clear_firewall() {
|
|||||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||||
|
|
||||||
if [ -n "$DISABLE_IPV6" ]; then
|
if [ -n "$DISABLE_IPV6" ]; 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
|
fi
|
||||||
|
|
||||||
run_clear_exit
|
run_clear_exit
|
||||||
|
Reference in New Issue
Block a user