When i run iptables-save
command on Ubuntu Ubuntu 22.04.3 LTS and Ubuntu 20.04.4 LTS it not showing default firewall chain rules when i run this other linux example centos or redhat i am able to see below output:
[root@rhel-8-50805-client ~]# iptables-save
# Generated by iptables-save v1.8.4 on Fri May 10 10:03:11 2024
*filter
:INPUT ACCEPT [33772:226622349]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [28942:9992818]
COMMIT
# Completed on Fri May 10 10:03:11 2024
# Generated by iptables-save v1.8.4 on Fri May 10 10:03:11 2024
*security
:INPUT ACCEPT [33772:226622349]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [28942:9992818]
COMMIT
# Completed on Fri May 10 10:03:11 2024
# Generated by iptables-save v1.8.4 on Fri May 10 10:03:11 2024
*raw
:PREROUTING ACCEPT [33773:226622837]
:OUTPUT ACCEPT [28942:9992818]
COMMIT
# Completed on Fri May 10 10:03:11 2024
# Generated by iptables-save v1.8.4 on Fri May 10 10:03:11 2024
*mangle
:PREROUTING ACCEPT [33773:226622837]
:INPUT ACCEPT [33772:226622349]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [28942:9992818]
:POSTROUTING ACCEPT [28942:9992818]
COMMIT
# Completed on Fri May 10 10:03:11 2024
# Generated by iptables-save v1.8.4 on Fri May 10 10:03:11 2024
*nat
:PREROUTING ACCEPT [2:552]
:INPUT ACCEPT [1:64]
:POSTROUTING ACCEPT [871:61737]
:OUTPUT ACCEPT [871:61737]
COMMIT
# Completed on Fri May 10 10:03:11 2024
iptables-save
? otherwise did you tryiptables-legacy-save
?