I have a Centos-8 machine which comes with nft-tables and with ip-tables libraries installed.
for example:
the files:
/lib64/xtables/*
/lib64/libiptc.so.0.0.0
/lib64/libiptc.so.0
are all exists and working, which means that I'm able to perform firewall rules which are working and affecting my machine communication.
my problem is that when I'm trying to run iptables commands from the cli and not from the library, it's not running the legacy version (it running iptables v1.8.4 (nf-tables)) which gives me the following warning:
Warning: iptables-legacy tables present, use iptables-legacy to see them
and I can't find a way to run iptables-legacy
which contains my firewall rules.
unfortunately a binary file "iptables-legacy" does not exists,
yum
and dnf
can't find any iptables-legacy
package and the following rpm installation fails constantly:
https://fedora.pkgs.org/35/fedora-x86_64/iptables-legacy-1.8.7-13.fc35.x86_64.rpm.html
my /etc/alternatives
doesn't contain anything related to iptables
and I can't find a way to access my rules from the cli.
any Idea?