Hi MKs,
I would like to tidy up /restructure my firewall.
Instead of asking detailed questions, I would like to get opinions on how to structure it efficiently so that the CPU is spared as much as possible.
general protection for the router, against e.g. DsS/DDoS attacks, so RAW
Accept everything that is already running, or send it to FastTrack:
(maybe move this to router-access?)
3. website filter, if desired
4. allow new browser connections and email:
1. ```text
add action=accept chain=forward in-interface=VLANsWithWANAccees-List out-interface=WAN port=(email ports and 80, 443)
6. Protect router
7. Filter router access
1. ```text
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
…chain=input …
8. Protect LAN
1. Restrict access between VLANs (192.168.0.0/16 are all VLANs)
```text
add action=drop chain=forward dst-address=192.168.0.0/16 src-address=192.168.0.0/16
Forget “3” , there is no such thing as a webfilter in RouterOS that can be done efficiently to save CPU-cycles.
Venturing in any of this higher-level OSI-layer processing will have huge CPU-impact dwarfing your other rules…
Option “4” ? There is much much more then only browser & mail … only allowing these will break a lot…what is your environment ? Home-user ? Office/Enterprise ? Service-Provider ?
There is some ways to probably block Youtube completely, but I’ve never experimented with them if they are 100% working in 2022
With thing like “private DNS” (DNS-over-HTTPS etc) , usage of QUIC-protocol etc things are getting more complex. You need to block & intercept all of that stuff or will find some ways to “sneek through”
I saw it too and the answer on that below is not 100% usable continue discussion could be endless as it seems not to be that trivial, even for Pi-hole (#1) or openWRT (#1).
I would like to keep a high-level discussion at least until the structure is agreed . I rephrased the topic’s title, as the wording was not that well.