Skip to main content
polarpanda
Explorer
January 13, 2020
Question

General Policy Question

  • January 13, 2020
  • 8 replies
  • 6215 views

Hi there,

 

               I'm trying to learn the policy setup of fortigate product. Can anyone tell me why I need some specific policy for allowing traffic? I saw some allowing policies in my current environment has specific source and destination ip address (assuming all settings are same except source and destination). Why cannot allowing "all" source to "all" destination policy take care of the traffic? Thank you.

    8 replies

    neonbit
    New Member
    January 13, 2020

    You can certainly create an all > all policy to match everything, but in the security world this is not best practice. Ideally should only create policies/enable access for as specific IP and services as possible.

    polarpanda
    Explorer
    January 13, 2020

    neonbit wrote:

    You can certainly create an all > all policy to match everything, but in the security world this is not best practice. Ideally should only create policies/enable access for as specific IP and services as possible.

    Thank you for the answer Neonbit. Now I'm confused that an issue I encountered. We need a v server connects to an external ip address. We do have the policy of "all" to "all" from inside to outside. The traffic flow wasn't stable, it's on and off, and super slow. But as soon as I created a specific policy for this task. The issue was gone. Do you know the reason?

    emnoc
    New Member
    January 13, 2020

    I highly doubt a specific policy was the issue. What was you any/any policy did you have any UTM features enabled.

     

    Ken Felix

    sw2090
    SuperUser
    SuperUser
    January 14, 2020

    generally this is because all FortiGate do have one policy (#0) that blocks everything to everything.

    So one needs policies that match before #0 to alow traffic.

    emnoc
    New Member
    January 14, 2020

    Correct a implicit deny exist. So if you do not match any of the other policyid ( greater than 0 .....per se ) , than the ultimate action is to drop.

     

    Without seeing what he had enabled, we would not know the difference between the two policyIDs

     

    Ken Felix

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT