I am trying to wrap my head around the Sophos Utm Api; my goal is to eventually create a small iOS app to block my kids from accessing the internet. The Utm is set up now in a way that I can activate a blackhole DNAT to redirect requests from my kids devices to nirvana, thus taking internet access from them. So that part is working fine.
My next goal is to figure out what Api call to do in order to switch said rules remotely. I have an Api user, given all permissions in `WebAdmin Settings` > `Access Control`. I can connect with my Sophos Api just fine with the url https://fqdn:4444/api and can also log in just fine. I also already have a Let's Encrypt cert in place, so https works just fine as well.
Also, I have a split DNS in place, so above fqdn resolves to my public IP from outside and to my local IP from the inside.
Now, to access the DNAT rules, I first want to retrieve all available DNAT rules with the Api route GET `/objects/packetfilter/nat/`. I tried in 3 different ways:
- using the `Try it out` button, receiving the following (calling via LAN interface)
- using the corresponding `curl` command (calling via LAN)
- using `curl` on a **remote** host (calling via WAN)
What I don't understand now is that I only get permission when calling from **outside** via WAN (200) -- all internal calls return a 403 Permission denied
Here's logs content:
```
This thread was automatically locked due to age.