-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Port forwarding #44
Comments
I'd love to see this as well. However, given this AVM documentation (1.14) it will not be possible via TR-069:
When testing it out, it also only works the machine that I'm connecting from. What might be possible could be using the web UI API, i.e. calling |
A remote http-based access is possible by using the official AVM AHA-HTTP-Interface, but that's just a wrapper for a TR-064 api-subset for home automation. Controlling the box by the web UI is very fragile, can break on FritzOS updates and may even be model-specific. So I strongly discourage to try it this way. |
Hi, has anyone achieved this meanwhile? I have a very important use case I want to address with this feature (automate Let's Encrypt certificate renewal progress by only enabling port forward rule for few minutes) and it would be totally fine for being able doing this only by the machine affected by the port forwarding. Interesting: the Home Assistant fork (ha-fritzbox-tools) has implemented this already. How to do it in fritzconnection? |
ha-fritzbox-tools is based on fritzconnection, using the Layer3Forwarding service for this task. |
Uff. For me as a non-developer it´s quite hard to estimate if it´s possible to use the same methode like the ha-fritzbox-tools in my scenario (simple script: enable port forwarding / renew certificate / disable port forwarding). I tested fritzconnection and there are plenty of commands but obviously no "fritzports" or similar. How are chances there will in near future? |
Just a little reminder bump here. One year of silence has ended now -.- |
@kbr : What would you recommend if there is no official api ? |
Ask for one or hack at your own risk. If AVM changes internals this attempt may fail. Feel free to use the library to get an sid for that. It is officially published by AVM how to get one. |
Well, how did the Home Assistant AVM integration folks implement this? The integration is already capable of enabling/disabling port forwarding: https://www.home-assistant.io/integrations/fritz/#port-forward With the limitation "only by the host affected by the port forwarding". That's why I was really hoping (I still do) this will be easily implemented natively, out of the box, plug'n'play - no dirty hacks. |
I don't know how it is implemented in Home-Assistant, but it is open source and inspectable. |
Hello!
I'd like to have support for the following use case. I'm willing to pay a beer casket (maybe with Durstexpress.de)
I'd like to be able to take down all port forwarding assigned to any device with a specific port, such as 80. Then I'd like to enable one device to port forward.
In this case, does the TR-069 Fritz protocol or any of it's extensions allow a single host in the network to manage port forwarding for other hosts?
I'd like to use Home Assistant and detect if a host is online to turn on port-forwarding and then if it's offline disable the port-forwarding.
The text was updated successfully, but these errors were encountered: