Community discussions

MikroTik App
User avatar
archerious
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: 太阳Aug 26, 2018 7:50 am
Location:USA
Contact:

Block Intervlan one direction but not other?

Thu May 07, 2020 11:16 pm

I am used to Ubiquiti more, and on there I had LAN_LOCAL rules that prevented VLAN20 from talking to VLAN100, but the opposite worked.

This is useful to me as I need VLAN100 to be able to manage all VLANs and ssh them across.

Is it possible on Mikrotik? I tried some basic drop rules for VLAN20 to VLAN100 but it blocks traffic both ways, I only want it blocked one way.

Even tried with L3 blocking 10.10.10.0/24 from 10.1.1.0/24 but it blocks both directions.

TLDR - Can we block intervlan one direction but not the other?
Top
User avatar
jvanhambelgium
Forum Veteran
Forum Veteran
Posts: 934
Joined: Thu Jul 14, 2016 9:29 pm
Location:Belgium

Re: Block Intervlan one direction but not other?[SOLVED]

Thu May 07, 2020 11:28 pm

I am used to Ubiquiti more, and on there I had LAN_LOCAL rules that prevented VLAN20 from talking to VLAN100, but the opposite worked.

This is useful to me as I need VLAN100 to be able to manage all VLANs and ssh them across.

Is it possible on Mikrotik? I tried some basic drop rules for VLAN20 to VLAN100 but it blocks traffic both ways, I only want it blocked one way.

Even tried with L3 blocking 10.10.10.0/24 from 10.1.1.0/24 but it blocks both directions.

TLDR - Can we block intervlan one direction but not the other?
Perhaps you should specify more criteria in your firewall-rule ? Why don't you include some src-interface and select "vlan 20" or something ? I don't use VLAN's but I guess these "interfaces" show up in the list no ? In Webfig I have a "all vlan" "interface" next to the pppoe, eth1... etc so if you create vlan-interfaces (L3) I guess they show up ?
If you move the VLAN100 allow rule to the top that should allow at least your management.
Top
User avatar
archerious
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: 太阳Aug 26, 2018 7:50 am
Location:USA
Contact:

Re: Block Intervlan one direction but not other?

Fri May 08, 2020 12:07 am

I am used to Ubiquiti more, and on there I had LAN_LOCAL rules that prevented VLAN20 from talking to VLAN100, but the opposite worked.

This is useful to me as I need VLAN100 to be able to manage all VLANs and ssh them across.

Is it possible on Mikrotik? I tried some basic drop rules for VLAN20 to VLAN100 but it blocks traffic both ways, I only want it blocked one way.

Even tried with L3 blocking 10.10.10.0/24 from 10.1.1.0/24 but it blocks both directions.

TLDR - Can we block intervlan one direction but not the other?
Perhaps you should specify more criteria in your firewall-rule ? Why don't you include some src-interface and select "vlan 20" or something ? I don't use VLAN's but I guess these "interfaces" show up in the list no ? In Webfig I have a "all vlan" "interface" next to the pppoe, eth1... etc so if you create vlan-interfaces (L3) I guess they show up ?
If you move the VLAN100 allow rule to the top that should allow at least your management.
Omg I feel so dumb, you're right. On the Ubnt I had an allow local rule for VLAN100 out above the block intervlan rules.

I just added an accept forward rule for VLAN100 out, put it above block VLAN20 rule, and it works. I can send packets to vlan 20, but vlan 20 can't send back to VLAN100.

Image

我觉得很愚蠢的lol。非常感谢同志!
Top
User avatar
anav
Forum Guru
Forum Guru
Posts: 17421
Joined: 太阳Feb 18, 2018 11:28 pm
Location:Nova Scotia, Canada
Contact:

Re: Block Intervlan one direction but not other?

Fri May 08, 2020 12:47 am

To make it even better why not clean up many of your rules.

Put the last rule in the forward chain as
chain=forward action=drop comment="drop all else"

Then all you need in the forward chain is to identify all the traffic flow that is authorized, the rest will be dropped by the last rule!!
Top

Who is online

Users browsing this forum: No registered users and 7 guests