Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
PCNSE
NSE
StrongSwan
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
PCNSE
NSE
StrongSwan
I've used bash scripts to automate much of this and substituting the text so that horrible interface names cam be fixed in the process:
linuxbox ~/bin $ cat ch text=`echo $* | sed 's/config *//'` echo "
################################################################################################### ################################################################################################### ###################################################################################################
" cat ~/chfw/chfw_raw | awk "/^config .*${text}/,/^end/" |\ sed ' s/MGMT-EXT/external_dmz/ s/.*deep-inspection-options "default"// s/dmzmgt/mgmt_ISP/ s/Ext SIP/external_sip/ s/ASA-INSIDE/inside_asa/ s/ASA-OUTSIDE/outside_asa/ s/Outside/outside_dmz/ s/Inside/inside_dmz/ s/MGMT-OOB2/DMZ_mgt/ ' |\ awk '/config nntp/,/end/ { sub (//,"#") } ; { print }' |\ egrep -v "set type aggregate|set allowaccess|set snmp-index|set vdom"
Then just run through the sections required to pipe over the config to the new device:
linuxbox ~/bin $ cat chfw_config ch config firewall schedule onetime ch config firewall schedule recurring ch config antivirus profile ch config application list ch config firewall shaper traffic-shaper ch config ips sensor ch config firewall ippool ch config firewall vip ch config firewall address ch config firewall addrgrp ch config firewall service custom ch config firewall service group ch config firewall policy ch config firewall DoS-policy
Just tweak the terminal speed so that you can paste the lot in and look for "fail" messages so you can maybe add sections of config required to make your config work.
After each attempt load a blank policy on via FortiManager to (nearly) blank the unit ready for the next attempt.
Enjoy!
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1666 | |
1077 | |
752 | |
446 | |
220 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.