Skip to main content
tronton_team
New Member
May 7, 2018
Question

(ASK) block NMAP

  • May 7, 2018
  • 3 replies
  • 10834 views

Hello,

I want to ask, recently i configure fortigate 90 D with enable IPS in my policy from internal to Internet

i try to scanning with NMAP from outside networks, but NMAP still can scan my networks

 

so i want to ask, how to i prevent NMAP from scanning my networks? anyone can help me?

 

sorry for my bad english.

    3 replies

    Toshi_Esumi
    SuperUser
    SuperUser
    May 7, 2018

    The scanning is out-to-in direction. Nothing to do with in-to-out policies. If the scanning can come through the FG, you must have polices with VIP or just routing into your internal network for out-to-in direction. Check those and filter them at the FG if it's routing in. If VIPs, narrow down the forwarding ports only the servers behind are serving. Those ports show as open obviously.

    tronton_team
    New Member
    May 17, 2018

    so i have create policy from outside to inside with enabled IPS for prevent NMAP scanning from my public ip ?

    sorry for my bad english

    Toshi_Esumi
    SuperUser
    SuperUser
    May 17, 2018

    Why would you create a new policy? If you don't have out-to-in policy at all, your network is mostly secure. Only ports somebody would see as open are those remote access to the outside IP on the FGT, such as SSH(22), HTTPS(443), and always BGP(179). You can close remote access ports by just disabling those access on the interface or list the source IPs you want to allow with local-in-policy or ACL. To close BGP port, options are only local-in-policy or ACL. Then you're clear for any security audit and penetration(PEN) tests.

    But if you happen to have (you don't seem to have any now) internal servers for outside users, like email servers, web servers, FTP servers, etc. and want to protect them from scanning and subsequent attackes at FW level, you can try some methods described in online manual below.

    http://help.fortinet.com/fos50hlp/54/Content/FortiOS/fortigate-firewall-52/Network%20Defense/Blocking%20external%20probes.htm

     

    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!