- Joined
- Jan 27, 2012
- Messages
- 27
- Reaction score
- 15
Hi all, so I did a tutorial a while back (link) and it worked well, but that's a little dated now so I've decided to make a new one that is far better!.
First things first, you'll need a DDoS protected VPS - now in this tutorial we'll be looking at Linux VPS - however this is a very specific type - you must use KVM/Xen/VMWare as otherwise this tutorial will not work! (For OpenVZ either PM me or look at the link above). If you need any help, just shoot me a PM or reply to this topic! I'll be more than happy to help you! I would also reccomend using Debian 7 as the OS. (this tutorial will cater for users of Debian)
I recommend
To view the content, you need to sign in or register
as a provider as they are DDoS protected and have a KVM product line.Ingredients:
- Nano Text Editor
- Linux OS
- DDoS protected VPS
- About 5 minutes of time
- SSH Client (
To view the content, you need to sign in or register)
So first, open your SSH client and log on to your server.
Then, you should update, upgrade and install nano.
PHP:
apt-get update
apt-get upgrade
apt-get install nano
Afterwards, change directory to the /etc/init.d directory and open a document there called myproxy
PHP:
cd /etc/init.d
nano myproxy
Now, paste this into the file - replacing the bits in red.
Code:
iptables -F
iptables -F -t nat
echo 1 >| /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -p tcp -d [COLOR="#FF0000"]ddosprotectedvpsip[/COLOR]--dport [COLOR="#FF0000"]portyouwishtouse[/COLOR] -j DNAT --to [COLOR="#FF0000"]emulatorip[/COLOR]:[COLOR="#FF0000"]emulatorport[/COLOR]
iptables -t nat -A POSTROUTING -j MASQUERADE
Then press Ctrl + O (to save it) and Ctrl + X to exit. (CMD on a Mac)
Now, enter this into the SSH console
PHP:
chmod a+x myproxy
update-rc.d myproxy defaults
Afterwards, Reboot and test. You should now have a fully functioning reverse proxy.
Thanks for reading,
Mike.
Last edited:

