Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Mark E. Donaldson" <markee@bandwidthco.com>
To: Sundaram Ramasamy <sun@percipia.com>, netfilter@lists.netfilter.org
Subject: RE: port redirect for locally generated request
Date: Fri, 29 Aug 2003 20:33:41 -0700	[thread overview]
Message-ID: <DKEDJAAMDCDBHFKPBEMPMEPACHAA.markee@bandwidthco.com> (raw)
In-Reply-To: <000801c36e35$3f7cee60$8c01a8c0@RSUNDARAM>

Use REDIRECT:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

specify an interface if necessary.


-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Sundaram
Ramasamy
Sent: Friday, August 29, 2003 6:56 AM
To: netfilter@lists.netfilter.org
Subject: port redirect for localy generated request



Hi,

With this rule incoming request for port 80 redirected to port 8080. But
this is not working localy generated request.

iptables -t nat -A PREROUTING -p tcp --dport 80 -d LISTEN_IP -j DNAT --to
LISTEN_IP:80

How will i redirected local request port 80 to port 8080 ?

Thanks





  reply	other threads:[~2003-08-30  3:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-29  1:36 Multicast routing question Guilherme Cox
2003-08-29 13:55 ` port redirect for localy generated request Sundaram Ramasamy
2003-08-30  3:33   ` Mark E. Donaldson [this message]
2003-08-30  8:04   ` Thorsten Scherf

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=DKEDJAAMDCDBHFKPBEMPMEPACHAA.markee@bandwidthco.com \
    --to=markee@bandwidthco.com \
    --cc=netfilter@lists.netfilter.org \
    --cc=sun@percipia.com \
    /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