Community discussions

MikroTik App
 
Schmaex
just joined
Topic Author
Posts: 4
Joined: Fri Nov 24, 2023 12:43 am

Block Intra VLAN Traffic

Fri Nov 24, 2023 12:49 am

Good evening,
I have the following problem with my Mikrotik CRS326-46G-2S+.

I would like to block the internal VLAN traffic and redirect it to a gateway.

So 2 servers on port 7 and 8 have tagged the VLAN 20 and a firewall on port 10 as well.
Now I would like the two servers on port 7 and 8 VLAN 20 to no longer be able to talk to each other but to take the route via the gateway.

How can I implement this?

I have searched for several hours but have not found anything.

Many thanks in advance for your help.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13723
Joined: Thu Mar 03, 2016 10:23 pm

Re: Block Intra VLAN Traffic

Fri Nov 24, 2023 6:55 am

Why do both servers have to be in same VLAN? This complicates things a lot.
 
Schmaex
just joined
Topic Author
Posts: 4
Joined: Fri Nov 24, 2023 12:43 am

Re: Block Intra VLAN Traffic

Fri Nov 24, 2023 9:04 am

Let me explain.

The two servers are Hyper Visor.

Currently I have more than 30 VLANs.
One for each application.
And there will be more.

My plan is to reduce the Vlans to 3 or 4.
But the VMs should not be allowed to communicate with each other

There is also another case where I want to do this.
And I would like to know if the Mikrotik switches are able to do this.
Otherwise I will unfortunately have to switch to other manufacturers.
I wouldn't like that so much

Thanks
 
User avatar
jvanhambelgium
Forum Guru
Forum Guru
Posts: 1124
Joined: Thu Jul 14, 2016 9:29 pm
Location: Belgium

Re: Block Intra VLAN Traffic

Fri Nov 24, 2023 9:39 am

What you are looking for is called "PVLAN" constructuon in general (Private VLAN) and you would be using some form of "Isolated Ports" in a "Isolated VLAN" construction.
So 2 devices in such PVLAN cannot directly talk to each other but must pass through a device connected on a "Promiscous" port.

As far as I know, Mikrotik does not have this feature.


If you run Cisco ACI/SDAccess fabric (or other vendor) same result can be reached by tagging (SGT's) your traffic offering micro-isolation/segmentation but that is a whole different story. So in 1 IP-space you can have full control on what-talks-to-what

https://community.fs.com/article/what-i ... works.html
 
Schmaex
just joined
Topic Author
Posts: 4
Joined: Fri Nov 24, 2023 12:43 am

Re: Block Intra VLAN Traffic

Fri Nov 24, 2023 10:02 am

Thanks for the tip with the PVLAN.

Too bad that the Mikrotik doesn't have the exact feature I need.


Thanks anyway
 
User avatar
woland
Member
Member
Posts: 339
Joined: Mon Aug 16, 2021 4:49 pm

Re: Block Intra VLAN Traffic

Fri Nov 24, 2023 10:34 am

Hi,

yes you can, with switch port isolation, there is even a PVLAN chapter in the MT Wiki:
But PVLAN is a dirty hack, do yourself a favor, use separate vlans and the IP firewall rules, as mkx already wrote!

As for using ACI instead of a single CRS326-46G-2S+ : It´s like suggesting a homeless person to move in to the royal castle. It would certainly solve his problems... :?
 
Schmaex
just joined
Topic Author
Posts: 4
Joined: Fri Nov 24, 2023 12:43 am

Re: Block Intra VLAN Traffic

Fri Nov 24, 2023 10:58 am

I'll give it a try.

Thank you very much for your help
 
User avatar
jvanhambelgium
Forum Guru
Forum Guru
Posts: 1124
Joined: Thu Jul 14, 2016 9:29 pm
Location: Belgium

Re: Block Intra VLAN Traffic

Fri Nov 24, 2023 12:21 pm

As for using ACI instead of a single CRS326-46G-2S+ : It´s like suggesting a homeless person to move in to the royal castle. It would certainly solve his problems... :?
Yep, it sure is. Totally different worlds.
Good to know Mikrotik does support something like a PVLAN on certain models/chipsets so that might indeed solve the topic-starters main concern.