netfilter-owner@xxxxxxxxxxxxxxx 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
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html