Linux Netfilter discussions
 help / color / mirror / Atom feed
* nftables and FTP connection tracking
@ 2014-08-14  9:29 tomekx1000
  2014-08-14 18:02 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: tomekx1000 @ 2014-08-14  9:29 UTC (permalink / raw)
  To: netfilter

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
  }

}

^ permalink raw reply	[flat|nested] 5+ messages in thread
* nftables and FTP connection tracking
@ 2014-08-13 12:56 Tomek L
  0 siblings, 0 replies; 5+ messages in thread
From: Tomek L @ 2014-08-13 12:56 UTC (permalink / raw)
  To: netfilter

Hi 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
        }

}

^ permalink raw reply	[flat|nested] 5+ messages in thread
* nftables and FTP connection tracking
@ 2014-08-13 10:30 Tomek L
  0 siblings, 0 replies; 5+ messages in thread
From: Tomek L @ 2014-08-13 10:30 UTC (permalink / raw)
  To: netfilter

Hi 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
        }

}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-14 18:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14  9:29 nftables and FTP connection tracking tomekx1000
2014-08-14 18:02 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox