cgustave / fgtconfig

FortiGate configuration analysis and transformation
10 stars 3 forks source link

unknow rule id=system.fortiguard.hostname at /etc/perl/cfg_rules.pm line 404. #12

Open aterzgar opened 1 year ago

aterzgar commented 1 year ago

I see below error when i run the -splitconfig operation, any suggestion how i can solve it. unknow rule id=system.fortiguard.hostname at /etc/perl/cfg_rules.pm line 404.

cgustave commented 1 year ago

Hi aterzgar, ok, let me have a look Cedric.

cgustave commented 1 year ago

I've updated the release branch which was not up to date, and just tried with a basic config file, it worked for me :

root@ubuntu:/home/ubuntu/fgtconfig# mkdir /home/ubuntu/split
oot@ubuntu:/home/ubuntu/fgtconfig# ./fgtconfig.pl -config /home/ubuntu/myconfig.conf -splitconfig /home/ubuntu/split
root@ubuntu:/home/ubuntu/fgtconfig# ls /home/ubuntu/split/
_config_summary.conf  root.conf
root@ubuntu:/home/ubuntu/fgtconfig# 

You may want to try to update with a git pull and try again. Thanks, Cedric.

danje57 commented 1 year ago

Just clone the branch and I've also the same error:

unknow rule id=system.fortiguard.hostname at /etc/perl/cfg_rules.pm line 404.

aterzgar commented 1 year ago

i have updated too but the error is still persistent.