Marko97
M97 Project based Plus EMU
- Aug 7, 2013
- 99
- 45
[What you need?]
- Protected VPS with CentOS 6.x;
- SSH access (PuTTy for example);
[How to proceed?]
1) Log via SSH in your protected VPS;
2) Type these commands in order:
3) Delete all content and type this:
IP-PROXY = Your IP VPS protected by AntiDDoS;
PORT-PROXY = Your port VPS protected by AntiDDoS (you can choose any port if you want);
EMULATOR-IP = Your real unprotected IP VPS;
EMULATOR-PORT = Your real unprotected IP port.
Then, press CTRL + X, press Y and press Enter;
4) Open the choosen port (PORT-PROXY) in the firewall;
5) Type these commands in order:
6) Configure only the client PHP file with protected IP and protected port. In the emulator leave the original IP;
7) Start the emulator;
8) Go in this
9) Log in your client. ENJOY.
[I want to change my last configuration with a new IP. How to proceed?]
1) Type this command:
Then, wait until the protected VPS is rebooted;
2) Refollow all steps written above.
- Protected VPS with CentOS 6.x;
- SSH access (PuTTy for example);
[How to proceed?]
1) Log via SSH in your protected VPS;
2) Type these commands in order:
Code:
sudo su
Code:
cd /etc/init.d
Code:
cat /proc/sys/net/ipv4/conf/eth0/forwarding
Code:
sysctl net.ipv4.conf.eth0.forwarding=1
Code:
nano myproxy
Code:
sysctl net.ipv4.conf.eth0.forwarding=1
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s IP-PROXY/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport PORT-PROXY -j DNAT --to EMULATOR-IP:EMULATOR-PORT
PORT-PROXY = Your port VPS protected by AntiDDoS (you can choose any port if you want);
EMULATOR-IP = Your real unprotected IP VPS;
EMULATOR-PORT = Your real unprotected IP port.
Then, press CTRL + X, press Y and press Enter;
4) Open the choosen port (PORT-PROXY) in the firewall;
5) Type these commands in order:
Code:
chmod a+x myproxy
Code:
service myproxy restart
7) Start the emulator;
8) Go in this
You must be registered for see links
to test if your proxy work or not. Inside type the protected IP and protected port. If the port is open the proxy work, else I check if you've opened the port in the firewall.9) Log in your client. ENJOY.
[I want to change my last configuration with a new IP. How to proceed?]
1) Type this command:
Code:
reboot
2) Refollow all steps written above.
Last edited: