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
sudo iptables -t nat -A POSTROUTING -d -p tcp -m tcp --dport 5222 -j SNAT --to-source VPS_IP


2 thoughts on “Forward Google Talk service on VPS”

Leave a Reply to 黑孩儿 Cancel reply

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