Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
340 stars 52 forks source link

Static IP leases in non-lan WiFis #1148

Open sanzoghenzo opened 1 year ago

sanzoghenzo commented 1 year ago

Device Model/Firmware: DGA4132 / AGTHP_2.3.3 (Tim HUB) GUI Version: 9.6.97-7e66e3cc

DebugHelper2022-07-13-2001.tar.gz

Hi, first of all many thanks for your hard work!

I configured the 2.4GHz guest WiFi to act as my IoT devices network; by adding a custom firewall rule, I was able to access the devices from LAN/main WiFi, so everything runs fine.

Now I would like to assign static IPs to my IoT devices, but I encounter some problems in the GUI:

probably the fastest/easiest thing to do is to check if the assigned IP is in one of the DHCP enabled networks, but at that point it should be moved to a separate section. The longer, but maybe more correct way, is to enable the Static lease in every network with DHCP, and filter the uci results for that network.

Obviously, if you think this is an edge case/not so useful for the most of us, you can ignore that, since I can leave with using the uci CLI.