- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Get ARP and MAC Table from a Fortimanager Managed Firewall
I've been trying figure how to find the mac address and arp tables for one of our fortigate firewalls, but all the documentation seem to be for firewalls not connected to Fortimanager. As you may know, the cli becomes very limited one the a firewall when you connect to Fortimanager, and the CLI on it only seem to give the arp for the manager itself which is not very useful. We're running the Fortimanager VM64 KVM 7.2.8 if that helps. The firewall in question is 200f. Any help would be appreciated.
Solved! Go to Solution.
- Labels:
-
FortiGate
-
FortiManager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @wirelurker ,
I think that your user account does not have full permission to access the FGT. What is the prompt you got? #? $?
Anyway, there is another workaround to access FGT GUI via FMG if your FMG is running 7.4.2 or later:
1) Make sure that your FMG admin user account has either full permission or this option is enabled in your access profile:
2) Go back to Device Manager, click on Managed FortiGate, select the FGT you want to access, right click, choose "Remote Access":
It will open FGT GUI and if you login to the FGT GUI with full permission, you can bring up the FGT CLI widget in GUI with full access to all CLI commands.
So the key point is, do you have one FGT admin user account with full permission?
Jerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi wirelurker,
From the GUI, the MAC address of the interface and ARP list will not be visible.
It is necessary to Need to use the CLI.
Please refer to the below document for more information:
https://community.fortinet.com/t5/FortiManager/Technical-Tip-Mac-address-interface-and-ARP-list-for/...
You can refer the below document to check ARP entries on an ARP table in FortiGate.
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Using-get-system-arp-command-on-the-FortiG...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I do it from the fortimanager, it only lists the FMGR interfaces. If I ssh to the individual fortigates, there is no diagnose command and the get command is very limited as in no arp command and any subcommand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @wirelurker ,
Even if a FGT is managed by a FMG, you can still SSH into this FGT to run CLI commands.
Jerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These are my choices if I ssh to a managed firewall:
config
get
show
exit
Under get there is only the system command. Nothing else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @wirelurker ,
I think that your user account does not have full permission to access the FGT. What is the prompt you got? #? $?
Anyway, there is another workaround to access FGT GUI via FMG if your FMG is running 7.4.2 or later:
1) Make sure that your FMG admin user account has either full permission or this option is enabled in your access profile:
2) Go back to Device Manager, click on Managed FortiGate, select the FGT you want to access, right click, choose "Remote Access":
It will open FGT GUI and if you login to the FGT GUI with full permission, you can bring up the FGT CLI widget in GUI with full access to all CLI commands.
So the key point is, do you have one FGT admin user account with full permission?
Jerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That did it. Weird. If i ssh straight to a firewall using the admin account it's still a limited command mode. However, if access a FGT gui directly then open the cli from there I get a cli with (global). I can then access sudo <adom> and a huge list of commands including get sys arp. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @wirelurker ,
I am glad that I could be of assistance. Please mark it as a solution to help others experiencing the same issue as yours.
Jerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi wirelurker,
With the help of the command: get sys arp | grep wan -- you can see per port (MAC address learnt on a specific port, with age).
Per port (along with IP addresses and other details).
# diag ip arp list | grep wan
Current port mac address:
# diag hardware deviceinfo nic wan2 | grep HWaddr
You can refer to the below document to find the interface's MAC address
