DNS script check
#613
-
Hi. I'm using a script to inject iptables rules for dns/masquerade. The issue happens that sometimes a configuration/failover will cause the UDM to reload the firewall and nuke the rules. Is there a way (and if someone has an east to understand/copy) to run a script/cron to check for these firewall rules already exist and either re-apply or ignore and check next time. Thanks in advance for any help, appreciated ! |
Beta Was this translation helpful? Give feedback.
Answered by
m4n63
Jun 6, 2024
Replies: 1 comment 7 replies
-
Use the --check option to first check if it exists, like in this example:
|
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
zbugrkx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the --check option to first check if it exists, like in this example: