Alter Rule State

Discuss and get help configuring CacheGuard OS
Post Reply
Douglas
Posts: 55
Joined: 15 Feb 2018 12:04

Alter Rule State

Post by Douglas » 09 Aug 2018 14:50

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: 157
Joined: 08 Aug 2015 20:38

Re: Alter Rule State

Post by david » 09 Aug 2018 14:58

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 Jan
CacheGuard Technical Team
https://www.cacheguard.com

Douglas
Posts: 55
Joined: 15 Feb 2018 12:04

Re: Alter Rule State

Post by Douglas » 09 Aug 2018 16:12

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