Alter Rule State

Discuss and get help to configure and maintain CacheGuard
Post Reply
Douglas
Posts: 55
Joined: 15 Feb 2018 12:04

Alter Rule State

Post by Douglas »

Hi
In the CG GUI, External Rules have a State checkbox. What is the command line to turn State on or off?
User avatar
david
Posts: 163
Joined: 08 Aug 2015 20:38

Re: Alter Rule State

Post 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:

Code: Select all

firewall external off r100
Best Regards,
David Janeway
CacheGuard Technical Team
https://www.cacheguard.com
Douglas
Posts: 55
Joined: 15 Feb 2018 12:04

Re: Alter Rule State

Post 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.
Post Reply