# iptables-save -t filter
# Generated by iptables-save v1.8.7 on Wed Feb 21 16:24:01 2024
*filter
:INPUT ACCEPT [46235906:3534156413]
:FORWARD ACCEPT [2:333]
:OUTPUT ACCEPT [45417451:3296793074]
-A INPUT -i eth+ ...icmp-port-unreachable
-A INPUT -p tcp ..-reject-with icmp-port-unreachable
COMMIT
# Completed on Wed Feb 21 16:24:01 2024
# Warning: iptables-legacy tables present, use iptables-legacy-save to see them
Ubuntu 22.04 python-iptables-1.0.1
the list is empty.
But the rules are installed.