From: "Stuart J. Browne" <stuart@promed.com.au>
To: "'Paul J. Caritj'" <pcaritj@riovia.net>, netfilter@lists.netfilter.org
Subject: RE: Redirecting Traffic Locally
Date: Wed, 29 Oct 2003 12:24:20 +1100 [thread overview]
Message-ID: <008a01c39dbb$60b51070$2288e7c0@promed.com.au> (raw)
In-Reply-To: <3F9F1163.9070008@riovia.net>
>-----Original Message-----
>From: netfilter-admin@lists.netfilter.org
>[mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Paul
>J. Caritj
>Sent: Wednesday, 29 October 2003 11:01
>To: netfilter@lists.netfilter.org
>Subject: Redirecting Traffic Locally
>
>
>Gents,
>Hopefully this is an easy question :)
>
>I have a firewall with a built in webserver. I want all traffic going
>through this firewall, not to (or from) a proscribed list of IPs to be
>redirected to the Site hosted on the firewall itself (its a signup
>page). At present, I'm using redirection of this form:
>
>iptables -t nat -A UNREGISTERED -s 0/0 -d 0/0 -j DNAT --to-destination
>XXXXXXX;
Have you tried using 'REDIERCT' instead of 'DNAT' ?
iptables -t nat -A UNREGISTERED -j REDIRECT --to <localport>
>
>A rule in the PREROUTING chain bounces traffic to the UNREGISTERED
>chain. The system works fine when XXXXXXX is outside the network.
>However, I cannot DNAT to the firewall itself. Thoughts, anyone?
Stuart
next prev parent reply other threads:[~2003-10-29 1:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-29 1:01 Redirecting Traffic Locally Paul J. Caritj
2003-10-29 1:24 ` Stuart J. Browne [this message]
2003-10-29 1:36 ` Paul J. Caritj
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='008a01c39dbb$60b51070$2288e7c0@promed.com.au' \
--to=stuart@promed.com.au \
--cc=netfilter@lists.netfilter.org \
--cc=pcaritj@riovia.net \
/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.