no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | redirect_traffic [2022/10/13 09:11] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Redirecting your filtered IP ====== | ||
+ | Sometimes it's not possible to use a GRE tunnel because you don't have root access over your destination server, running a Windows based server or simply don't want to go through the possible headache of it. | ||
+ | |||
+ | This guide will show you how to still redirect traffic from your filtered IP to a destination server. | ||
+ | |||
+ | **NOTE #1** - Please realize that you will **not** see the users real IP when they connect with this method. | ||
+ | Alas, it's a shortcoming you'll have to live with until you're able to setup a proper tunnel. | ||
+ | |||
+ | **NOTE #2** - This method only supports TCP ports. | ||
+ | ===== Supported Operating Systems ==== | ||
+ | |||
+ | All operating systems are supported since there' | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | * A EidolonHost VPS running linux. Any plan will do. | ||
+ | * The destination servers IP | ||
+ | * The source & destination **TCP** port you with to forward to< | ||
+ | * A EidolonHost filtered IP ($3.00/m per IP. 209.141.38.x & 209.141.39.x are the current filtered subnets) | ||
+ | |||
+ | |||
+ | ===== Setup ===== | ||
+ | |||
+ | You'll need to install redir. | ||
+ | |||
+ | On Debian/ | ||
+ | |||
+ | < | ||
+ | apt-get install redir | ||
+ | </ | ||
+ | |||
+ | On CentOS you need to download redir from http:// | ||
+ | Get the package that matches your version of distribution as well as architecture. As an example: | ||
+ | |||
+ | < | ||
+ | wget http:// | ||
+ | rpm -i redir-2.2.1-1.2.el5.rf.i386.rpm | ||
+ | </ | ||
+ | |||
+ | |||
+ | After that, setup is very straight forward and consists of a single command. | ||
+ | |||
+ | < | ||
+ | redir --laddr=EidolonHost_FILTERED_IP --lport=PORT_TO_FORWARD_FROM --caddr=DESTINATION_IP --cport=DESTINATION_PORT & | ||
+ | </ | ||
+ | |||
+ | As an example: | ||
+ | |||
+ | < | ||
+ | redir --laddr=209.141.39.10 --lport=25565 --caddr=1.2.3.4 --cport=25565 & | ||
+ | </ | ||
+ | |||
+ | |||
+ | This will redirect the standard Minecraft port to destination 1.2.3.4 | ||
+ | |||
+ | Now just update your DNS or give your users your filtered IP and you're set. | ||
+ | |||
+ | You may want to add the redir line to your ''/ |