Public bug reported:

dear all,

if I run "iptables -t nat -L PREROUTING" I see 4 rules (that are working
as expected).

The script here below should print the same rules, but prints nothing

vvvvvvvvvvvvv
#!/usr/bin/python3

import iptc

# Get the nat table
table = iptc.Table(iptc.Table.NAT)

# Get the PREROUTING chain
chain = iptc.Chain(table, "PREROUTING")

# Iterate over all rules in the PREROUTING chain
for rule in chain.rules:
    print(rule)

^^^^^^^^^^^^^

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: python3-iptables 1.0.1-1ubuntu2
ProcVersionSignature: Ubuntu 6.8.0-58.60-generic 6.8.12
Uname: Linux 6.8.0-58-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Fri May 23 22:47:23 2025
EcryptfsInUse: Yes
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: python-iptables
UpgradeStatus: Upgraded to noble on 2024-09-18 (247 days ago)

** Affects: python-iptables (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2111624

Title:
  does not report the chain content

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-iptables/+bug/2111624/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to