From: Stephen Frost <sfrost@snowman.net>
To: "Leonardo Rodrigues ( listas )" <leolistas@solucoesip.net>
Cc: netfilter ML <netfilter@lists.samba.org>
Subject: Re: question on recent module
Date: Fri, 24 Jan 2003 20:33:28 -0500 [thread overview]
Message-ID: <20030125013327.GO484@ns.snowman.net> (raw)
In-Reply-To: <001901c2c3b3$5adfe4a0$3201a8c0@leonardo>
[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]
* Leonardo Rodrigues ( listas ) (leolistas@solucoesip.net) wrote:
> I'm trying to setup recent module for doing some great things here :)
> Basically what I want is. Match some kind of traffic and, if that happens,
> traffic for that source address will be completly and silently dropped. All
> examples of recent module I found were used on FORWARD chain, which is not
> my case, as machine running recent will be the final destination of the
> connection.
>
> So, seems I'm successfully matching packets I need (
> /proc/net/ipt_recent/myrulename ) is created and sources are being added
> there. What I need now is: how can I make a rule on filter OUTPUT to DROP
> all traffic if the source address was matched by recent module ? As I read,
> I can only check recent matches against source address ( --rcheck ). In
> OUTPUT chain, source address is my own address and the address I need to
> match is the DESTINATION one.
>
> Can recent module help me in this situation ? Hope you understood it.
>
> Anyway, thanks for your attention :)
Using the latest versions of ipt_recent you can match against the
destination IP address. I know it's not very clear, but you can use
--rdest in a 'check' rule too, and it will take the destionation IP
address of the packet and look it up in the recent list.
Stephen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-01-25 1:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-24 14:17 question on recent module Leonardo Rodrigues ( listas )
2003-01-25 1:33 ` Stephen Frost [this message]
2003-01-25 19:43 ` Leonardo Rodrigues ( listas )
2003-01-25 19:21 ` Stephen Frost
2003-01-25 21:43 ` Leonardo Rodrigues ( listas )
2003-01-25 23:55 ` Stephen Frost
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=20030125013327.GO484@ns.snowman.net \
--to=sfrost@snowman.net \
--cc=leolistas@solucoesip.net \
--cc=netfilter@lists.samba.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