-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with target "NOTRACK" #204
Comments
I have done bit more testing. Turns out that I can properly retrieve a NOTRACK rule via iptc, but I cannot insert it back. Steps to reproduce:
Hope this sheds some light :) |
I think the cause to this issue is that But as the Target was created without any parameters, the conversion to Try targetting |
Thanks for pointing that out @pepoluan, you are absolutely right, NOTRACK is indeed an alias for the CT target. I would like to point out that to perform that "NOTRACK" action, one could insert the rule in 2 different ways, however only the former seems to be properly processed by iptc.
The supported way then to handle the NOTRACK is as follows:
Shall we then close this issue or is there any way of adding support for the alias processing? Cheers! |
Just a thought: Should we augment the (IIRC, |
@jllorente there might be a way to handle this better, but I'm kinda pressed on time right now, so not sure when I'll be able to look into this. @pepoluan I usually don't really like adding target/match specific logic to the classes, but if you can elaborate or create a PR to show what you mean I'll be happy to review it. |
Busy doing other things, so rather than submitting a half-baked PR, I'll just illustrate it in a diff against latest
So, we have a global constant |
Oh I see. Unfortunately there's more here than meets the eye: whether a target/match should be marked as "deprecated" also depends on the version. I'm also not a fan of baking this into class. OTOH, it might be a good idea to update docs about this. |
Fair enough. I too am not really too keen on enforcement of DeprecatedWarning like this. Another idea would be to perform an (optional) auto-retrieval post-commit, and warn the user if the retrieved Target changes (e.g., from "NOTRACK" to "CT"). Not sure how much work to implement this kind of self-verification, though. |
I will close this issue. IMO the better way is using CT target anyway. |
Hi,
I think I've found a bug regarding target "NOTRACK"
I'm attempting to produce a test rule to untrack SCTP protocol
The problem is that the target is not handled properly and yields the following:
Steps to reproduce:
Any help would be appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: