Hi
In the CG GUI, External Rules have a State checkbox. What is the command line to turn State on or off?
Alter Rule State
Re: Alter Rule State
Hi,
Please refer to the CLI documentation at https://www.cacheguard.net/doc/command/firewall.html. To enable/disable a rule you can use the last usage form as described in the documentation (firewall [(external | web | rweb | antivirus | admin | mon | file | peer | auxiliary) [((on | off) <rule-name>)+]])
For instance to disable a rule in the external rule set that has the ID r100 you can use the following rule:
Best Regards,
Please refer to the CLI documentation at https://www.cacheguard.net/doc/command/firewall.html. To enable/disable a rule you can use the last usage form as described in the documentation (firewall [(external | web | rweb | antivirus | admin | mon | file | peer | auxiliary) [((on | off) <rule-name>)+]])
For instance to disable a rule in the external rule set that has the ID r100 you can use the following rule:
Code: Select all
firewall external off r100
Re: Alter Rule State
David, thanks for the example which is far easier to understand than the documentation. Please understand that CG is something I and probably many users only deal with very occassionally, and we do not have the time to wade through complex documents to work out what is needed. Hence your prompt and skilled assistance is much needed and appreciated. Thanks again.