<def-group>
  <definition class="compliance" id="ftp_configure_firewall" version="1">
    <metadata>
      <title>Configure the Firewall to Protect the FTP Server</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Configure the FTP connection tracking module
      in iptables.</description>
      <reference source="galford" ref_id="20150316" ref_url="test_attestation" />
    </metadata>
    <criteria operator="OR">
      <extend_definition comment="vsftpd package is not installed" negate="true" definition_ref="package_vsftpd_installed" />
      <criterion comment="Configure FTP firewall" test_ref="test_ftp_configure_firewall" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="Configure FTP firewall" id="test_ftp_configure_firewall" version="1">
    <ind:object object_ref="object_configure_firewall" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="Configure FTP firewall" id="object_configure_firewall" version="1">
    <ind:filepath>/etc/sysconfig/iptables-config</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*IPTABLES_MODULES=\".*ip_conntrack_ftp.*\"$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>

