OK so you most likely have more then one interface on this box correct?
If so then you need to tell the rules which interface that should be applied to.
If eth0 is your WAN port then you need to do this:
(you should always wrap your code in code tags)
Code:
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 27015-j DNAT --to-destination ip:27015
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE