Restrict self hosted access only to my local network

I have a docker self-hosted server with a DNS configured on AWS, but I need to restrict access only to the range of my local IP. How could I do that? I tried using iptables rules on my Debian 12 vm but without success…