#!/bin/bash

if [ -e /usr/sbin/nft ]
then
	# check_firewall_nft does not support "-6" parameter, remove it
	/usr/lib/nagios/plugins/check_firewall_nft ${@/-6}
	exit $?
else
	/usr/lib/nagios/plugins/check_firewall $@
	exit $?
fi
