netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: Netfilter Development Mailing list <netfilter-devel@vger.kernel.org>
Subject: Re: [conntrackd] allowing DisableExternalCache in alarm mode
Date: Fri, 28 Aug 2015 18:49:12 +0200	[thread overview]
Message-ID: <20150828164912.GD3436@salvia> (raw)
In-Reply-To: <CAOkSjBh2KtYcSEQ7=h_h+R9CE53pwGtBAiQ_OZF0aTX0fhY0fw@mail.gmail.com>

On Thu, Aug 27, 2015 at 12:57:42PM +0200, Arturo Borrero Gonzalez wrote:
> Hi,
> 
> The documentation about DisableExternalCache reads:
> 
>  <<<
>  [...]
>  You can also use this option with the NOTRACK and ALARM modes.
>  This increases CPU consumption in the backup firewall but now you do not
>  need to commit the flow-states during the master failures since they are
>  already in the in-kernel Connection Tracking table. Moreover, you save
>  memory in the backup firewall since you do not need to store the
>  foreign flow-states anymore.
>  >>>
> 
> However, the config parser doesn't allows it. Patch seems rather trivial:
> 
> diff --git a/src/read_config_yy.y b/src/read_config_yy.y
> index 73fabbf..d53aa70 100644
> --- a/src/read_config_yy.y
> +++ b/src/read_config_yy.y
> @@ -908,6 +908,7 @@ sync_mode_alarm_line: refreshtime
>                          | purge
>                          | relax_transitions
>                          | delay_destroy_msgs
> +                        | disable_external_cache
>                          ;
> 
>  sync_mode_ftfw_list:
> 
> 
> However, there seems to be some missing bits somewhere, the backup
> node prints this in the logs:
> 
> [...]
> [Thu Aug 27 12:49:46 2015] (pid=15176) [ERROR] inject-add2: No such
> file or directory
> Thu Aug 27 12:49:46 2015 tcp      6 17949 ESTABLISHED
> src=192.162.26.14 dst=192.168.5.134 sport=39089 dport=2015 [ASSURED]
> mark=0
> [Thu Aug 27 12:49:56 2015] (pid=15176) [ERROR] inject-add2: No such
> file or directory
> Thu Aug 27 12:49:56 2015 tcp      6 17949 ESTABLISHED
> src=192.162.26.14 dst=192.168.5.134 sport=39089 dport=2015 [ASSURED]
> mark=0
> [...]
> 
> Note, always the same connection. In my busy test environment, this
> ENOENT happens every few seconds Perhaps a race condition somewhere?
> 
> I would appreciate any hint/advice/pointer.

Are these FTP data flows? I'm asking this because the master
connection (control flow) may be missing in the conntrack table, thus
the ENOENT error.

  reply	other threads:[~2015-08-28 16:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-27 10:57 [conntrackd] allowing DisableExternalCache in alarm mode Arturo Borrero Gonzalez
2015-08-28 16:49 ` Pablo Neira Ayuso [this message]
2015-08-31  7:55   ` Arturo Borrero Gonzalez
2015-09-01 16:44     ` Pablo Neira Ayuso
2015-09-02  8:41       ` Arturo Borrero Gonzalez
2015-09-25 11:38       ` Arturo Borrero Gonzalez
2015-10-01 18:26         ` 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=20150828164912.GD3436@salvia \
    --to=pablo@netfilter.org \
    --cc=arturo.borrero.glez@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).