Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Port replicator/duplicator

Posted on 2004-04-07
7
Medium Priority
?
839 Views
Last Modified: 2010-05-18
I'm looking for a suitable open source (or similar) tool that will allow me to do port replication.  To explain:


On server A, I want a process to listen on a particular port (say 6666), and when the clients talk to this port, it is intercepted and sent to server B and C (or N number of servers) listening on some other port.

I know there's simple TCP plugs out there, but I'm after something a little smarter that at a minimum will duplicate the stream to any number of upstream servers and optionally be able to alter the packet payload.
0
Comment
Question by:Tintin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 48

Author Comment

by:Tintin
ID: 10779718
Alternatively a Perl script using IO::Socket (or any other module that's useful) will be accepted.

I'm going to have a go at writing my own, but not having done socket programming before, I'm not that confident as to how robust it will be.
0
 
LVL 9

Assisted Solution

by:Alf666
Alf666 earned 300 total points
ID: 10780182
What you're looking for is not a "port replicator", but a level 2 switch (load balancer), or a High Availability (HA) solutions.

There are a few projects resolving this kind of issues :

The Linux Virtual Server :
http://www.linux-vs.org/

The Linux High Availability System :
http://linux-ha.org/

0
 
LVL 48

Author Comment

by:Tintin
ID: 10780239
I probably should have used the term "redirector" instead of "replicator'.

Thanks for the info, but HA and Load balancing is definitely not what I want.

I'm pretty confident I can do what I need in around 20 lines of Perl code, so I'll see how I go.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 48

Author Comment

by:Tintin
ID: 10780423
I've found a solution to my problem.  It involved modifying an existing Perl script and adding a few lines to modify the data and send it on to another host.

However, I'll leave this open for a little while and allocate points based on useful tools that people suggest.
0
 
LVL 4

Assisted Solution

by:oumer
oumer earned 300 total points
ID: 10780903
use iptables
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 400 total points
ID: 10781274
0
 
LVL 48

Author Comment

by:Tintin
ID: 10818970
While none of the tools mention really do what I require, I'm going to allocate the points out to everyone.

BTW, netpipes is also a useful tool (although not in my case).
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question