Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "AJ Mayor" <AJ@comspeco.net>
To: netfilter@lists.netfilter.org
Subject: DNAT & Redirects
Date: Tue, 19 Nov 2002 16:40:21 -0500	[thread overview]
Message-ID: <000f01c29014$430b39b0$8bb5a8c0@ajbox> (raw)

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

Hello All,

Im trying (unsuccessfully thus far) to do the following.

Redirect all port 80 http traffic coming from subnet 172.16.100.0/24 to 172.16.200.5:80

The idea being that all people on the 172.16.100.0 subnet are suspended from surfing the net and that any http request they make will bring them to a default webpage on the server saying something to the effect of pls call our office to activate your account blah blah blah

here is what I have tried and failed with so far;

iptables -t nat -A PREROUTING -p tcp -s 172.16.100.0/24 -d 0/0 -dport 80 -j DNAT --to 172.16.200.5:80

i know im overlooking something but what i dont know, any idea on this one??

AJ

[-- Attachment #2: Type: text/html, Size: 1578 bytes --]

                 reply	other threads:[~2002-11-19 21:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='000f01c29014$430b39b0$8bb5a8c0@ajbox' \
    --to=aj@comspeco.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