0

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
8
  • 1
    Your details (22.04.3 & 20.04.4) show you're using rather old systems without security & other fixes applied; I suggest you apply fixes asap. Do you actually have a question though? as your description just shows a difference (without any question).
    – guiverc
    Commented May 10 at 10:18
  • What have you done to suppose there may be something to display in iptables-save ? otherwise did you try iptables-legacy-save ?
    – dominix
    Commented May 11 at 10:55
  • have a look at unix.stackexchange.com/questions/687857/…
    – dominix
    Commented May 11 at 11:02
  • @guiverc my system is up to date, the question is when i run command iptables-save showing some output on rhel7 rhel8 centos7 centos8 but not showing any output on ubuntu 22.04.3 & 20.04.4. Commented May 11 at 18:12
  • @dominix What have you done to suppose there may be something to display in iptables-save ? The output i have shared in my question is from rhel8 which i am not able to see in ubuntu machines u can also check by running this command on rhel and ubuntu machine Commented May 11 at 18:12

0

You must log in to answer this question.

Browse other questions tagged .