All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mart Frauenlob <mart.frauenlob@chello.at>
To: netfilter@vger.kernel.org
Cc: daniel.huhardeaux@tootai.com
Subject: Re: Port forwarding on host interface
Date: Wed, 23 Sep 2009 14:30:42 +0200	[thread overview]
Message-ID: <4ABA14F2.1080906@chello.at> (raw)
In-Reply-To: <4ABA00DD.70205@tootai.com>

netfilter-owner@vger.kernel.org wrote:
> Hi all,
>
> I would like to redirect an external port to another port on the same 
> machine. I read on some documents that the kernel doesn't allow DNAT 
> to 127.0.0.1 so I ended up with following setup:
>
> let's say I want to redirect 59000 port on my 1.2.3.4 public IP to 
> 5900 port on the same public IP *but a direct connection to 5900 port 
> on the public IP* is forbidden. At this time my packets are marked for 
> iproute2 (2 ISP), mark 201 (isp1) or 202 (Isp2).
>
> Has someone a tip for me? Is it true that forwarding to 127.0.0.1 
> can't be done?
>
> Thanks for any hint.
>
Hello,

take a look at the REDIRECT target.

Regards

Mart

  reply	other threads:[~2009-09-23 12:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23 11:05 Port forwarding on host interface Daniel Huhardeaux
2009-09-23 12:30 ` Mart Frauenlob [this message]
2009-09-23 14:09 ` Pascal Hambourg
2009-09-24  8:17   ` Daniel Huhardeaux

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=4ABA14F2.1080906@chello.at \
    --to=mart.frauenlob@chello.at \
    --cc=daniel.huhardeaux@tootai.com \
    --cc=netfilter@vger.kernel.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.