Community discussions

MikroTik App
 
Wazza
newbie
Topic Author
Posts: 45
Joined: Thu Oct 13, 2011 10:43 am

Firewall matcher for locally connected subnet?

Tue Mar 03, 2015 2:40 pm

Hi there,

I'm wondering if there's a way to specify a generic rule that matches an IP address on a directly connected interfaces subnet?

ie: something like:-
 > /ip address print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                
 0   10.62.5.1/24       10.62.5.0       ether1                                   
 1   10.62.255.30/29    10.62.255.24    ether2                                   

/ip firewall filter add src-address-type=local-subnet
which would match any IP address in the above 10.52.5.0/24 or 10.62.255.24/29 networks?

Would make for a few easier, and more generic configs?

Thanks.
 
User avatar
rmmccann
Member Candidate
Member Candidate
Posts: 182
Joined: Tue Sep 25, 2012 11:15 pm
Location: USA

Re: Firewall matcher for locally connected subnet?

Tue Mar 03, 2015 10:24 pm

Hi there,

I'm wondering if there's a way to specify a generic rule that matches an IP address on a directly connected interfaces subnet?

ie: something like:-
 > /ip address print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                
 0   10.62.5.1/24       10.62.5.0       ether1                                   
 1   10.62.255.30/29    10.62.255.24    ether2                                   

/ip firewall filter add src-address-type=local-subnet
which would match any IP address in the above 10.52.5.0/24 or 10.62.255.24/29 networks?

Would make for a few easier, and more generic configs?

Thanks.
I don't believe this is available but I could see several scenarios for me where it would be useful. Right now, I usually create an address list for local subnets and have my filter rules reference that list.

Who is online

Users browsing this forum: GoogleOther [Bot], settecplus and 199 guests