Skip to main content
FortiUser5
New Member
December 7, 2023
Question

Retrieve hostname/user from its IP or MAC Address

  • December 7, 2023
  • 2 replies
  • 3126 views

I am an admin and one of the client for the company that I am working for, is visiting websites that he/she should not.

From the FortiGate 80F's log, I can see that his/her action has been blocked by my Web-Filter but I would really like to know who this person is.

 

Is there a way to find this out?

2 replies

hbac
Staff
Staff
December 7, 2023

Hi @FortiUser5

 

In the logs, you should be able to see the source IP address. You can check on the Dashboard > Assets & Identities > Assets > You should be able to see the MAC address. 

 

Regards, 

Debbie_FTNT
Staff & Editor
Staff & Editor
December 8, 2023

Hey FortiUser5,

please note that if you have a layer3 switch in between the FortiGate and that user, the MAC address may not actually be accurate.

Depending on what device the user is on, the MAC address might also be randomly generated.

If there is no switch in between, and the device in question does NOT randomize MAC addresses, then yes you can get the detected MAC address from traffic log (there should be a matching one for the web-filter log, simply search for traffic logs with same session ID).

 

If there is an L3 switch in between, then you can instead check DHCP server records to find who requested that IP, and get the MAC address from there (depending on how long ago this was).

Again, this might not work if the device in question randomizes MAC addresses.

 

Aside from that, you can only really make changes to detect the user going forward, like enforcing some kind of authentication (FSSO might be an option if you're in a Windows AD environment and want the authentication to be passive, without user input required), so that users are logged in the future.

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.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!