Firewall rules are not cleaned up properly #19
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
keyop-go/nfq_forwarder#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a process is killed it is unable to clean up firewall rules on exit.
We also do not record enough information in the rule comments to be able to identify rules relating the specific queue we're handling in order to remove them on startup.
We should record the queue number with the iptables rule comment, and on first startup should remove any rules relating to this particular queue. That removes the need for external manual cleanup of iptables rules.
Current script which performs cleanup of the rules on startup is at https://gitlab.keyop.co.uk/danny/scripts/-/blob/master/nfqctl?ref_type=heads
mentioned in commit
9871067144mentioned in merge request !57
Merge seems to work Ok, and the ordering concerns in the MR do not seem to be a problem.
Closing.
mentioned in commit
2e09fff4a9mentioned in commit danny/scripts@082b4c942f
mentioned in commit
80fd9d6922mentioned in commit
ebace5f679