minifirewall: support protocols in numeric form
This commit is contained in:
parent
eae2eed7b0
commit
b7dea8d456
|
@ -17,6 +17,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
minifirewall: support protocols in numeric form
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
|
@ -39,7 +39,7 @@ is_minifirewall_started() {
|
||||||
if test -x /usr/share/scripts/minifirewall_status; then
|
if test -x /usr/share/scripts/minifirewall_status; then
|
||||||
/usr/share/scripts/minifirewall_status > /dev/null
|
/usr/share/scripts/minifirewall_status > /dev/null
|
||||||
else
|
else
|
||||||
/sbin/iptables -L -n | grep -q -E "^(DROP\s+udp|ACCEPT\s+icmp)\s+--\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
|
/sbin/iptables -L -n | grep -q -E "^(DROP\s+(udp|17)|ACCEPT\s+(icmp|1)))\s+--\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue