Here is the behaviour I am seeing with /etc/xapi.d/plugins/firewall-port:

The change that would work.
check)
if [[ -z `iptables -S $CHAIN | grep " $PORT "` ]]
then
echo "Port $PORT open: true"
else
echo "Port $PORT open: false"
fi
;;
to
check)
if [[ -z `iptables -n -v -S $CHAIN | grep " $PORT "` ]]
then
echo "Port $PORT open: true"
else
echo "Port $PORT open: false"
fi
;;
If I knew how to do a git pull request and all that I'd do it, however I do not.
Here is the behaviour I am seeing with /etc/xapi.d/plugins/firewall-port:

The change that would work.
check) if [[ -z `iptables -S $CHAIN | grep " $PORT "` ]] then echo "Port $PORT open: true" else echo "Port $PORT open: false" fi ;;to
check) if [[ -z `iptables -n -v -S $CHAIN | grep " $PORT "` ]] then echo "Port $PORT open: true" else echo "Port $PORT open: false" fi ;;If I knew how to do a git pull request and all that I'd do it, however I do not.