Skip to main content
Lupo
Explorer
July 27, 2022
Solved

Manually send an arp request from Fortigate (arping)

  • July 27, 2022
  • 4 replies
  • 10405 views

Hello everyone,

 

is there a command to manually send an ARP request for a specific IP on a local interface? What I'm looking for is a functionality much like the 'arping' tool on Linux.

 

My usecase is determining whether there is a duplicate IP on a directly connected network.

 

Kind regards,

Lupo

Best answer by pminarik

No command specifically for that, but you can just run "exe ping <specific-ip>". If the IP/MAC isn't already in its ARP table (get sys arp), the FortiGate will naturally send out an ARP request to try and get it. (assuming the FortiGate has an IP in the same subnet, of course)

 

To have immediate feedback, you can run sniffer for ARP traffic on the relevant interface (diag sniffer packet <interface> "arp" 4 0 a).

4 replies

Yurisk
SuperUser
SuperUser
July 27, 2022

Nope, there is no such thing in the Fortigates. 

yurisk.info - all things Fortinet blog, no ads
pminarik
Staff
pminarikAnswer
Staff
July 27, 2022

No command specifically for that, but you can just run "exe ping <specific-ip>". If the IP/MAC isn't already in its ARP table (get sys arp), the FortiGate will naturally send out an ARP request to try and get it. (assuming the FortiGate has an IP in the same subnet, of course)

 

To have immediate feedback, you can run sniffer for ARP traffic on the relevant interface (diag sniffer packet <interface> "arp" 4 0 a).

Lupo
LupoAuthor
Explorer
July 27, 2022

Thank you for your reply! Sniffing for the - possibly multiple - ARP replies is a good idea (together with manually clearing the ARP entry in question before the exec ping).

I had a specific case where I suspected someone used an interface IP of the FortiGate as a system IP address. Do you have any ideas how to proceed in such a scenario?

pminarik
Staff
Staff
July 27, 2022

As for fixing the current problem right now, all you can do is sniff the traffic and try to identify and remove/fix the offending device.

 

As for future prevention: If you have a FortiSwitch, consider deploying ARP inspection to prevent IP spoofing - https://docs.fortinet.com/document/fortiswitch/7.0.4/administration-guide/500016/dynamic-arp-inspection .

 

If you have a third-party switch, check their documentation for a similar feature that you could utilize.

 

I don't think a lone FortiGate (using a dumb switch, or an internal switch of the FortiGate) can do anything about it on its own. (corrections welcome)

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!