#postrouting
iptables -t nat -A OUTPUT -p tcp -d 127.0.0.1 --dport 3306 \
-j DNAT --to-destination 192.168.20.21:3306 im Container

Eventuell noch:

iptables -t nat -A POSTROUTING -p tcp -d 192.168.20.21 --dport 3306 \
-j MASQUERADE
May 19, 2026 at 6:28 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
Noice!

It has been a while but I've vague memories, and partially functional snippets, which lead me to believe ya may also want to jump to the masquerade chain for VPN stuff near the end

Ex;

iptables -t nat -A POSTROUTING -s "${_server_ipv4_range}" -o "${_interface}" -j MASQUERADE
December 14, 2025 at 9:18 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
oh, but if you log an encapsulated GRE packet with nft on the postrouting hook, with the `ether` flag to enable MAC address decoding, you get leftover bytes from the inner IP header shoved into the MACDST/MACSRC/MACPROTO fields?

I guess the ethernet header gets populated much later than IP […]
Original post on mstdn.io
mstdn.io
May 1, 2026 at 10:50 AM
老板用的 owrt 没有在 uci 上开 masq6 的接口,手写了 ip 桌子(原来还算简单)
`ip6tables -t nat -{A,I} POSTROUTING -o $WAN -j MASQUERADE`
结果学校的 v6 还是被限速了,失去了通网的意义
November 22, 2025 at 4:25 AM
Parfois j'abuse un peu de mon goût pour les pipes 😂

iptables -t nat -vn --line-numbers -L POSTROUTING | grep "\stun0\s" | cut -d" " -f1 | sort -k1nr | while read l; do iptables -t nat -D POSTROUTING $l; done

Vraiment sale et sur un coin de table 🤣
September 28, 2023 at 6:32 AM
La tetra dinámica: NextDNS, Wireguard con Proton VPN y Avast Antivirus, configuraciones clave para cifrado, protección contra malware y privacidad al máximo

Hola en este nuevo post te dire mi secreto para protegerme en la red, al combinar NextDNS, Wireguard, Proton VPN y Avast Antivirus, solo…
La tetra dinámica: NextDNS, Wireguard con Proton VPN y Avast Antivirus, configuraciones clave para cifrado, protección contra malware y privacidad al máximo
Hola en este nuevo post te dire mi secreto para protegerme en la red, al combinar NextDNS, Wireguard, Proton VPN y Avast Antivirus, solo tienes que ver el vídeo Configuraciones en wireguard de interfaz y peer PrivateKey = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX <--- clave privada asignada por proton vpn Address = 10.2.0.2/32DNS = {dns de tu perfil en nextdns}PostUp = iptables -t nat -A POSTROUTING -o…
nubelogica.wordpress.com
January 7, 2026 at 1:14 AM
🚨 Critical Steps: • Enable IP forwarding in sysctl.conf • Add MASQUERADE rule in POSTROUTING chain • Test with ss -tuln to verify open ports • Restart services after config changes Avoid leaks: Restrict source IPs via firewall rules!
June 10, 2025 at 10:15 AM
`-A POSTROUTING -s 10.10.1.0/24 ! -o br-1ae9be78853c -j MASQUERADE`

This is what docker added for the subnet
May 26, 2024 at 3:30 PM
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
UMTS with the AT&T DPH-153 femto
Update! Finally managed to get some PS through! The issue turned out to be the fact that osmo-upf expects to be sending/receiving packets via some physical network interface, and thus it only sets up chains for prerouting and postrouting, but in the case osmo-ggsn is hosted on the same machine as osmo-upf, a few changes are needed to properly route those packets through the input/output chains. These lines must be added in `osmo-upf/src/osmo-upf/upf_nft.c`: The 1xbts low-rate link checker tells me I’m getting 600/17kbps on the application layer, but I’m sure this can be improved with some research into the confs on the femto. So, here’s what remains: * I can still only get PS to work on 3G if I activate a PDP context on EDGE and then switch to 3G. For some reason this lets one more activation on 3G go through, but eventually it is deactivated after not being used and will not come back. * Speed issues, I’d like to try sending MMS but the 13kbps upload makes this a challenge. (anyone have experiece with PS on ip.access femtos? The DPH-153 uses a similar filesystem) * Checking if there is a proper way to get osmo-mgw to accept RTP from the wrong source address (see #10 and #11) * Possibly submitting a PR for my changes if you think they are fit * Writing a guide on the whole process of modding the femto and setting it up for 3G?
discourse.osmocom.org
June 29, 2026 at 7:32 AM