#prerouting
For people who still use iptables/iptables-nft, and despite Redhat's vagueposting about netfilter blocks being a "partial" mitigation, this closes the CVE-2026-98432 hole and doesn't have any plausible downsides–

iptables -t raw -I PREROUTING 1 -p tcp -m u32 --u32 '0>>22&0x3C=24:60' -j DROP
November 1, 2026 at 2:55 AM
/usr/sbin/iptables-legacy -t raw -I PREROUTING -p tcp -m u32 --u32 "0>>24&0xF=6:15" -m comment --comment CVE-2026-98432 -j DROP

source: github.com/mahdi-salman...
October 30, 2026 at 12:45 PM
Worth reading - an interesting paper on SSD-streamed 35B MoEs: prerouting experts 1 token ahead to fit on 24GB GPUs. See link below. #AI #LLM #MoE
https://arxiv.org/abs/2609.18063
October 30, 2026 at 8:40 AM
Block DoH on router: `iptables -t raw -A PREROUTING -p udp -m multiport --dports 443,853 -j REDIRECT --to-ports 53`. For upstream filtering, deploy AdGuard (https://adguard.com?aid=138327&subid=blueskysocia_1029 (#ad)). Verify via `dig @127.0.0.1 HA`.

---
**Further Technical Reading:**
- [Review th
October 29, 2026 at 11:03 AM
Another tweak to the firewall, I've collected all the MAC addresses of managed switches and things, and in the prerouting table I'm just dropping anything from them not destined for lan addresses. There's no reason for them to go out to the internet. And they have potential access to ALL the […]
Original post on mastodon.sdf.org
mastodon.sdf.org
March 9, 2026 at 9:43 PM
Me: How do I forward port 80 to 8000?

AI: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

Me: What is the target port??? 😵
August 27, 2026 at 3:09 PM
This article clarifies why DNAT chaining doesn't work in Kubernetes due to limitations in Linux iptables: NAT is tracked per connection using conntrack, and packets don’t re-enter PREROUTING after the first DNAT

➤ https://ku.bz/TGH904JHS
July 4, 2025 at 3:11 PM
This article clarifies why DNAT chaining doesn't work in Kubernetes due to limitations in Linux iptables: NAT is tracked per connection using conntrack, and packets don’t re-enter PREROUTING after the first DNAT

➜ https://ku.bz/TGH904JHS
June 4, 2025 at 3:06 PM
Muahahaha, mein Router pflegt jetzt eine Liste aller IP Adressen, die versucht haben sich auf Port 22 zu verbinden um diese dann im prerouting zu blocken. Ich bin mal gespannt wann dem Router der Speicher ausgeht 😂
March 9, 2026 at 9:51 AM
How come host can't use its own port forwarding?

-A PREROUTING -d [public-ip] [port matching] -j DNAT [to linux container]

So I want any connection from anywhere to be forwarded. But it doesn't apply to connections from same host. It just connects to itself as usual.

#iptables #linux
January 8, 2025 at 8:59 PM
iptabling
January 8, 2025 at 12:16 PM
postrouting, prerouting, forwarding, SNAT, DNAT, what the fuck am i doing, this is incomprehensible
November 23, 2024 at 9:27 AM
[Question] Does this iptables rule cause unnecessary routing?
submitted by Statick to selfhosted 1 points | 0 comments I’m routing game traffic on my VPS via wireguard to a home server that has games hosted via docker. Setup is… VPS/Wireguard -> Internet -> Wireguard/Dockerized Games Server Now, my current config WORKS… however I’m curious if there is some unnecessary routing going on. # VPS iptable rules (omitted PostDown) PostUp = iptables -t nat -A PREROUTING -i eth0 -p tcp --match multiport --dports 61000:61100 -j DNAT --to-destination 10.0.0.3 PostUp = iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # Game Server (omitted PostDown) Here are the iptable rules on the game server and the `–to-destination` part is what I’m curious about… PostUp = iptables -t nat -A PREROUTING -p tcp --dport 61000:61100 -d 10.0.0.3 -j DNAT --to-destination 192.168.1.14 PostUp = iptables -t nat -A POSTROUTING -j MASQUERADE 10.0.0.3 is the same machine as 192.168.1.14 The reason I’m setting the `–to-destination` ip to that is because the docker rules that are created in the `Chain DOCKER` section of the iptable rules are looking for the destination `nam-games.localdomain` which is my dns entry for the game server. I unfortunately don’t think I can change these because I’m using a game server management panel called Pterodactyl that adds these. I also don’t want to have to manually add rules to this every time I create a server. Chain DOCKER (2 references) target prot opt source destination RETURN all -- anywhere anywhere DNAT tcp -- anywhere nam-games.localdomain tcp dpt:61000 to:172.18.0.2:61000 DNAT udp -- anywhere nam-games.localdomain udp dpt:61000 to:172.18.0.2:61000 DNAT tcp -- anywhere nam-games.localdomain tcp dpt:61001 to:172.18.0.3:61001 DNAT udp -- anywhere nam-games.localdomain udp dpt:61001 to:172.18.0.3:61001 ## Concerns The setup I described above is the only config I have gotten to work, but I’m curious if it’s hitting the server, then going the router, only to be routed back to the same machine again. If it is, is there a better way to set this up?
lemmy.aicampground.com
February 6, 2025 at 4:21 PM
I wanna say, "nope", because offending rule was something like;

iptables -t nat -I PREROUTING 1 -m addrtype --dst-type LOCAL -j DOCKER

... which intercepts all local addresses. Where as issue 111852 doesn't involve `nat` table at all.

For now I yoinked code from;
github.com/network-util...
GitHub - network-utilities/iptables-insert-before-logging: Inserts iptables rules prior to logging rules
Inserts iptables rules prior to logging rules. Contribute to network-utilities/iptables-insert-before-logging development by creating an account on GitHub.
github.com
September 21, 2025 at 4:57 PM
#NixOS gotcha;

- `containers..hostAddress` is what host will assign to `ve-`

- `containers..localAddress` is what container gets on its `eth0`

- But `localAddress` is what **host** must use with `iptables -t nat PREROUTING -s
`

Wat?!
September 20, 2025 at 11:30 PM
Yesterday I burned no smoll amount of time fighting with iptables, felt like I was being touched by them skill-issues...

But today, in a stroke of genius, I did a `iptables -t nat -L PREROUTING -vn` and spotted docker filters were intercepting packets before my rules 🤦

#docker #networking #NixOS
September 20, 2025 at 8:45 PM
Ich bin also zu dämlich in Ubuntu einen Port-Redirector auf eine andere Maschine einzurichten.
Oder ich mag Linux-Netzwerkkonfigurationdateien nicht.
Oder beides. 🤯

#iptables #ufw #before.rules #prerouting #forward #postrouting
February 24, 2026 at 3:59 PM
„Hey zeig mir mal die Firewall rulesets in der prerouting table“

Prompt: „ich habe deine Anfrage nicht verstanden. Hier sind die bekannten Routen: …“
January 27, 2025 at 11:10 AM
⚡ Practical Examples: 1. Minecraft Server: iptables -t nat -A PREROUTING -p tcp --dport 25565 -j DNAT --to-destination 192.168.1.100:25565 2. Docker: Use -p flag (e.g., -p 8080:80) for automatic forwarding Bonus: IPv6→IPv4? Try 6tunnel!
June 10, 2025 at 10:15 AM
Apparently these aren't recognized either. The quickest fix seems like adding an iptables rule to re-write the destination to the server's local IP address. Here's the iptables-save
January 24, 2025 at 4:02 AM