I have a problem in Winbox: in the Address List drop list box is showing an address list which doesn’t exists. I have triple checked every rule in the firewall/nat/mangle tabs and that address list isn’t used anywhere. I have even done a full export of the router configuration and there is no trace of that address list… Why is Winbox showing it?
Some possibilities come to mind. Some crazy bridge, made accidentaly after a litre of vodka. Or someone connected cable from WAN somewhere in LAN. Draw your network.
When you had the old rule that added that list, did you set the “address-list-timeout” parameter? If not, the entry will be in the address list forever. Well, unless you manually remove it.
How should I remove the address list manually? The only way I know is to remove all IP’s from it and if it isn’t in use anymore it disappears automatically…
And to find it it’s probably easiest to save a “/export” and search for the address list name in a text editor. Something is referring to it somewhere.
From the behavior I’m pretty sure it just parses the entire configuration for all references to address lists. So you’d have to look at every section that has configuration that can refer to address lists, get them all and compile your own list of lists.
I think that behavior is due to how dynamic address lists are now supported. For example, you can have a Hotspot user profile set up in a way that it adds the IP address of the client to an address list at login, and removes it at logout. Firewall, NAT and mangle rules should be able to select that address list name from a drop down, so it should show up - but if no client is logged in, the address list may have no members and may not show in “/ip firewall address-lists”. Dynamic address lists can also be populated by at least RADIUS, PPPoE and DHCP servers, there may be more.
Its not a bug or a problem. Every router I have out there has a drop with source-address-list=portscanners. But only sites that actually have been port-scanned have an address-list called port-scanners. When I go to choose another address list for a new rule, portscanners shows up because it is referenced in the config.
Thanks, roadracer96. I never thought it was a bug after your response. Then fewi backed it up. I can use a textbox rather than a drop-down. It’s a Blackberry phone app. Not supposed to be complex, just portable!
In that light, I recommend creating a supout.rif file and email to support as I mentioned above. If you would please post their response here also. I am interested for my own selfish reasons.
create some firewall rule and set, for example, src-address-list=some_new_name
2a) in WinBox: look at Address Lists tab - empty “some_new_name” list is already here
2b) in Terminal: “/ip fi address-lists add list=” - you will see “some_new_name” in possible completions
now, open the rule again and press “up” arrow right to the “Src. Address List” field (in Terminal - just unset it)
“some_new_name” list is still here (see 2)! but you cannot find that name in /export
(WinBox only - can’t find a way to do it via Terminal) open the rule and press “down” arrow right to the “Src. Address List” field - it’s already contains “some_new_name”! arrrgh! RouterOS is rancorous!
remove the rule and see, that “some_new_name” list disappeared =)
MT Staff, is there some way to completely unset the value?