
nft-tables와 ip-tables 라이브러리가 설치된 Centos-8 머신이 있습니다.
예: 파일:
/lib64/xtables/*
/lib64/libiptc.so.0.0.0
/lib64/libiptc.so.0
모두 존재하고 작동합니다. 이는 작동하고 내 컴퓨터 통신에 영향을 미치는 방화벽 규칙을 수행할 수 있음을 의미합니다.
내 문제는 라이브러리가 아닌 cli에서 iptables 명령을 실행하려고 할 때 레거시 버전(iptables v1.8.4(nf-tables)을 실행 중)이 실행되지 않고 다음과 같은 경고가 표시된다는 것입니다.
Warning: iptables-legacy tables present, use iptables-legacy to see them
iptables-legacy
방화벽 규칙이 포함된 실행 방법을 찾을 수 없습니다 .
불행하게도 바이너리 파일 "iptables-legacy"가 존재하지 않으며
yum
패키지 를 dnf
찾을 수 없으며 iptables-legacy
다음 rpm 설치가 지속적으로 실패합니다.
https://fedora.pkgs.org/35/fedora-x86_64/iptables-legacy-1.8.7-13.fc35.x86_64.rpm.html
내 파일 /etc/alternatives
에는 관련된 내용이 아무것도 없으며 iptables
cli에서 내 규칙에 액세스할 수 있는 방법을 찾을 수 없습니다.
어떤 아이디어?
답변1
나는 비슷한 문제가있었습니다. 내 경우에는 iptables-legacy가 Docker 컨테이너에 의해 설정되었으며 바이너리 파일은 컨테이너가 실행 중일 때만 존재했습니다.
다음을 통해 바이너리를 찾으려고 했습니까 find / -name iptables-legacy
?