* DNAT & Redirects
@ 2002-11-19 21:40 AJ Mayor
0 siblings, 0 replies; only message in thread
From: AJ Mayor @ 2002-11-19 21:40 UTC (permalink / raw)
To: netfilter
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-19 21:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19 21:40 DNAT & Redirects AJ Mayor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox