<moderator-hat>
@denzkie1191, please don't post essentially the same thing in multiple forums. I merged my reply to the other thread into this one, below, then deleted the other one. I chose this one only because it has other replies.
</moderator-hat>
I just want to ask what what firewall rules should i implemented in my current setup
Excepting the dstnat port forward rule,
the default ones, and none else, in all likelihood.
i want to locally host my web application which is requiring to open the port 3306
You write that as if the second statement necessarily and inevitably follows from the first, but that is almost certainly not the case.
If the .100 machine is hosting both a "web application" and a MySQL server listening on port 3306, there is nothing outside that host that needs to access the database, in which case the best practice is to tell MySQL to bind to localhost only and then connect to it from the web app via IP 127.0.0.1.
None of this is MikroTik-specific, and until you demonstrate that a remote host machine needs direct access to the database server, you're way off topic here. Follow the
standard database security advice.
Even better, if your application will always be able to run on a single host, switch from client-server DBMSes to SQLite or similar so that you don't need open ports even on localhost.
how can i protect my network from outside attacks or intrussion
The first step is discarding the idea that all problems of remote access are to be solved by opening ports. This is
frighteningly wrong-headed.