From: Martijn Lievaart <m@rtij.nl>
To: Mikhail <misha@mhsystems.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Conntrack for related service
Date: Sat, 05 Aug 2006 11:32:41 +0200 [thread overview]
Message-ID: <44D465B9.4060807@rtij.nl> (raw)
In-Reply-To: <000901c6b842$c19de2a0$4764a8c0@mhsystems.com>
Mikhail wrote:
>I've placed this filter in mangle table before I do my DNAT. I've also added
>the rule to clean up recent list in case of RST type of disconnect.
> It seems to me though that script in this version has a flaw. Let's say
>someone creates 2 instances of the same application with the same source
>address and then closes one of them. I think this will effectively kill
>MSSQL connection for the remaining instance. Is there any way to count RMI
>connections originated from the same source IP and then start dropping MSSQL
>requests only in case that count reaches 0?
>
>
Yes you're right. What you could do is not look at fin and rst packets,
but use the timing feature of the recent module. Use a large timeout. So
what you want is , if there has been activity from this ip address in
the past X seconds on the RMI port, allow the mssql port.
Obviously that will not work if there has been no activity on the RMI
port recently (or in case you have a lot of connections, the connection
got evicted by recent for a newer one). But if rmi activity always
occurs shortly before opening a connection to mssql it should do the trick.
HTH,
M4
next prev parent reply other threads:[~2006-08-05 9:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <"52488.2001:888:19e1::53.1154621026.squirrel"@dexter>
2006-08-05 3:53 ` Conntrack for related service Mikhail
2006-08-05 9:32 ` Martijn Lievaart [this message]
2006-08-02 19:47 Mikhail
2006-08-03 11:13 ` Gáspár Lajos
2006-08-03 16:03 ` Martijn Lievaart
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=44D465B9.4060807@rtij.nl \
--to=m@rtij.nl \
--cc=misha@mhsystems.com \
--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