Hi, I’m really new to this Mikrotik Routing World so I need some advice on this subject. I’ve recently bought a RB2011 to use as my main router in a building network. I’ve created some VLANS with a DHCP server for each subnet inside the vlans to serve IPs to the clients and it works as expected, the only problem that I have is that every client can ping each other besides they are on different subnets, even different VLans. I’ve read that by default Router Os route every packet, but I’ve created a Drop all rule on the first VLan and nothing happend. Then I’ve read that by default Router Os doesn’t proccess VLans packets on the IP Firewall. So How should I configure the router so that no VLan can see each other but the all have acces to the internet gateway?
NAME MTU ARP VLAN-ID INTERFACE
0 R 1A 1500 enabled 2 ether2
1 R 1B 1500 enabled 3 ether2
2 R 1C 1500 enabled 4 ether2
3 R 1D 1500 enabled 5 ether2
Make your firewall rules with interfaces blocking… Like that…
IP firewall filter
add chain=forward in-interface vlanx out-interface=vlany action=drop
I wrote the rule from mind as i’m on phone now so hope I have not make any sintax error. Adapt that rule to your config and you should be fine.
I’ve disabled it but it doesnt work yet. I’ve seen that there is a dynamic rule filtering everything in the forward chain and it prevents my rule to get applied. How can I disable it?
The dummy rule doesn’t actually forward traffic. Ignore it.
Your problem is there’s no drop rule anywhere in your filter chain at all.
Add this to the end of your forward chain:
chain=forward out-interface=WAN action=accept
chain=forward action=drop
That works fine, if I set a drop all rule in the forward chain I can’t reach the gateway, and if I accept the out interface of the wan I’m able to do it. But the thing is that I still cant ping the other subnets inside other VLans. I’ve read that no VLans are proccess by the firewall (http://wiki.mikrotik.com/wiki/Manual:Interface/Bridge bridge settings). Should I place my VLans inside a bridge and then bridge them with the physical port?
Do you mean you can ping the Mikrotik’s vlan 3 interface from vlan 2 (for example)?
That is different because pings to the router itself don’t go through the forward chain but through the input chain. Lan to lan is still being blocked. You COULD create a bunch of input rules to block what you’re seeing but there’s no point in that.
Find a host in a vlan which will respond to pings from other hosts in the same LAN. You’ll find that this same host cannot be pinged from the other VLANs.