forked from evolix/ansible-roles
minifirewall also fix minifirewall_status
This commit is contained in:
parent
8bfc4c28bc
commit
edeb5bcfcf
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
is_started() {
|
is_started() {
|
||||||
/sbin/iptables -L -n \
|
/sbin/iptables -L -n \
|
||||||
| grep -E "^(DROP\s+udp|ACCEPT\s+icmp)\s+--\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
|
| grep --quiet --extended-regexp "^(DROP\s+(udp|17)|ACCEPT\s+(icmp|1))\s+--\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
|
||||||
}
|
}
|
||||||
return_started() {
|
return_started() {
|
||||||
echo "started"
|
echo "started"
|
||||||
|
|
Loading…
Reference in a new issue