I need to forward UDP port 28015 of my local machine to another machine with port UDP 28021. Rust Game Server. (Redirect incoming traffic on a specific port to a different IP address with altern port)
Tried: sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -A PREROUTING -p udp --dport 28015 -j DNAT --to-destination another_server:28021 iptables -t nat -A POSTROUTING -j MASQUERADE
the traffic is redirected, but when you enter the server itself, the "Steam Auth Failed" error pops up.
The problem is not in the server, because when trying to redirect not to mine, but to any other server, the same error pops up.