Community discussions

MikroTik App
 
wwj
newbie
Topic Author
Posts: 28
Joined: Mon May 05, 2014 6:37 am

how to set a firewall address list group

Mon Jan 11, 2021 8:18 am

/ip f add add list=mylist1 address=172.16.3.5
/ip f add add list=mylist1 address=172.16.3.65
/ip f add add list=mylist1 address=172.16.3.22
/ip f add add list=mylist2 address=172.17.2.225
/ip f add add list=mylist2 address=172.17.2.21
/ip f add add list=mylist3 address=172.20.0.56
/ip f add add list=mylist4 address=172.31.100.8

for exp ,i want set mylist1-4 forward deny , i need set 4 ruls to drop (src-address-list=mylist1 ......)

if have a fuction to set like mylist-group1=mylist1,mylist2,mylist3,mylist4

and i can just set 1 rule to deny the group, (src-address-list=mylist-group1)
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 1895
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: how to set a firewall address list group

Mon Jan 11, 2021 10:13 am

There are no lists of lists.
Real admins use real keyboards.
To quote or not to quote, there is the topic: viewtopic.php?f=2&t=168474
 
Sob
Forum Guru
Forum Guru
Posts: 6474
Joined: Mon Apr 20, 2009 9:11 pm

Re: how to set a firewall address list group

Mon Jan 11, 2021 9:46 pm

And it's a pity, because ipset (which is probably used internally) does support lists of lists, together with other useful lists types (I would very much like to have its hash:ip,port list).
Excessive quoting is useless and annoying. If you use it, please consider if you could do without it.

Who is online

Users browsing this forum: nske, themtn and 232 guests