Re: nftables carefully open the related-flow: ct state related ct helper "ftp-21" ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I tested with this sequence, with multiple counters and no verdicts and nflog:

chain INPUT4 {
	type filter hook input priority 0; policy drop;
	iifname "lo" accept
	ct state established counter packets 403 bytes 26976 accept
	ct state related counter packets 1 bytes 60
	ct helper "ftp-21" counter packets 0 bytes 0
	ct state related ct helper "ftp-21" counter packets 0 bytes 0 accept
	ct state related counter packets 1 bytes 60 log group 10
	ct state related counter packets 1 bytes 60 accept
	ip protocol icmp accept
	tcp dport ssh accept
tcp dport ftp ip daddr 10.18.16.143 counter packets 1 bytes 60 ct helper set "ftp-21" accept counter packets 0 bytes 0 log prefix "NFT: FILTER4/INPUT4: p. died: " group 0 drop
	}

And indeed, the RELATED packet going through is the SYN packet from the FTP DATA flow.

The ct helper "ftp-21" matches NOT on the RELATED packets, it matches pretty sure on the master connection.
I will try to verificate this.


--
Cheers Stefan Hartmann



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux