amitdhanani.in/2026/11/28/w...
#Firewall #iptables #output #prerouting
amitdhanani.in/2026/11/28/w...
#Firewall #iptables #output #prerouting
iptables -t raw -I PREROUTING 1 -p tcp -m u32 --u32 '0>>22&0x3C=24:60' -j DROP
iptables -t raw -I PREROUTING 1 -p tcp -m u32 --u32 '0>>22&0x3C=24:60' -j DROP
source: github.com/mahdi-salman...
source: github.com/mahdi-salman...
https://arxiv.org/abs/2609.18063
https://arxiv.org/abs/2609.18063
---
**Further Technical Reading:**
- [Review th
---
**Further Technical Reading:**
- [Review th
AI: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
Me: What is the target port??? 😵
AI: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
Me: What is the target port??? 😵
➤ https://ku.bz/TGH904JHS
➤ https://ku.bz/TGH904JHS
➜ https://ku.bz/TGH904JHS
➜ https://ku.bz/TGH904JHS
-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
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...
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...
- `containers.
- `containers.
- But `localAddress` is what **host** must use with `iptables -t nat PREROUTING -s `
Wat?!
- `containers.
- `containers.
- But `localAddress` is what **host** must use with `iptables -t nat PREROUTING -s `
Wat?!
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
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
Oder ich mag Linux-Netzwerkkonfigurationdateien nicht.
Oder beides. 🤯
#iptables #ufw #before.rules #prerouting #forward #postrouting
Oder ich mag Linux-Netzwerkkonfigurationdateien nicht.
Oder beides. 🤯
#iptables #ufw #before.rules #prerouting #forward #postrouting
Prompt: „ich habe deine Anfrage nicht verstanden. Hier sind die bekannten Routen: …“
Prompt: „ich habe deine Anfrage nicht verstanden. Hier sind die bekannten Routen: …“