All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martijn Lievaart <m@rtij.nl>
To: Martin Whinnery <martin.whinnery@sbirmc.ac.uk>
Cc: netfilter@lists.netfilter.org
Subject: Re: transparent proxy with captive page - ipt_recent?
Date: Tue, 26 Jun 2007 09:43:22 +0200	[thread overview]
Message-ID: <4680C39A.7030902@rtij.nl> (raw)
In-Reply-To: <467FE1E4.2040306@sbirmc.ac.uk>

Martin Whinnery wrote:
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -m recent 
> --rcheck --seconds 30 -j REDIRECT --to-ports 8080
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -m recent --set 
> -j REDIRECT --to-ports 82
>
> So I thought the first rule wouldn't match first time around. Then the 
> second rule would provide the proxy instructions page, and make the 
> /proc/sys/net/ipt_recent/DEFAULT entry. This works fine.
>
> But the first rule should match on the next request. And it doesn't 
> seem to. And I don't understand.
>

I think you need to replace rcheck with update.


HTH,
M4



  reply	other threads:[~2007-06-26  7:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25 15:40 transparent proxy with captive page - ipt_recent? Martin Whinnery
2007-06-26  7:43 ` Martijn Lievaart [this message]
2007-06-26  8:12   ` Martin Whinnery

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=4680C39A.7030902@rtij.nl \
    --to=m@rtij.nl \
    --cc=martin.whinnery@sbirmc.ac.uk \
    --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 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.