Skip to contentSkip to conversation

Port Forwarding Help

DISCUSSION Marc Perkel 1 participant 1 message Jan 27, 2005

lore
Share & tools
lore
#0 lore raw

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.

Signature · 6 lines
Marc Perkel - [email protected]

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!" ~