LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Port Forwarding - Refer Traffic From Port 8000 to another internal IP (https://www.linuxquestions.org/questions/linux-newbie-8/port-forwarding-refer-traffic-from-port-8000-to-another-internal-ip-4175555790/)

deepGC 10-10-2015 10:56 AM

Port Forwarding - Refer Traffic From Port 8000 to another internal IP
 
Hi,

I am running two sites/accounts on one server,

Site 1 - 1.1.1.1
Site 2 - 1.1.1.2

I receive a lot of traffic on port 8003 on site 1, that I want to redirect over to site2.

Hence 1.1.1.1:8003 - in essence, then becomes 1.1.1.2:8003

Is there anyway I can do this in csf, is this even possible?

Please note, that it is just port 8003 on site 1 that needs redirecting internally, the other traffic is fine.

Thank you

Doug G 10-10-2015 01:30 PM

If you'd rather not tinker with your firewall directly, rinetd is a tcp redirection server that's pretty easy to set up.

deepGC 10-10-2015 02:44 PM

Hi,

I've installed rinetd, but struggling to get it working.

The public IP for site one is 78.129.251.122, the public IP for site two is 78.129.251.125, the port in question is 8044.

I tried the following in rinetd.conf:

78.129.251.122 8044 78.129.251.125 8044

But receive the following message:

rinetd: couldn't bind to address 78.129.251.122 port 8044

deepGC 10-10-2015 03:17 PM

Managed to do this via. redir:

redir --laddr=78.129.251.125 --lport=8044 --caddr=78.129.251.122 --cport=8044


All times are GMT -5. The time now is 01:31 PM.