Fix IPV6 var not being defined on stop
This commit is contained in:
parent
60ca9f67b2
commit
30041b8949
|
@ -51,6 +51,11 @@ BROAD='255.255.255.255'
|
||||||
PORTSROOT='0:1023'
|
PORTSROOT='0:1023'
|
||||||
PORTSUSER='1024:65535'
|
PORTSUSER='1024:65535'
|
||||||
|
|
||||||
|
# Configuration
|
||||||
|
oldconfigfile="/etc/firewall.rc"
|
||||||
|
configfile="/etc/default/minifirewall"
|
||||||
|
|
||||||
|
IPV6=$(grep "IPV6=" /etc/default/minifirewall | awk -F '=' -F "'" '{print $2}')
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
@ -109,9 +114,6 @@ $IPT -N LOG_ACCEPT
|
||||||
$IPT -A LOG_ACCEPT -j LOG --log-prefix '[IPTABLES ACCEPT] : '
|
$IPT -A LOG_ACCEPT -j LOG --log-prefix '[IPTABLES ACCEPT] : '
|
||||||
$IPT -A LOG_ACCEPT -j ACCEPT
|
$IPT -A LOG_ACCEPT -j ACCEPT
|
||||||
|
|
||||||
# Configuration
|
|
||||||
oldconfigfile="/etc/firewall.rc"
|
|
||||||
configfile="/etc/default/minifirewall"
|
|
||||||
|
|
||||||
if test -f $oldconfigfile; then
|
if test -f $oldconfigfile; then
|
||||||
echo "$oldconfigfile is deprecated, rename to $configfile" >&2
|
echo "$oldconfigfile is deprecated, rename to $configfile" >&2
|
||||||
|
|
|
@ -13,7 +13,7 @@ IPV6=on
|
||||||
INTLAN='192.168.0.2/32'
|
INTLAN='192.168.0.2/32'
|
||||||
|
|
||||||
# Trusted IPv4 addresses for private and semi-public services
|
# Trusted IPv4 addresses for private and semi-public services
|
||||||
TRUSTEDIPS='62.212.121.90 88.179.18.233 31.170.8.4 31.170.9.129'
|
TRUSTEDIPS=''
|
||||||
|
|
||||||
# Privilegied IPv4 addresses for semi-public services
|
# Privilegied IPv4 addresses for semi-public services
|
||||||
# (no need to add again TRUSTEDIPS)
|
# (no need to add again TRUSTEDIPS)
|
||||||
|
|
Loading…
Reference in a new issue