Answer the question
In order to leave comments, you need to log in
Routing between VLANs on the same port in Mikrotik?
Good afternoon! Tell me, I have created two vlans on the Mikrotik port. Picked up DHCP for them and sent it to the switch. I checked it from the switch - everything is fine, I get the addresses in accordance with the necessary vlan. Then I did NAT for each vlan - the Internet appeared accordingly and pings went from one vlan to another, but I need to cut off network X from network Y, and network Y should easily go to network X. I started making rules in the Firewall, but as soon as I did one the rule to prohibit passing traffic from network X to Y packets stopped going in both directions. I tried to make a permissive rule for the passage of packets from Y to X, but pings do not go, however, the number of packets in the statistics of the rule increases, which means the rule is being processed.
I'm dealing with vlans for the first time, I'm sure that I'm doing something wrong, please tell me about my mistakes and how to implement this scheme?
Answer the question
In order to leave comments, you need to log in
Enough, in fact, one rule.
And explain why you masquerade? Two networks on one router will work fine without it, if you haven’t put something else there.
From Mikrotik's point of view, vlans are ordinary interfaces. They are no different from any other interfaces, and routing is the same. Accordingly, in the firewall, distinctions are introduced absolutely in full accordance with the logic of what is happening.
ping from network X to network Y - ping replies go from network Y to network X, and therefore fall under your deny rule.
You need to disable the passage of tcp syn packets from network Y to network X, this will close the possibility of establishing a connection from network Y to network X, but vice versa will be possible. Ping will go both ways, and udp will go both ways.
For more details - read how the TCP protocol works
Before drop, make a cut rule to go from X to Y, but set the Connection State to Established and Related, this will make it possible to receive responses to packets that were sent from network Y.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question