lol. Ugh. The stupidity.. arghh... Why buy a $30 windows VPS when you can buy a $5 Linux one.. Habbo community sigh.
This will work on most if not all distros. Tested on CentOS 5/6 and used for many projects:
PHP Code:
cat /proc/sys/net/ipv4/conf/eth0/forwarding
sysctl net.ipv4.conf.eth0.forwarding=1
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 99.99.99.99/24 -o eth0 -j MASQUERADE #Your proxy IP, provided by the VPS provider of which you wish to proxy from
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 1234 -j DNAT --to 88.88.88.88:1234 #dport = listening port #DNAT = Your REAL IP:Port
Example usage:
PHP Code:
iptables -t nat -A POSTROUTING -s 12.34.56.78/24 -o eth0 -j MASQUERADE
Replace 12.34.56.78 with the IP of your proxy VPS.
PHP Code:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 1234 -j DNAT --to 88.88.88.88:1234
change dPort 1234 with the port you want your VPS to sit on.
Change the DNAT 88.88.88.88:1234 to your IP:Port that your REAL emulator uses.
When done go to your client and enter your proxy VPS IP and the dport you entered.