From: "Brad Morgan" <B-Morgan@concentric.net>
To: James O'Gorman <james@netinertia.co.uk>, netfilter@lists.netfilter.org
Subject: RE: SSH and NAT
Date: Mon, 24 Mar 2003 13:27:54 -0700 [thread overview]
Message-ID: <NABBJOOEOFODEALNMJAJCEFEHOAA.B-Morgan@concentric.net> (raw)
In-Reply-To: <20030324182922.GF8391@netinertia.co.uk>
> I'm having a slight problem with SSH and NAT. I've got an ADSL
> connection with a single static IP, and I'd like to be able to SSH to
> any of my boxes within my network, but without having to use separate
> ports to do it. Is this possible?
>
> My setup is:
>
> Internet -> ZyXEL ADSL router (192.168.0.1) -> Debian Server
> (192.168.0.2) -> box1 (0.3) / box2 (0.4)
I assume you mean from the Internet. If that's the case, then the
answer is no. Your box1 and box2 are in a private address space which
by definition, isn't routed to the outside world. What your router
sees is packets with resolved IP addresses. There are no names in
the packets at this point. You only have one public IP address.
You have two choices. One you've mentioned which is to use separate
ports for each machine which are then DNATed from the server to the
right box. The second is to use ssh twice, once from the outside to
the Debian server, and then from there to the box of your choice.
Regards,
Brad Morgan
next parent reply other threads:[~2003-03-24 20:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030324182922.GF8391@netinertia.co.uk>
2003-03-24 20:27 ` Brad Morgan [this message]
[not found] ` <20030324203629.GH8391@netinertia.co.uk>
2003-03-24 22:14 ` SSH and NAT Kim Jensen
[not found] ` <20030324224026.GN8391@netinertia.co.uk>
2003-03-25 1:08 ` Marcelo Moreira
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=NABBJOOEOFODEALNMJAJCEFEHOAA.B-Morgan@concentric.net \
--to=b-morgan@concentric.net \
--cc=james@netinertia.co.uk \
--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