Re: [PATCH 1/1] netfilter: Added nfct_seqadj_ext_add() for ftp's conntrack.
From: Florian Westphal
Date: Tue Oct 14 2025 - 08:25:21 EST
Andrii Melnychenko <a.melnychenko@xxxxxxx> wrote:
> There was an issue with NAT'ed ftp and replaced messages
> for PASV/EPSV mode. "New" IP in the message may have a
> different length that would require sequence adjustment.
This needs a 'Fixes' tag.
And it needs an explanation why this bug is specific to ftp.
Lastly, why is this needed in the first place?
nf_nat_ftp() sets up the expectation callback to 'nf_nat_follow_master'.
That calls nf_nat_setup_info() which is supposed to add the seqadj extension
since connection has helper and is subject to nat.
And if nat isn't active, why do we need to seqadj extension?
No NAT, no command channel address rewrites.
It would be good to have a test case for this too, the nat helpers
have 0 coverage.