On a hosted ubuntu server VPS I host a teamspeak server. Is there anyway to use IPTables to force a connected client to join a different server by forwarding them to the IP?
For example
Teamspeak Server 1 ---> Teamspeak server 2 (Hosted on a second VPS)
I've already tried using the commands:
iptables -t nat -A PREROUTING -s [IP] -j DNAT --to [IP2]
and
iptables -t nat -A POSTROUTING -s [IP] -d [IP2] -j MASQUERADE