Skip to main content
Jonathan_Body_FTNT
Staff
Staff
March 3, 2010

Technical Tip: How to allow traceroute from Linux or MacOS system

  • March 3, 2010
  • 0 replies
  • 18007 views

Description

 

This article provides background on ICMP and UDP traceroute functionality in the FortiGate and explains why the FortiGate cannot be tracerouted from a MacOS or a Linux Operating System.


Scope

 

All FortiGate users.


Solution

 

The FortiGate is designed to only allow ICMP when 'set allowaccess ping' is configured in the interface settings. As a result, traceroutes with UDP packets destined for the interface of the FortiGate are dropped when a standard traceroute from Linux or MacOS is performed.

It is possible to traceroute to the FortiGate from a Windows PC (uses ICMP based traceroute), but not from a Linux or a MacOS machine. Both Linux and MacOS use a UDP-based traceroute by default.

ICMP must be used for a FortiGate to reply to a traceroute request. In Linux, the 'traceroute -I' command should be used to enable ICMP-based traceroute. 'set allowaccess ping' should also be configured on the FortiGate interface:
 
config system interface
    edit "mgmt1"
        set vdom "InternetNAT"
        set ip 192.168.182.155 255.255.254.0
        set allowaccess ping https ssh snmp http telnet
        set type physical
        set alias "Test purpose Management"
    next
end
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.