Public bug reported:

Ubuntu 24.04.3 behaves weirdly when it comes to "nat" iptables rules -
it completely ignores any of them (and "prerouting" in particular). It
won't log any packets or connections from "nat" either with "-j LOG".
Other distros (tested on fedora workstation 43) work as expected

Steps to reproduce:
1) Create two virtualbox (my case - 7.2.4, Windows 11 host) VMs, connect an 
additional host-only adapter to both
2) Boot one to ubuntu 24.04.3 live cd, another - to fedora workstation 43 
(installation can be omitted - works in live mode too)
3) Check local IPs of adapters
4) Use "sudo iptables -t nat -A PREROUTING -j LOG"
5) Start "nc -l 1111" on guests, "ncat 192.168.56.<guest ip> 1111" on host, 
send some messages (guests receive them as expected), close connection
6) Check "sudo dmesg" on both guests

Expected behaviour: iptables log message in both kernel logs
Real behaviour: only fedora's log has an iptables message ("IN=enp8s0 OUT= 
MAC=...")

Fully installing ubuntu and performing "apt dist-upgrade" does not fix
the issue

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


** Tags: iptables nat netfilter network

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

Title:
  Iptables "nat" table rules are ignored on 24.04

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


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

Reply via email to