From: tomekx1000 <tomekx1000@lutel.pl>
To: netfilter@vger.kernel.org
Subject: nftables and FTP connection tracking
Date: Thu, 14 Aug 2014 11:29:57 +0200 [thread overview]
Message-ID: <4ae8314bdfec48fe944b03977bb140ff@lutel.pl> (raw)
Dear All,
Could you have a look at my simple nft firewall script below, I've used
ct related, established, but it doesnt work with passive mode FTP - the
data session on high ports is dropped by firewall. Does NFTables have
connection tracking helper for FTP? If not - is it planned in foreseable
future to add it?
table ip filter {
chain input {
type filter hook input priority 0;
dport {21} ct state new limit rate 2/second counter accept
ct state {established, related} counter accept
counter limit rate 100/second log group 2 prefix "RULE=Default drop"
counter drop
}
chain output {
type filter hook output priority 0;
ct state {established, related} counter accept
}
}
next reply other threads:[~2014-08-14 9:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 9:29 tomekx1000 [this message]
2014-08-14 18:02 ` nftables and FTP connection tracking Pablo Neira Ayuso
2014-08-14 18:38 ` tomekx1000
-- strict thread matches above, loose matches on Subject: below --
2014-08-13 12:56 Tomek L
2014-08-13 10:30 Tomek L
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=4ae8314bdfec48fe944b03977bb140ff@lutel.pl \
--to=tomekx1000@lutel.pl \
--cc=netfilter@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.