Q: IP set extras in dhcp and how to delete config

I see that IP set extra is storing the configuration under dhcp (/etc/config/dhcp).
I wonder why was dhcp chosen since I don't associate IP set with dhcp?

I have run the example/example6 config in the wiki and would like to remove it, is that just these commands?

uci delete dhcp.example
uci delete dhcp.example6
uci commit dhcp

uci delete firewall.example
uci delete firewall.example6
uci commit firewall

rm /var/ipset-example
rm /var/ipset-example6

service firewall reload

Correct, now it is clean.

Thanks for the confirmation.
But I did find out the set was still there.

nft -a list sets | grep example
        set example { # handle 192
        set example6 { # handle 193

So I deleted them with

nft delete set inet fw4 handle 192
nft delete set inet fw4 handle 193

Then there was the question about why the configuration is under dhcp.
Does anyone know why?
I see that @vgaetera have edited the IP set extras wiki page maybe you know why?

Because dhcp populates list with looked-up addresses.

1 Like