title: nftables rules for docker
body: <p>System : RHEL 8.4
  Docker Version : 20.10</p>
  <p>RHEL 8 has moved from iptables to nftables and Docker inbuild uses iptables to set firewall rules on the machine.</p>
  <p>It seems to have break the communication from docker containers to host services, and also to other hosted docker containers on the same network.</p>
  <p>I have to communicate to registry hosted in container on port 5000.</p>
  <p>And also I am hosting impala services in container and opened exposed following ports</p>
  <p>21000</p>
  <p>21050</p>
  <p>25000</p>
  <p>25010</p>
  <p>25020</p>
  <p>Also when i logged in to container it cannot make contact to internet.</p>
  <p>Does anyone know what rules can be set to make proper communications to docker.
  Also the service hosted in container must be able to contact all the related host services.</p>
  <p>Things tried until now :</p>
  <p>Made changes in /etc/docker/daemon.json</p>
  <pre><code>{
  &quot;iptables&quot; : false
  }
  </code></pre>
  <p>And based on this <a href="https://gist.github.com/dearing/9388218f3c6ef6e48114" rel="nofollow noreferrer">link</a> tried to set up rules , but no luck</p>
  <p>FYI : I have no idea for setting up any type of rules in linux firewall (not with iptables nor with nftables)</p>