Linux Netfilter discussions
 help / color / mirror / Atom feed
* limit extension
@ 2005-07-19 18:07 Michael Schachtebeck
  2005-07-19 20:13 ` Jan Engelhardt
  2005-07-20 14:15 ` Michael Schachtebeck
  0 siblings, 2 replies; 9+ messages in thread
From: Michael Schachtebeck @ 2005-07-19 18:07 UTC (permalink / raw)
  To: netfilter

Hi,

I'm trying to redirect some people on my router once a day to a local
apache to show them a status page.

I'm using the following iptables rule to redirect them:

/sbin/iptables -t nat -I PREROUTING -p tcp -s $IP -i $LAN_DEV --sport
1024: --dport 80 --syn -m limit --limit 1/d --limit-burst 1 -j REDIRECT
--to-port 5000

At first, I thought everything was fine: I got redirected when trying to
open the first page in my browser, and after that, I could surf normally
without being redirect. But after about 30 minutes, I got redirected
again, and iptables -t nat -vnL PREROUTING said that the rule had
matched twice.

What am I doing wrong? Why was I redirect a second time? In my opinion,
the second redirection should not have happened then, but 1 day (24
hours) later...

Any hint is welcome...

Michael.
-- 
PGP Public Key:  http://www.num.math.uni-goettingen.de/schachte/key.asc
Key fingerprint: C474 8B85 17C0 0232 E439 0FBF 2451 E452 293C D798


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-20 15:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-19 18:07 limit extension Michael Schachtebeck
2005-07-19 20:13 ` Jan Engelhardt
2005-07-19 21:01   ` Michael Schachtebeck
2005-07-20  6:25     ` Jan Engelhardt
2005-07-20 14:15 ` Michael Schachtebeck
2005-07-20 15:01   ` Sven Schuster
2005-07-20 15:03     ` Michael Schachtebeck
2005-07-20 15:05       ` Jan Engelhardt
     [not found]   ` <20050720144531.GA14941@zion.homelinux.com>
     [not found]     ` <42DE65C6.6030504@rbw.goe.net>
2005-07-20 15:15       ` Sven Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox