How to setup a TCP Proxy for your hotel
Hi, I see alot of confused retro owners when it comes to setting up a TCP Proxy to hide their IP adress, so i will make a quick guide for everyone that doesnt know how it works.
In case you dont even know why your hotel should use a TCP Proxy then it is because people will be able to find your IP by doing "view-source:hotelname.com/client" or using wireshark.
(I will use the website Menialhost.com trought the whole tutorial)
1. Enter the your destination IP + Port. Usually port 30000.
https://i.gyazo.com/935cceff004332d2...7fcd2e18da.png
2. You will get a proxy IP + proxy port after you purchase, for example "protection.menialhost.com:30533"
3. When you got it, you are going to change details in your client.php like this.
https://i.gyazo.com/7b340b9ff2db1b7c...7e42ee941b.png
And now you are finished.
In case you are using r63 you will have to run this sql aswell.
UPDATE server_settings SET enable_securesessions = '0';
UPDATE server_settings SET enable_antiddos = '1';
UPDATE server_settings SET ip_lastforbans = '1';
This is just a thread for new hotel owners that dont know how to set it up, I know plenty of people probably already know how to, but just in case.
If there is anything I should add to this tutorial then just tell me.
This link is a for the TCP Proxy Shopping Cart - Plusprovider
Credits to: Hobtel from Devbest for 99% of the job.
1% To me for copy & pasting
Re: How to setup a TCP Proxy for your hotel
Do you use Plusprovider in your hotel or are you the owner?
Re: How to setup a TCP Proxy for your hotel
I use it in my hotel, that is why i used it in the tutorial aswell.
Re: How to setup a TCP Proxy for your hotel
Nice tut, useful for new retro owners.
Re: How to setup a TCP Proxy for your hotel
Where are credits? It's extracted from devbest..
Re: How to setup a TCP Proxy for your hotel
Thanks for noticing, added it.
Re: How to setup a TCP Proxy for your hotel
Will this work with arcturus emulator?
Re: How to setup a TCP Proxy for your hotel
Re: How to setup a TCP Proxy for your hotel
After using this all the users in the client have a proxy ip. Does anyone know how to fix this to get their real IP?
Re: How to setup a TCP Proxy for your hotel
You need to put this code somewhere, and you maybe have to edit this code to fit your TCP Reverse Proxy.
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
}
Re: How to setup a TCP Proxy for your hotel
Quote:
Originally Posted by
FunHotel
You need to put this code somewhere, and you maybe have to edit this code to fit your TCP Reverse Proxy.
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
}
You need to advance the code a bit
Re: How to setup a TCP Proxy for your hotel
Well I don't really know the code for it. If someone else knows the 100% working code they could please tell me and I would add it to the tutorial
Re: How to setup a TCP Proxy for your hotel
Quote:
Originally Posted by
FlyHotel
After using this all the users in the client have a proxy ip. Does anyone know how to fix this to get their real IP?
Well uhm..
basically, when you use tcp reverse proxies it'll simply hide the user IP & use it's own IP adress to get connected to the server.
Although there's a workaround, ref <layer 7 load-balancing transparent proxy mode | HAProxy Technologies – Aloha Load Balancer> [but i've never done it myself :mellow:].
Re: How to setup a TCP Proxy for your hotel
Re: How to setup a TCP Proxy for your hotel
Can someone make a tut of how to show the real IP while using a proxy?