Skip to main content
JuanPabloPWR
New Member
June 10, 2020
Solved

Blocked networks do not work

  • June 10, 2020
  • 5 replies
  • 5775 views

hi, a few weeks ago I started to receive attacks on all my servers nated by fortinet, I tried to block the attacking ip or networks but it does not work, the ip continue to attack and the fortinet does not work.

 

 

    Best answer by Dave_Hall

    You likely want to use local-in-policy if you do not want unwanted traffic hitting (or passing) your fgt's WAN(s) ports. 

     

     Here is an example:

     

    config firewall address     edit "China-Country"         set type geography         set associated-interface "wan1"         set country "CN"     next end config firewall addrgrp     edit "block-ingress-group"         set member "China-Country" end config firewall local-in-policy     edit 1         set intf "wan1"         set srcaddr "block-ingress-group"         set dstaddr "all"         set service "ALL"         set schedule "always"     next end

    5 replies

    Dave_Hall
    Dave_HallAnswer
    New Member
    June 10, 2020

    You likely want to use local-in-policy if you do not want unwanted traffic hitting (or passing) your fgt's WAN(s) ports. 

     

     Here is an example:

     

    config firewall address     edit "China-Country"         set type geography         set associated-interface "wan1"         set country "CN"     next end config firewall addrgrp     edit "block-ingress-group"         set member "China-Country" end config firewall local-in-policy     edit 1         set intf "wan1"         set srcaddr "block-ingress-group"         set dstaddr "all"         set service "ALL"         set schedule "always"     next end

    JuanPabloPWR
    New Member
    June 10, 2020

    This configuration can be done via the web or it is only by console

    Toshi_Esumi
    SuperUser
    SuperUser
    June 10, 2020
    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.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!