Open
Description
Hi,
I have a custom chain where packets are marked for further processing. What I am trying to do is
- Look up for a special rule base on its specification (protocol, source IP, destination IP ...). I had another interface to perform the scanning before calling my script so there aren't duplicated rules
- If a rule is found, it is replaced with another rule. They are basically the same rule except for their firewall mark. Then I delete the next rule which is a rule that help the packet match the aforementioned rule escaping my custom chain for further processing.
After profiling and I saw the function refresh has been called a lot. It takes about 30% of execution time and on our ARM box it takes about 4 seconds to run.
I attached the profiling output here. Could you please give me some advice for this matter ?
enable_a_firewall_rule.txt
Metadata
Metadata
Assignees
Labels
No labels