not-na / fritzctl

Object oriented TR64 FRITZ!Box Client Library
GNU General Public License v2.0
4 stars 1 forks source link

Adding Ip(s) to block list #4

Closed Merlinux-source closed 7 months ago

Merlinux-source commented 9 months ago

I perused the documentation briefly. Is there a method to append one or more IP addresses to the block list of the Fritz!Box router? I have a straightforward scenario: in the event of detecting potential exploit attempts through honeypot pages on a PHP server, I aim to enact network-level blocking for those identified IPs.

not-na commented 7 months ago

Sorry for the delay in answering.

As far as I know (and could find in the official AVM TR064 documentation, linked here), there is no way to block an IP address within FRITZ!OS, so this library won't be able to do it. I also took a look at the FRITZ!Box Web UI and wasn't able to find any way to block external IPs, so I doubt that this is possible without some kind of additional firewall.

Feel free to send a feature request for this to AVM. I'll also see if they'd be open to such a feature. If they add it on their side, I'll add a convenient API for it in fritzctl.

I'm closing this issue for now, feel free to reopen if the circumstances change.