Skip to main content
Mannyc
New Member
February 13, 2020
Question

Newbie - Re: fortigate 90E login failed alerts from blocked countries

  • February 13, 2020
  • 8 replies
  • 7352 views

Hello

We, as others, are trying to block certain repeat offender (countries) from attempting to and/or accessing our firewall.

We have a blocked-countries-group working with a deny all policy at the top of the list.  I receive admin alerts and I get several login attempts with src IP belonging to countries from that group.  Should that be happening?  I thought having that policy in place would essentially result in any and all packets coming from the blocked countries to just be dropped

 

Any clarification or guidance is appreciated

 

Thx

 

 

    8 replies

    Dave_Hall
    New Member
    February 13, 2020

    What you want to use is a Local-In policy for traffic directed at the Fortigate's front door. 

     

     

     

     

     

    Mannyc
    MannycAuthor
    New Member
    February 13, 2020

    Hello Dave

    Thank you for replying.  I don't know that much about router configs etc.  If you don't mind can you explain the following:

    1- What exactly is the existing policy doing for us?  (our fortigate was config'd and put in place by a vendor - we don't know enough to make changes and feel confident they are done correctly)

    2-The local-in policy you mention, is that something that can be done via the gui?

    3-what is the difference between what you suggest and what is in place?

     

    Thx

    Dave_Hall
    New Member
    February 13, 2020

    The fgt has a number of "open" ports that it listens in on, including ports for administrative access.  Local-in policies (for the most part) are meant to control (block or allow) this access. 

     

    Here is a script example:

    config firewall address     edit "China-Country"         set type geography         set associated-interface "wan1"         set country "CN"     next end

    config firewall addrgrp     edit "blocked-countries-group"         set member "China-Country"     next end

    config firewall local-in-policy     edit 1         set intf "wan1"         set srcaddr "blocked-countries-group"         set dstaddr "all"         set service "ALL"         set schedule "always"     next end

     

    (code snippy is from 5.2.)

     

    But if you merely want to restrict admin log in access to local or trusted hosts (as tioeudes noted above) you may be better off doing that.  The section on restricting administrative access can be found here.

     

    tioeudes
    New Member
    February 13, 2020

    The IPV4 policies are there for traffic passing through the fgt.

    The local-in policies are for traffic starting on / directed to your fortigate.

     

    To protect your device from unauthorized admin login you can:

     

    Disable HTTP/HTTPS/SSH/TELNET on you wan interfaces;

    Set trusted hosts for your legit admin accounts (that you allow your admin to log only from trusted networks);

    Define a password cration policy, forcing the admins to use only strong passwords;

    Not an option for everyone, but you can set up two factor authentication for admin logins.

     

    Regards,

    tioeudes

    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.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!