SRCDS Steam group

Moving servers - iptables - ip masquerading
I'm moving a TF2 server to a new dedicated box. There is some overlap between the contracts of the old and new boxes.

Using iptables, I'm trying to redirect all TF2 traffic to old box at ( to the new box (

The old box has multiple ips ( -, and the TF2 server is running on

On the old box net.ipv4.ip_forward is enabled, and the following rules have been set

iptables -t nat -A PREROUTING -d -p tcp --dport 27015 -j DNAT --to-destination

iptables -t nat -A POSTROUTING -j MASQUERADE

But it doesn't seem to be working.

Can anyone spot the problem, have any advice or know of issues in doing this?
After realising that I'd overlooked UDP, I added a rule for that, and it appears to be working. Not sure if there are issues with doing this though.
You mind posting the entire iptables-rules? Could be useful for others with the same problem Smile

Forum Jump:

Users browsing this thread: 1 Guest(s)