Re: LUCI - add support for managing tags in DHCP and DNS configuration web page

Hello,

This is in response to prematurely closed thread linked below.

In this thread a user @systemcrash
shows off his custom made "tag matching tab" to the DHCP settings panel.

I need this ability to configure the following tags in particular

Set the ipxe tag for hosts already running iPXE as defined by their "PXE User Class"
dhcp-userclass=set:ipxe,iPXE

A class of devices on my network
dhcp-mac=set:customgateway,DE:AD:B0:0F:*:*
These devices will be served only a fakeinternet gateway
(like this dhcp-option=tag:customgateway,option:router,192.168.1.99)

This one might not be a tag properly
dhcp-range=192.168.1.0,proxy,255.255.255.0

I am not sure but I think all of the following ways can be used to set a tag to a host

client centric (? could be incomplete ?) these should be more straightforward to implement
--dhcp-vendorclass=set:<tag>,...	Tag based on DHCP vendor class
--dhcp-userclass=set:<tag>,...	Tag based on DHCP user class
--dhcp-mac=set:<tag>,...	Tag based on MAC address
--dhcp-circuitid=set:<tag>,...	Tag based on relay circuit ID
--dhcp-remoteid=set:<tag>,...	Tag based on relay remote ID
--dhcp-subscrid=set:<tag>,...	Tag based on subscriber ID
--dhcp-match=set:<tag>,...	Tag based on DHCP option values
--dhcp-name-match=set:<tag>,...	Tag based on DHCP client hostname
--tag-if=set:<tag>,...	Conditionally set tags based on other tags


server centric (? could be incorrect or incomplete ?)
--dhcp-host=...,set:<tag>	Tag specific hosts
--dhcp-range=set:<tag>,...	Tag based on IP range
--address=...,set:<tag>	Tag specific DNS responses
--server=...,set:<tag>	Use specific DNS server based on tag
--cname=...,set:<tag>	Apply CNAME records based on tag
--dhcp-option=tag:<tag>,...	Provide specific DHCP options to tagged clients
--dhcp-script=<script-path>	Use a custom script to set tags

So this thread is to inquire what is the status of the "Match Tags" tabs

And what series of commands can add the current test version to a fresh 23.05.5 openwrt installation for testing purposes.

See here.

2 Likes

Thank you,
Is it possible to try it on 23.05.5 ?

Sure is. Download dhcp.js and replace the device copy.