Hi,
Can anyone guide me how to block SNMP service from internet on fortinet.
Thanks
We are assuming snmp access to the FGT? Use the snmp host entries and enable SNMP allowaccess only on the interface(s) that you need.
e.g cli
config hosts edit 1 set ip 12.130.11.0 255.255.255.0 next edit 2 set ip 207.18.1.8 255.255.255.255 next
edit 3 set ip 207.19.1.89 255.255.255.255 next end
PCNSE
NSE
StrongSwan
Hi,
Thanks for your reply,
Can we block ports like TC/UDP - 161, 162 for any incoming traffic from internet. or is there any other way to do this.
Like emnoc said: Just disable the SNMP in the allow access settings of your WAN interface. This way the FortiGate doesn't listen on the SNMP ports anymore for this interface
Unless explicitly allowed, the Fortigate will silently dump any traffic pointed at it. If you don't open that interface to SNMP, it won't do anything with it but simply ignore it. From the GUI, simply allow the common protocols you wish to expose to the Internet. For security, I only allow HTTPS and PING. If I want secure shell, I open an SSL VPN tunnel and come in from the inside. HTTP on the outside interface is just plain silly.
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1743 | |
1114 | |
760 | |
447 | |
241 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.