NETFILTER_XT_TARGET_NOTRACK
Hi all,
I have a concern / question / suggestion regarding NETFILTER_XT_TARGET_NOTRACK.
Currently, NETFILTER_XT_TARGET_NOTRACK merely selects NETFILTER_XT_TARGET_CT, and does nothing else. This means that selecting or not selecting NETFILTER_XT_TARGET_NOTRACK makes no difference, as long as NETFILTER_XT_TARGET_CT itself is set.
I seem to understand that NETFILTER_XT_TARGET_NOTRACK was reintroduced in kernel 3.8 to help migration to NETFILTER_XT_TARGET_CT. I understand the logic, but this was 7 kernel versions / over 2 years ago. Wouldn't it be the right time to finally remove NETFILTER_XT_TARGET_NOTRACK?
Alternatively, I find it curious that the compatibility code is unconditionally built into xt_CT even when NETFILTER_XT_TARGET_NOTRACK is not selected. Is it an overlook, or is it by design? I think it would make sense to only build that compatibility code when NETFILTER_XT_TARGET_NOTRACK is selected. In that case it would make sense to keep NETFILTER_XT_TARGET_NOTRACK.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Pablo Neira Ayuso
maintainerQuoted 15 lines · Jean Delvare
Hi all,
I have a concern / question / suggestion regarding
NETFILTER_XT_TARGET_NOTRACK.Currently,
NETFILTER_XT_TARGET_NOTRACKmerely selectsNETFILTER_XT_TARGET_CT, and does nothing else. This means that selecting or not selectingNETFILTER_XT_TARGET_NOTRACKmakes no difference, as long asNETFILTER_XT_TARGET_CTitself is set.I seem to understand that
NETFILTER_XT_TARGET_NOTRACKwas reintroduced in kernel 3.8 to help migration toNETFILTER_XT_TARGET_CT. I understand the logic, but this was 7 kernel versions / over 2 years ago. Wouldn't it be the right time to finally removeNETFILTER_XT_TARGET_NOTRACK?
Quoted 6 lines
Alternatively, I find it curious that the compatibility code is unconditionally built into
xt_CTeven whenNETFILTER_XT_TARGET_NOTRACKis not selected. Is it an overlook, or is it by design? I think it would make sense to only build that compatibility code whenNETFILTER_XT_TARGET_NOTRACKis selected. In that case it would make sense to keepNETFILTER_XT_TARGET_NOTRACK.
Recent iptables versions use the alias infrastructure so NOTRACK is mapped to CT internally. We can probably wait a bit more before we get rid of that old compat code. Frankly, the NOTRACK part is quite little code actually and very simple, so we don't get much from removing it but problems (as we may break compatibility for old iptables userspace binary versions with no aliasing infrastructure).