I have a question regarding adding ipsets to LEDE. I would like to add a hash:net table. I have the following config that successfully creates the table:
config ipset
option name 'bogons'
option family 'ipv4'
option storage 'hash'
option match 'net'
...but what option do I use to add hash:net entires to this list?
I'm attempting to do this because I'm not using the UCI for my ipsets (they are added to /etc/rc.local currently), but I have had success in adding entires into the firewall using extra arguments. I also understand the UCI permits entires directly refrencing the ipsets if they are added to the UCI. Thanks.
The list I created is the default size...the same size as my working list that I'm trying to migrate into UCI. As I noted, I am able to setup the list and it's working. I just don't know the syntax to add entries via /etc/config/firewall.
...but I understand the ipset command. I was trying to migrate my commands into OpenWRT. I do not believe you can make and pre-populate a hash:net set, I will continue to do that using ipset commands in /etc/rc.local.
The Wiki says I can declare the external set's name in UCI, though; and then have the option to make direct rules naming the set. This may be a good option, as I use one static Bogon hash:net set and one hash:ip set populated by a script upon a route change.