Page 1 of 1
Alter Rule State
Posted: 09 Aug 2018 14:50
by Douglas
Hi
In the CG GUI, External Rules have a State checkbox. What is the command line to turn State on or off?
Re: Alter Rule State
Posted: 09 Aug 2018 14:58
by david
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,
Re: Alter Rule State
Posted: 09 Aug 2018 16:12
by Douglas
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.