Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "curby ." <curby.public@gmail.com>
To: Marcin Giedz <marcin.giedz@eulerhermes.pl>
Cc: netfilter@lists.netfilter.org
Subject: Re: IP:Port REDIRECT problem
Date: Mon, 25 Jul 2005 12:48:41 -0600	[thread overview]
Message-ID: <5d2f379105072511486949e30f@mail.gmail.com> (raw)
In-Reply-To: <42E35541.9050205@eulerhermes.pl>

On 7/24/05, Marcin Giedz <marcin.giedz@eulerhermes.pl> wrote:
> As you can see default gateway for SERVICE SERVER is GATEWAY1. In
> GATEWAY1's iptables rules there is redirection rule for port 4000 to
> SERVICE SERVER:4000. In such configuration everything is OK, I can run
> service from Internet via GATEWAY1:4000. But I also want to run this
> services via GATEWAY2:4000. I tried redirection from GATEWAY2 to
> GATEWAY1 via public IPs but it doesn't work.

if I understand your question correctly, you should be able to take
requests sent to GATEWAY2:4000 and redirect them to your SERVER, just
as you redirected from GATEWAY1 to SERVER.  You can do this even
though GATEWAY2 is not SERVER's default gateway.  You might need to
allow incoming requests on SERVER from the interface going to
GATEWAY2.


      reply	other threads:[~2005-07-25 18:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-24  8:45 IP:Port REDIRECT problem Marcin Giedz
2005-07-25 18:48 ` curby . [this message]

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=5d2f379105072511486949e30f@mail.gmail.com \
    --to=curby.public@gmail.com \
    --cc=marcin.giedz@eulerhermes.pl \
    --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