From: Ray Leach <raymondl@knowledgefactory.co.za>
To: Netfilter Mailing List <netfilter@lists.netfilter.org>
Subject: Re: how do I port forward through loopback?
Date: Wed, 19 May 2004 07:31:14 +0200 [thread overview]
Message-ID: <1084944673.19268.7.camel@raylinux.internal> (raw)
In-Reply-To: <40AA16A7.1010706@shadowpuppets.net>
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]
On Tue, 2004-05-18 at 15:59, Mark wrote:
> Hello,
> I need to port forward all traffic locally going to port 80 to port
> 8040. For the external interface eth0 this works, I thought it would
> work for the internal/loopback as well. Nothing else is turned on
> , all other settings are open.
>
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT
> --to-port 8040
>
> this doesn't work for the internal network, 127.0.0.1 lo, not sure why
> System info: Redhat7.3, 2.4.20 kernel, iptables-1.2.8-8.72.3
> Thanks
To get nat to work on the local interface you have to compile the kernel
with local nat support. The catch is that normal nat stops working.
--
--
Raymond Leach <raymondl@knowledgefactory.co.za>
Network Support Specialist
http://www.knowledgefactory.co.za
"lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import"
Key fingerprint = 7209 A695 9EE0 E971 A9AD 00EE 8757 EE47 F06F FB28
--
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2004-05-19 5:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-18 13:59 how do I port forward through loopback? Mark
2004-05-19 5:31 ` Ray Leach
2004-05-19 5:31 ` Ray Leach [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=1084944673.19268.7.camel@raylinux.internal \
--to=raymondl@knowledgefactory.co.za \
--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.