An administrator needs to ensure that a FortiGate can be managed via SSH only from the internal network, while also allowing SNMP polling from a management server. The administrator wants to restrict access to the management interface. Which configuration should be applied?
The 'set allowaccess' command on an interface controls which management protocols are enabled. By enabling only SSH and SNMP, other protocols are blocked. Additionally, trusted hosts on administrator accounts restrict SSH access to specific IPs. For SNMP, the community string and allowed hosts can be configured separately.
Why this answer
Management access to a FortiGate is controlled by the administrative access settings on each interface. Enabling only SSH and SNMP on the management interface restricts the protocols. Trusted hosts on administrator accounts further restrict SSH to specific source IPs.
SNMP access can be limited by configuring allowed hosts in the SNMP community settings.
Exam trap
The trap here is thinking that firewall policies can filter management traffic to the FortiGate, when in fact management access is governed by interface administrative access and trusted host settings.