Skip to main content
train_wreck
New Member
Apr 9, 2020 10:51 AM UTC
Question

60E - Block traffic coming into firewall itself

I am getting hammered by a particular IP address on the WAN interface trying to brute force IPsec VPN (UDP port 500). How do I block traffic inbound to the device itself? I tried adding an IPv4 policy item with source & destination interface of "WAN1", a source address of the offending address, and a destination address of all. This did not work.

 

Cisco calls this the "control plane" traffic, which can be filtered just like regular interface access lists. Is this possible to do with Fortinet?

 

OS 6.0.

    6 replies

    Markus
    New Member
    Apr 9, 2020 11:15 AM UTC

    Try this as starting Point https://forum.fortinet.com/tm.aspx?m=177311&tree=true

     

    Translate
    train_wreck
    New Member
    Apr 9, 2020 11:21 AM UTC

    Wow. According to that post, there is currently not a way to block inbound UDP port 500 or 4500 on an IP basis. This is something Cisco has no problem doing......

    Translate
    ede_pfau
    SuperUser
    SuperUser
    Apr 9, 2020 11:38 AM UTC

    What?

    config firewall local-in-policy
        edit 1
            set intf "wan1"
            set srcaddr "VPN_origin_countries"
            set dstaddr "all"
            set action accept
            set service "IKE"
            set schedule "always"
        next
    end

    works perfectly. Explained: only those IP addresses contained in address group "VPN_origin_countries" will be allowed to open IPsec negotiations.

    Augment the service with a service group containing further protocols, like ESP and AH.

    Finally, block "ALL" services from "any" address from accessing the FGT.

    Translate
    shlomi
    New Member
    Apr 15, 2020 7:45 PM UTC
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024