Community discussions

MikroTik App
 
RKLMIKRITIK84
just joined
Topic Author
Posts: 2
Joined: Tue Oct 07, 2014 3:49 pm

Same subnet - firewall - block device access

Tue Oct 07, 2014 4:05 pm

Hi.

I have two IP address:
1. 10.0.0.163
2. 10.0.0.245

I do not want to access from 1. to 2.

I think it is possible by the firewall...

How can I do this?

Thanx.
 
User avatar
rickfrey
Trainer
Trainer
Posts: 609
Joined: Sun Feb 14, 2010 11:41 pm
Location: Van, Texas
Contact:

Re: Same subnet - firewall - block device access

Tue Oct 07, 2014 5:02 pm

This should get you going in the right direction:
add action=drop chain=forward dst-address=10.0.0.245 src-address=10.0.0.163
Be sure to test it thoroughly from both directions and to any other LAN segments that you may want ensure that they have access to.
 
Fraction
Frequent Visitor
Frequent Visitor
Posts: 84
Joined: Wed Jan 16, 2013 9:42 pm
Location: Helsinki, Finland

Re: Same subnet - firewall - block device access

Thu Oct 09, 2014 12:01 pm

And be sure that both devices are connected directly to your firewall. If there is switch between firewall and devices, traffic never comes to firewall.
 
Rudios
Forum Veteran
Forum Veteran
Posts: 973
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: Same subnet - firewall - block device access

Thu Oct 09, 2014 12:49 pm

And also if a bridge is configured on the mikrotik configure

ros code

/interface bridge settings
set use-ip-firewall=yes
If you are using master-port configuration, it will not work since the traffic never reaches the CPU of the Routerboard.
 
neutronlaser
Member
Member
Posts: 445
Joined: Thu Jan 18, 2018 5:18 pm

Re: Same subnet - firewall - block device access

Tue Sep 29, 2020 5:06 pm

How do I not use a master-port configuration, so that all this traffic goes thru the CPU?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Same subnet - firewall - block device access

Wed Sep 30, 2020 6:33 pm

How do I not use a master-port configuration, so that all this traffic goes thru the CPU?
Master port configuration has been gone since years, currently the instruction would say you have to disable hardware forwarding - in each row of /interface bridge port, set hw=no. It's the same feature controlled in a different way.

As for use-ip-firewall=yes, it has some unpleasant side effects, so I'd recommend to use /interface bridge filter rules instead. They can match on IP addresses, protocols and protocol ports, except that the MAC protocol matching suffers from a bug which means that on some architectures you have to configure the MAC protocols using swapped byte order. And bridge filter rules are not stateful, so no connection-state matching is possible.
 
neutronlaser
Member
Member
Posts: 445
Joined: Thu Jan 18, 2018 5:18 pm

Re: Same subnet - firewall - block device access

Wed Sep 30, 2020 8:53 pm

Thank you

Who is online

Users browsing this forum: DanMos79, fposavec, jaclaz, lif2k3 and 126 guests