Solved

Port replicator/duplicator

Posted on 2004-04-07
7
816 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
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 150 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 150 total points
ID: 10780903
use iptables
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 200 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vmware Vswitch  VS  Redhat  Bridge 1 121
Search for selected keywords and its values in multiple log files 11 67
Parsing a file using ksh 10 78
NTP Server in VMware 5 394
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

726 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