How to log access to Home Assistant from an external IP address?

Hi,
I would like to log IP addresses which try to access my HA instance from the outside. My current setup is such that the my router forwards a specific port to a NGINX reverse proxy (running as an HA add-on) which then routes the traffic to Home Assistant. When I’m at home, I access HA via the internal IP address. What I would like to achieve is a way to log all IP addresses which access my HA via the NGINX->HA route (which must be access from the outside). Is there a good way to do that?
Thanks and regards

2 Likes