Community discussions

MikroTik App
 
m2c
just joined
Topic Author
Posts: 11
Joined: Tue May 23, 2017 11:58 am

Hex port isolation

Wed Mar 28, 2018 7:42 pm

Hi
Is there a way to isolate ports while using routerboard with basic switch menu (like Hex) and hardware offloading? I used filter to isolate ports in bridge, but it doesn't work with HW offload.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: Hex port isolation

Wed Mar 28, 2018 7:45 pm

What do you mean with isolate ports?
 
m2c
just joined
Topic Author
Posts: 11
Joined: Tue May 23, 2017 11:58 am

Re: Hex port isolation

Wed Mar 28, 2018 7:52 pm

I mean port level isolation.
https://wiki.mikrotik.com/wiki/Manual:C ... _Isolation.
In other words, blocking communication between ports that are not Uplink ports.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: Hex port isolation

Wed Mar 28, 2018 8:47 pm

I don't think it can be done on those routers (in hardware, I mean).
Of course you can isolate the ports (just remove master-port) but then you need to route them or bridge with horizon -> no hw.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19371
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Hex port isolation

Sat Mar 31, 2018 6:10 am

Assigning each interface/port as a different bridge isolates them I thought???
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Hex port isolation

Sat Mar 31, 2018 11:46 am

Assigning each interface/port as a different bridge isolates them I thought???
Yes, it does, in terms of safety against the devices connected to them seeing each other on L2. Whether you permit them to see each other at L3 (routing) depends on your firewall rules; without firewall rules, L3 traffic is freely routed between all interfaces.

But what the OP had in mind is the functionality of some switches which allow to permit the ports to forward packets at L2 only to chosen other ports, not to all. So all devices are in the same IP subnet but they can not see each other on L2, while all of them can see the gateway and the gateway can see all of them too.

So the hEX in particular, with its MT7621, cannot do this in hardware; it seems to be possible for models with ar8327 chip which supports rules in hardware, so you can say that a frame coming in through a given port will be forwarded to CPU port regardless what the MAC table of the chip says. But it is just a theoretical answer, I haven't tried yet.

But I can see no serious limitation coming from the fact that it must be done in software - the hardware-assisted bridge allows frames between LAN devices to bypass the CPU, but frames towards internet must be handled by the CPU anyway. So the handling of the traffic between each of the connected devices and the internet is handled the same way regardless whether the bridge uses hardware assistance or not, and the islolation rules configured on the bridge (in software) do not take so much CPU unless some malware floods the network with broadcast traffic, which would be a serious issue also if hardware port isolation would be in place.

So the only configuration where hardware port isolation would have an advantage would be where some other device, not the Mikrotik itself, would be the gateway for the devices connected to those ports to be isolated.
 
angboontiong
Forum Guru
Forum Guru
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: Hex port isolation

Thu Nov 22, 2018 6:53 am

U can set same horizon value to that port u dun want them talk to each other under...

Bridge > port > horizon.
HW offload have to unchecked.

Who is online

Users browsing this forum: GoogleOther [Bot], mansuramir and 184 guests