All of lore.kernel.org
 help / color / mirror / Atom feed
* Port Forwarding Help
@ 2005-01-27 23:50 Marc Perkel
  0 siblings, 0 replies; only message in thread
From: Marc Perkel @ 2005-01-27 23:50 UTC (permalink / raw)
  To: netfilter

I hope this is the right list. I need help.

This is something that should be simple for all you smart people out there.

I have 2 email servers that I want to communicate with each other. Both 
have port 25 open. But - they only bind on port 25 to specific IP 
addresses. So - what I want to do is this:

I want to do an ssh tunnel to the other server. SSH doesn't do that 
gracefully - but I did get it to work listening on port 26 and piping to 
port 25.

ssh -f -N -C -L 26:localhost:25 destination

So - here's what I want to do. I want to port forward 1 ip address on 
port 25 on the local machine to port 26 so for example :

127.0.0.2 on port 25 to 127.0.0.2 on port 26 so if I connect to 
127.0.0.2 on port 25 it goes over the tunnel to the other server.

It can be that hard - but I'm just not very smart.

Thanks in advance for your help.

-- 
Marc Perkel - marc@perkel.com

Spam Filter: http://www.junkemailfilter.com
    My Blog: http://marc.perkel.com
My Religion: http://www.churchofreality.org
~ "If it's real - we believe in it!" ~




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-27 23:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27 23:50 Port Forwarding Help Marc Perkel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.