Community discussions

 
tacoen
just joined
Topic Author
Posts: 4
Joined: Mon Jul 18, 2011 11:59 am

src-address

Tue Jul 31, 2018 9:24 am

How to print or find a entries using 'src-address' or 'dst-address'
/ip fi man print where chain=prerouting
I get some result:
12    chain=prerouting action=accept src-address=192.168.1.100 log=no log-prefix="" [code]

but

[code]/ip fi man print where src-address=192.168.1.100
I got none,

also with
/ip fi man print where src-address=192.168.1.100/32
how to properly enter 'src-address' or 'dst-address'?

the hint is always:
SrcAddress ::= [!]Range
  Range ::= A.B.C.D[-A.B.C.D |0..32 |/A.B.C.D ]    (IP address range
 
usdmatt
Frequent Visitor
Frequent Visitor
Posts: 52
Joined: Tue Oct 29, 2013 6:18 pm

Re: src-address

Tue Jul 31, 2018 11:05 am

Documentation seems really bad on this stuff..

It seems to work if the address is quoted:
/ip fi fil print where src-address="192.168.10.0/24"
Flags: X - disabled, I - invalid, D - dynamic 
 0   
      chain=forward action=drop src-address=192.168.10.0/24 dst-address=192.168.0.0/24 log=no log-prefix=""


The following also seems to work for me, although this was a guess and I can't find it mentioned anywhere online
/ip fi fil print where src-address in 192.168.8.0/22 
Flags: X - disabled, I - invalid, D - dynamic 
 0    
      chain=forward action=drop src-address=192.168.10.0/24 
      dst-address=192.168.0.0/24 log=no log-prefix="" 
 
User avatar
dasiu
Trainer
Trainer
Posts: 232
Joined: Fri Jan 30, 2009 11:41 am
Location: Reading, UK
Contact:

Re: src-address

Tue Jul 31, 2018 11:13 am

Use quotes :).
/ip fi man print where src-address="192.168.1.100"
edit: LOL, that timing :).
 
tacoen
just joined
Topic Author
Posts: 4
Joined: Mon Jul 18, 2011 11:59 am

Re: src-address

Tue Jul 31, 2018 6:15 pm

Oh, so silly me. :lol:

Who is online

Users browsing this forum: No registered users and 15 guests