Score:0

can't run iptables-legacy using cli - centos8

vn flag

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?

Score:0
us flag

Redhat has officially stated:

We are not going to include iptables-legacy in RHEL8

There is an EPEL package for 9 though. No clue why they did 9 and not 8.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.