def _check_iptables_compatibility(self):
        try:
            iptables_version_string = subprocess.check_output([self.iptables_bin, "-V"])
        except subprocess.CalledProcessError:
            raise MissingBinaryError
        non_decimal = re.compile(r'[^\d.]+')
        version = non_decimal.sub('', iptables_version_string.split()[1])
        if tuple(version.split(".")) < (1, 2, 10):
            logger.error("iptables must be of version 1.2.10 or higher!")
            raise InvalidIPtablesVersionError
Checks iptables binary compatibility.
dataset/ETHPy150Open facebookarchive/neti/neti/iptables.py/IPtables._check_iptables_compatibility