From: Bill Hendrickson <wjhendrickson@gmail.com>
To: "Gáspár Lajos" <swifty@freemail.hu>
Cc: netfilter@vger.kernel.org
Subject: Re: SSH Port Forwarding with iptables
Date: Tue, 29 Sep 2009 12:41:31 -0400 [thread overview]
Message-ID: <a0017e7e0909290941h38aeafd3hda04418654bee004@mail.gmail.com> (raw)
In-Reply-To: <4AC232F2.6050401@freemail.hu>
> You did not told but I assume that the Internal server's default gw is the
> firewall.
> I think you need the following rule to get it work:
>
> $IPT -t nat -A POSTROUTING -j SNAT -o $EXT_IFACE --to-source $EXT_IP
Swifty,
You nailed it - thanks! I needed to do both things (set the default
gw on internal server and use the rule). Re: my other post, which is
the better way to go, in your opinion - FORWARDing or MASQUERADing?
-bill
next prev parent reply other threads:[~2009-09-29 16:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-29 15:16 SSH Port Forwarding with iptables Bill Hendrickson
2009-09-29 16:14 ` Bill Hendrickson
2009-10-01 10:37 ` Pascal Hambourg
2009-10-01 15:24 ` Bill Hendrickson
2009-10-01 22:07 ` Pascal Hambourg
2009-10-01 16:26 ` Gáspár Lajos
2009-09-29 16:16 ` Gáspár Lajos
2009-09-29 16:41 ` Bill Hendrickson [this message]
2009-09-29 17:00 ` Gáspár Lajos
2009-09-29 17:12 ` Bill Hendrickson
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=a0017e7e0909290941h38aeafd3hda04418654bee004@mail.gmail.com \
--to=wjhendrickson@gmail.com \
--cc=netfilter@vger.kernel.org \
--cc=swifty@freemail.hu \
/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