From: "Andrew Magnus" <xanadian9@hotmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: SSH dnat
Date: Tue, 03 Dec 2002 20:48:53 +0000 [thread overview]
Message-ID: <F156pgTFur2iz2Mb1s700018666@hotmail.com> (raw)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2323 -j DNAT
--to-destination internal_IP:2323
...also needs...
iptables -t nat -A POSTROUTING -s internal_IP -p tcp --sport 2323 -j SNAT
--to-source external_IP:2323
Otherwise, you've only got traffic going one way: into the ssh server.
If you're dealing with a dynamic IP address on your external interface, you
should instead use:
iptables -t nat -A POSTROUTING -s internal_IP -o eth0 -p tcp --sport 2323 -j
MASQUERADE
Hope that helps.
From: "Ambor" <ambor@alternity.net>
To: <netfilter@lists.netfilter.org>
Subject: SSH dnat
Date: Sun, 1 Dec 2002 15:52:02 +0100
Hello everyone,
I'm trying to dnat SSH throught the firewall to an internal machine.
I use following Rule
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2323 -j DNAT
--to-destination internal_IP:2323
eth0 is connected to internet
The problem is that the connection is allrght it just seems that I don't get
an answer from the ssh server.
(I'm getting a connection timeout, ot a connection refused)
To be sure I don't filter anything, so all trafic is accepted
Can someone help me?
thx
Ronny
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
next reply other threads:[~2002-12-03 20:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-03 20:48 Andrew Magnus [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-12-01 19:06 SSH dnat hard__ware
2002-12-01 14:52 Ambor
2002-12-01 18:44 ` Jeroen van Leeuwen
2002-12-01 19:16 ` Arnt Karlsen
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=F156pgTFur2iz2Mb1s700018666@hotmail.com \
--to=xanadian9@hotmail.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 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.