LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2015, 11:56 AM   #1
deepGC
LQ Newbie
 
Registered: May 2015
Posts: 21

Rep: Reputation: Disabled
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
 
Old 10-10-2015, 02:30 PM   #2
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
If you'd rather not tinker with your firewall directly, rinetd is a tcp redirection server that's pretty easy to set up.
 
Old 10-10-2015, 03:44 PM   #3
deepGC
LQ Newbie
 
Registered: May 2015
Posts: 21

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-10-2015, 04:17 PM   #4
deepGC
LQ Newbie
 
Registered: May 2015
Posts: 21

Original Poster
Rep: Reputation: Disabled
Managed to do this via. redir:

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Port Forwarding Within Internal Network marzak Linux - Networking 5 02-27-2010 11:39 AM
Port Forwarding to RHEL Internal Webserver thiruknv Linux - Networking 1 01-29-2007 05:14 PM
External port forwarding to an internal host antken Linux - Networking 3 12-17-2006 10:43 AM
IPTABLES port forwarding to internal network ivanros Linux - Networking 2 12-28-2002 11:19 PM
Port forwarding to internal machine zamzara Linux - Networking 8 12-01-2002 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration