Forward Google Talk service on VPS

sudo iptables -t nat -A PREROUTING -d VPS_IP/32 -p tcp -m tcp --dport 5222 -j DNAT --to-destination 74.125.53.125:5222
sudo iptables -t nat -A POSTROUTING -d 74.125.53.125/32 -p tcp -m tcp --dport 5222 -j SNAT --to-source VPS_IP

Over!

2 thoughts on “Forward Google Talk service on VPS”

Leave a Reply

Your email address will not be published. Required fields are marked *