Community discussions

MikroTik App
ALDev
刚刚加入了
Topic Author
Posts: 9
加入: Sun Nov 06, 2011 10:06 am

Address List doesn't work if network address is specified

Mon Nov 14, 2011 11:18 pm

Hello,

while trying to add addresses to an address list i faced the following issue:
1- create an address list
2- Name: test_addr_list
3- address: 192.168.1.0/24

4- add a mangle rule to add addresses to the list

NO addresses will be added to the list!!!

change the address in step 3 to some ip address, for example: 192.168.1.2 and things will start working normally, ip addresses will be added to the list by the mangle rule

i have RB450G v5.8 latest firmware.

is this a bug???

another point:
webfig: entering an address/mask converts the address to network address (as documented)
winbox: entering an address/mask gives an error message
Top
cieplik206
Trainer
Trainer
Posts: 290
加入: Sun Jul 01, 2007 12:25 am
Contact:

Re: Address List doesn't work if network address is specifie

Tue Nov 15, 2011 12:02 am

Working on my 5.8 Router
Top
mmmigoro
newbie
Posts: 39
加入: Mon Feb 14, 2011 3:48 pm
Location:PRAHOVA, Romania

Re: Address List doesn't work if network address is specifie

Tue Nov 15, 2011 1:20 am

Address list works perfectly in CIDR notation.
I'm currently using cidr in add lists on v3.30, 5.6, 5.7, 5.8. Perhaps there is something wrong elsewhere (firewall rules maybe).
Top
ALDev
刚刚加入了
Topic Author
Posts: 9
加入: Sun Nov 06, 2011 10:06 am

Re: Address List doesn't work if network address is specifie

Wed Nov 16, 2011 10:12 pm

Thank you cieplik206 and mmmigoro for replying

i have done a fresh installation of 5.7 with default configuration. the same issue as above exists. after some testing i found that if the mask is set to 32 things work:
192.168.1.0/32
but if its set to 24 as above it doesn't work.

Did it work for you with: address mask set to 24???

1- loaded default configuration
2- added and address list: 192.168.88.0/24
3- added a mangle rule to add src address to the list, i tested all chains
4- no addresses will be added to the list

5- changed address to: 192.168.88.0/32
things worked
Top
lambert
Long time Member
Long time Member
Posts: 547
加入: Fri Jul 23, 2010 1:09 am

Re: Address List doesn't work if network address is specifie

Thu Nov 17, 2011 2:24 am

Perhaps the addresses the mangle rule would have added are already on the list since each is one of the 256 IP addresses referenced by the 192.168.88.0/24 entry?

To experimentally verify, try using 192.168.88.0/25 and see if your mangle rule adds hosts in the 128-255 range.
Top
ALDev
刚刚加入了
Topic Author
Posts: 9
加入: Sun Nov 06, 2011 10:06 am

Re: Address List doesn't work if network address is specifie

Thu Nov 17, 2011 8:56 am

Thank you lambert for your reply.

In fact the list is empty except for the network address added when the list was created. the reason i loaded the default configuration was to avoid any errors done by me.
Top
yogii
Member Candidate
Member Candidate
Posts: 148
加入: Wed Jun 16, 2010 5:38 am
Location:Batam, Indonesia

Re: Address List doesn't work if network address is specifie

Thu Nov 17, 2011 1:17 pm

it is work for me.:)

address list also work for address/mask, why it doesn't work depends on your configuration.
please post your configure here!
Top
用户头像
sadeghrafie
Long time Member
Long time Member
Posts: 514
加入: Sat Nov 14, 2009 11:28 am
Location:Bushehr, IRAN

Re: Address List doesn't work if network address is specifie

Thu Nov 17, 2011 1:49 pm

Hi,
It works :
addlist.jpg
You do not have the required permissions to view the files attached to this post.
Top
lambert
Long time Member
Long time Member
Posts: 547
加入: Fri Jul 23, 2010 1:09 am

Re: Address List doesn't work if network address is specifie

Thu Nov 17, 2011 7:08 pm

Thank you, sadeghrafie.

That shows, very nicely, that the mangle rule adds entries for ips not covered by the /24.

Did you try any traffic from hosts which are covered by the /24?
Top
用户头像
sadeghrafie
Long time Member
Long time Member
Posts: 514
加入: Sat Nov 14, 2009 11:28 am
Location:Bushehr, IRAN

Re: Address List doesn't work if network address is specifie

Thu Nov 17, 2011 7:25 pm

Yes I try it. It doesn't add the addresses which covered with the /xx subnet. But the point is when ever I disable that address list (/xx ), the single IP address will add to address list.

It means the mangle rule checkactive address listsand see whether the certain IP address is in the list or not then add that IP.
Top
用户头像
Chupaka
Forum Guru
Forum Guru
Posts: 8689
加入: Mon Jun 19, 2006 11:15 pm
Location:Minsk, Belarus
Contact:

Re: Address List doesn't work if network address is specifie

Sun Nov 20, 2011 12:50 pm

well, behaviour is correct: if new address is already covered by address-list, then it won't be added:)

但我can't understand, why do you need to add dynamic addresses to the list you already filled-in manually %)
Top

Who is online

Users browsing this forum:Bing [Bot],Erbit,Error313,r00tand 33 guests