Skip to main content
darrell
New Member
September 12, 2008
Question

Copy interface firewall policies

  • September 12, 2008
  • 3 replies
  • 4256 views
We have a couple of 300As (MR6) in a cluster managed by a FM400A (MR7p1). I am needing to duplicate all port5 policies to port6. Is there a quick way to do this either in FM or CLI?

    3 replies

    rwpatterson
    New Member
    September 15, 2008
    Don' t have a FortiManager, but if it' s like a Fortigate it should be pretty straight forward. [ul]
  • Make a backup without a password.
  • Edit the text file, and cut out the section that refers to the policies (config system policy in Fortigate).
  • Next remove all the policies that do not have port5 in them. (Make sure your network entities are not set for only ' port5' . The policy write will fail if they are! They have to be set to ' all' if you are going to use them on multiple ports.
  • Take a look at the GUI interface at the policy section, and determine the highest policy number.
  • Do a global replace on the short section of policies (port5 => port6).
  • Renumber the policies (or you will rewrite your existing ones!) starting with the next available policy number, determined from the GUI.
  • from the CLI, paste the new section of policies back into the running unit. [/ul] That' s it! Good luck
  • darrell
    darrellAuthor
    New Member
    September 15, 2008
    Thanks, I knew it could be done that way...just did not want to manually change all of the policy numbers if I did not have to.
    rwpatterson
    New Member
    September 15, 2008
    Sorry, you have to if you' re cloning. If you' re moving, skip that step.
    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.