scripts access to the rules set | FWCloud Forum

scripts access to the rules set

chimmmpie

New member
Can script access/edit the ruleset? I would like to push a copy to git when it is installed as a audit log for example.
 

Carles Munyoz

Administrator
Staff member
I think that you could do it using a hook script rule.

For example, you can generate a hook script rule that inserts code for update git after each policy load. If the script doesn't changes, the git command will do nothing because you don't have any pending changes.
 

chimmmpie

New member
The script is executed on the host machine. For this i think it would be better if it can be executed on the fwcloud server. So basically a pre-compile / pre-install hook.

If there any documentation about the context the scripts are executed. What location. What files are accessible etc. Can it stop the execution etc.
 

Carles Munyoz

Administrator
Staff member
It is not possible at this moment, but we will evaluate it for a future release.

The FWCloud policy management script is installed in the destination firewall into the folder `/etc/fwcloud` and with the name `fwcloud.sh`

You can manage the policy using systemd:
Bash:
systemctl stop fwcloud
systemctl start fwcloud
systemctl status fwcloud
 
Top