Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Marc Perkel <marc@perkel.com>
To: netfilter@lists.netfilter.org
Subject: Port Forwarding Help
Date: Thu, 27 Jan 2005 15:50:37 -0800	[thread overview]
Message-ID: <41F97E4D.2090709@perkel.com> (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.

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




                 reply	other threads:[~2005-01-27 23:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41F97E4D.2090709@perkel.com \
    --to=marc@perkel.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox