Solved Are iptables an obstacle if using nftables?

Solved issue

CaffeineAddict

Well-Known Member
Joined
Jan 21, 2024
Messages
488
Reaction score
311
Credits
4,048
I have nftables configured and that's what's used for firewalling, but out of curiosity I've run iptables in terminal and figured out it's installed and configured to allow all traffic.

I'm not sure how is it possible that 2 firewalls are installed at the same time.
I don't know if iptables conflicts with nftables and how, and whether I should purge iptables.
Why is iptables installed by default on Debian? Using Debian 12.
 


In debian it looks like iptables just uses nftables:
Code:
[tom@min ~]$ whereis iptables
iptables: /usr/sbin/iptables /usr/share/iptables /usr/share/man/man8/iptables.8.gz

[tom@min ~]$ file /usr/sbin/iptables
/usr/sbin/iptables: symbolic link to /etc/alternatives/iptables

[tom@min ~]$ ls -al /etc/alternatives/iptables
lrwxrwxrwx 1 root root 22 Nov 15 08:29 /etc/alternatives/iptables-nft

[tom@min ~]$ file /usr/sbin/iptables-nft
/usr/sbin/iptables-nft: symbolic link to xtables-nft-multi

[tom@min ~]$ file /usr/sbin/xtables-nft-multi
/usr/sbin/xtables-nft-multi: ELF 64-bit LSB pie executable, x86-67a4831ee8153, for GNU/Linux 3.2.0, stripped
Then, man xtables-nft-multi:
xtables-nft-multi — iptables using nftables kernel api
 
I'll be seeing him on Sunday, we'll have a laugh about it. ;)
 
No.....not Sunday, Chris....Monday ...probably afternoon....will sms as we leave Buderim
 

Members online


Latest posts

Top