All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mr Dash Four <mr.dash.four@googlemail.com>
To: Eric Leblond <eric@regit.org>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: pgsql-ulogd2
Date: Sun, 15 Jul 2012 23:36:33 +0100	[thread overview]
Message-ID: <500345F1.3050407@googlemail.com> (raw)
In-Reply-To: <1342385528.8476.2.camel@tiger.regit.org>


>> Currently, NFCT reports absolutely everything, which is not what I 
>> really want as I have to sift through thousands of logs, not to mention 
>> that by reporting everything the system load is much higher.
>>
>> So, is there a way for me to do that, somehow?
>>     
>
> Not now but I'm working on it: Pablo has made a filter system in
> libnetfilter_conntrack. I will used it to filter.
>   
This would be some awesome feature. I think this new filter which 
implements "custom" restrictions should not be for a particular input 
filter, but rather be universal. In other words, to be able to 
customise, say, certain IP addresses/subnets, certain ethernet 
interfaces etc, and then used anywhere in stack statements - NFCT, NFLOG 
and so on.

If this is implemented, it will certainly make ulogd2 very powerful and 
flexible at the same time - a bit like what syslog-ng is to the old 
syslog ;-)

The specific reason I raised this issue is because on the main firewall 
we have here, if I deploy ulogd2 and use NFCT at its present form, I 
will get the logs from all 7 interfaces, and it would make it an 
absolutely huge task to sift through all these logs and "match" the 
various entries (OK, doing it through the database will help up a bit, 
but not a lot).

If I am able to place a "custom" filter with different "filter" values 
in each separate stack, redirecting input to different places, then I 
would be able to track down what I want quite easily.

>> I had in mind exactly what you've suggested above - use a separate, 
>> manually-registered table containing the table columns and their mapping 
>> to ulogd2 parameters - much less risk and everything is configurable, 
>> though the downside is that the two tables need to be synchronised if 
>> the structure of the main ulogd table changes (columns renamed or added).
>>     
>
> It seems the safest way.
>   
It looks that way, doesn't it? In the coming days I'll look at the PGSQL 
implementation code to see whether SSL connection to the database server 
is a possibility with this plug in - it will be another good security 
feature if that is possible to be implemented.


  reply	other threads:[~2012-07-15 22:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13 14:13 pgsql-ulogd2 Mr Dash Four
2012-07-13 15:55 ` pgsql-ulogd2 Eric Leblond
2012-07-14 13:00   ` pgsql-ulogd2 Mr Dash Four
2012-07-14 21:22     ` pgsql-ulogd2 Eric Leblond
2012-07-15 12:24       ` pgsql-ulogd2 Mr Dash Four
2012-07-15 12:33         ` pgsql-ulogd2 Mr Dash Four
2012-07-15 20:52         ` pgsql-ulogd2 Eric Leblond
2012-07-15 22:36           ` Mr Dash Four [this message]
2012-07-16  6:33             ` pgsql-ulogd2 Eric Leblond
2012-07-16 12:43               ` pgsql-ulogd2 Mr Dash Four
2012-07-17 23:29                 ` pgsql-ulogd2 Mr Dash Four
2012-07-16  8:00             ` pgsql-ulogd2 Florian Westphal
2012-07-16 10:51               ` pgsql-ulogd2 Pablo Neira Ayuso
2012-07-16 12:52               ` pgsql-ulogd2 Mr Dash Four
2012-07-16 13:27                 ` pgsql-ulogd2 Florian Westphal
2012-07-16 15:28                   ` pgsql-ulogd2 Pablo Neira Ayuso
2012-07-17 23:29                     ` pgsql-ulogd2 Mr Dash Four
2012-07-16 10:49           ` pgsql-ulogd2 Pablo Neira Ayuso

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=500345F1.3050407@googlemail.com \
    --to=mr.dash.four@googlemail.com \
    --cc=eric@regit.org \
    --cc=netfilter-devel@vger.kernel.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.