dotwaffle / rancid-git

DEPRECATED -- Strongly consider using the upstream, the version here is very out of date and a poor place to start from!
http://www.shrubbery.net/rancid/
Other
218 stars 92 forks source link

Fortigate Backup doesn't works #77

Open alebeta opened 8 years ago

alebeta commented 8 years ago

Hello friends!

I have a issue with the Rancid backups of my Fortigate firewall. When i want to import the configuration from my backup to the firewall, the firewall return to me an error. I contact the Fortinet support and told me that the error comes from the backup files. And i made the test and its true. If we check the header from rancid:

RANCID-CONTENT-TYPE: fortigate

Version: FortiGate-1500D v5.2.5,build0701,151203 (GA)

Extreme DB: 1.00000(2012-10-17 15:47)

IPS-ETDB: 6.00781(2016-01-29 02:53)

Serial-Number: FG1K5D3I14804149

Botnet DB: 2.00765(2016-01-31 10:00)

BIOS version: 04000006

System Part-Number: P12917-05

Log hard disk: Available

Hostname: FW

Operation Mode: NAT

Current virtual domain: root

Max number of virtual domains: 100

Virtual domains status: 25 in NAT mode, 0 in TP mode

Virtual domain configuration: enable

FIPS-CC mode: disable

Current HA mode: a-p, backup

Branch point: 701

Release Version Information: GA

FortiOS x86-64: Yes

and the configuration start with

config system global

If we see the original backup from Fortigate the header look like this:

config-version=FG1K5D-5.02-FW-build701-151203:opmode=0:vdom=1:user=admin

conf_file_ver=7858069675405107643

buildno=0701

global_vdom=1

and the configuration start with

config vdom <----set all the vdoms here---> config global config system global


Look like rancid is jumping some configuration parameter.

I wanna know if a patch is available or some work around.

Thanks and all the best.

Alejandro B.