Solved

Port replicator/duplicator

Posted on 2004-04-07
7
820 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 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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

705 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