I have two docker containers running on my machine where a very restrictive nftables configuration is active. I’d like to keep it that way but whitelist access to the docker containers from outside.
I have a Fedora 31 system on which I am using
iptables-nft. I need this because there is still a bunch of software that expects the legacy
iptables command line tools. This means that my nftables configuration has the corresponding set of tables to match the legacy configuration:
I have two virtual machines (router and client) ubuntu server 18 04, the router is the gateway for the client.Nftables are installed on the router and a NAT table is created with two chains pre and postrouting with a rule for the client.