Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Mark <mark@shadowpuppets.net>
To: netfilter@lists.netfilter.org
Subject: how do I port forward through loopback?
Date: Tue, 18 May 2004 15:59:03 +0200	[thread overview]
Message-ID: <40AA16A7.1010706@shadowpuppets.net> (raw)

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



             reply	other threads:[~2004-05-18 13:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-18 13:59 Mark [this message]
2004-05-19  5:31 ` how do I port forward through loopback? Ray Leach
2004-05-19  5:31 ` Ray Leach

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=40AA16A7.1010706@shadowpuppets.net \
    --to=mark@shadowpuppets.net \
    --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