Community discussions

MikroTik App
 
Ryeh
just joined
Topic Author
Posts: 1
Joined: Wed Feb 09, 2022 10:52 am

value of range expects range of ip addresses

Wed Feb 09, 2022 11:09 am

Hi guys
I try this Script but it does not work


/ip firewall filter
:local A
:local B
:local C
:local D
:local E
add action=accept chain=forward comment="$B-$C-$D-$E" src-address="$A"


interrupted
value of range expects range of ip addresses

On v6.48.3

Does anyone know?
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: value of range expects range of ip addresses

Wed Feb 09, 2022 5:46 pm

You try to set a filter where source address is nothing. That will not work and gives error.

This works:
{
/ip firewall filter
:local A 8.8.8.8
:local B This
:local C is
:local D a
:local E test
add action=accept chain=forward comment="$B-$C-$D-$E" src-address="$A"
}

Who is online

Users browsing this forum: No registered users and 18 guests