Martin Holm Pedersen wrote:
> I need to do it more or less as i described. The question is if it is
> possible without knowing anything about the the data sent by fx. the
> ssh-client.
>
> The applikation of the idea is to take det data from the buffer and send
> it out via a custom protocol that lies above TCP/IP. The reason for
> doing this is to make a robust way of communicating via two ethernet
> devices. That is, if one of the devices break down the custom protocol
> will send the data via the other device without having to establish the
> connection once again ie. in a running ssh-connection.
OK.
Before you get into designing something involved, have a look
at Linux Ethernet bridging <http://bridge.sourceforge.net/>.
It has an automatic mechanism to provide a redundant Ethernet
connection with the STP (Spanning Tree Protocol). The
redundancy is provided on Ethernet layer, so the TCP and
IP layers (and above) do not need to know about it.
> But it is possible if I also handle th return traffic?
Yes. You need two handlers: one in the forward direction
and another in reverse direction.
-
IMHO, you're solving a sergeant's problem with a pair of captains.
The only reason I see for a custom protocol is some kind
of 'security by obscurity'. Even for privacy, the preferred
method is to use a well-tested VPN system, e.g. OpenVPN.
--
Tauno Voipio
tauno voipio (at) iki fi
|