Hello, I have two VLANs with two subnets - 192.168.0 (0) and 192.168.1 (1).
I have printer in 0 and configured firewall rules so that printer can be accessed from 1.
However today I noticed that I can ping IPs in 0 from 1 which I shouldn’t. I tried to disable that firewall rule for printer and it still could be pinged from 1. How? I can also access my webserver running on 0.24 from subnet 1 even it’s not routed nor forwarded to that subnet. What can be set wrong?
(I cannot ping 0.20, 0.23, but I can ping 0.21, 0.22, 0.24 even while firewall allow rule is only for 0.21).
I also noticed that Bytes and Packets in that firewall rule are constantly 0, so it’s going somehow around that rule.
I hope you understand my problem. I can try to explain better if you’d want to.
And second question - how can I make virtual IP 192.168.1.25 and route smart TV from 192.168.0.25 to that? Android app for that is hard coded to search only it’s own subnet, so I need to make that TV on 0.25 be visible also on 1.25
Thank you for reply! Well, I thought that two subnets are separated by default. What a news for me
Here is my config, I only removed a lot of port forwards (like webserver, game server etc.)
There is also that firewall and NAT setting what I tried to make Smart TV visible in second subnet.
Btw. I am not Miktotik pro, I was setting it by reading some internet tips & tutorials - I have interest in IT and networking, so I am learning like this So there can be a lot of mistakes.
Options src/dst-address-list expect name of list defined in “/ip firewall address-list”, so in your case it would be e.g. list named “192.168.1.0/24” and you have no such thing. If you want to use address/network directly, you want src/dst-address option. In other words, most of your rules in forward chain currently don’t do anything.
Order of rules matters. So even if you fix 1), then e.g. this won’t be good:
because anything from 192.168.1.0/24 to 192.168.0.21 won’t ever get to second rule, it will be blocked by first one. Move the drop rule to the end of chain.
When allowing access from one subnet to specific devices in another, you need to allow only this direction. Reply packets will be allowed automatically by accept rule for connection-state=established at the beginning.
Unless you plan to extend vlan 10 to other devices in network, you can get rid of it completely and use wlan1_guest interface directly.
Dstnat for TV currently can’t work, because other devices in .1 subnet will expect .1.25 to be reachable directly, i.e. they will send APR request… and get not reply, because there’s no .1.25. Just add this address to router:
Thank you! It works now, but I can only ping that TV, I cannot cast to it nor connect from Android remote application, it says that TV has to be connected on the same network.
I read some ChromeCast forums and they said that there should be enabled UPnP, multicast and IGMP. Can this be that issue? How can I do that?
I’m affraid I won’t help you with this. So far I managed to live without needing to do anything extra related to multicast, so I don’t really know much about it.