# CCR Router Firewall default rules -??? 

**URL:** <https://forum.mikrotik.com/t/ccr-router-firewall-default-rules/268292>\
**Category:** Security\
**Created:** [February 2, 2026, 11:30pm UTC](https://forum.mikrotik.com/t/ccr-router-firewall-default-rules/268292 "2026-02-02T23:30:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![estateofficer](https://forum.mikrotik.com/letter_avatar/estateofficer/32/6_449c533f586939b6e5f246632a46421f.png) [@estateofficer](https://forum.mikrotik.com/u/estateofficer)\
**Post date:** [February 2, 2026, 11:30pm UTC](https://forum.mikrotik.com/t/ccr-router-firewall-default-rules/268292/1 "2026-02-02T23:30:01Z")

</div>

How to fortify my CCR 2004 -16g - 2s+ router. Recently password hacked and the router was compromised.

Reset the router configuration with fresh install.

What are the default Minimum firewall rules.

Can I have from AI?

---

<div class="post-metadata">

**Author:** ![jaclaz](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/jaclaz/32/55652_2.png) [@jaclaz](https://forum.mikrotik.com/u/jaclaz)\
**Post date:** [February 3, 2026, 12:04am UTC](https://forum.mikrotik.com/t/ccr-router-firewall-default-rules/268292/2 "2026-02-03T00:04:28Z")

</div>

Start from the (unofficial) Rules of the Mikrotik Club:

> [@The twelve Rules of Mikrotik Club](https://forum.mikrotik.com/t/the-twelve-rules-of-mikrotik-club/182164):
>
> Preamble and disclaimer: The following is a set of Rules that are intended as advice useful to avoid the most common errors observed in configuration posted on this forum. It is my personal take on the matter, and in no way approved, endorsed or recommended, officially or unofficially, by Mikrotik or their partners or by anyone else. In other words you are perfectly free to ignore them, though they represent (IMHO) a sort of (good) cheat sheet/reminder for people starting to use these devices…

Rule #8 Is about the default firewall, in its corollary there is a link to an updated set of default firewall rules.

---

<div class="post-metadata">

**Author:** ![BartoszP](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/bartoszp/32/1386_2.png) [@BartoszP](https://forum.mikrotik.com/u/BartoszP)\
**Post date:** [February 5, 2026, 6:49am UTC](https://forum.mikrotik.com/t/ccr-router-firewall-default-rules/268292/3 "2026-02-05T06:49:19Z")

</div>

> [@estateofficer](#):
>
> Can I have from AI?

Yes, you can. Why not? But remeber to ask that AI for help when you would have problems.

Just a rethorical question: do you blindly believe to AI answers?

---

<div class="post-metadata">

**Author:** ![johnson73](https://forum.mikrotik.com/letter_avatar/johnson73/32/6_449c533f586939b6e5f246632a46421f.png) [@johnson73](https://forum.mikrotik.com/u/johnson73)\
**Post date:** [February 15, 2026, 7:27pm UTC](https://forum.mikrotik.com/t/ccr-router-firewall-default-rules/268292/4 "2026-02-15T19:27:10Z")

</div>

I would recommend you to use this method that I copied. The logic here is that you ban everything and then allow only what you need. It is a good practice.

> /firewall filter  
> add action=accept chain=input comment=  
> “defconf: accept established,related,untracked” connection-state=  
> established,related,untracked\*  
> add action=drop chain=input comment=“defconf: drop invalid” connection-state=invalid  
> add action=accept chain=input comment=“defconf: accept ICMP” protocol=icmp  
> add action=accept chain=input comment=  
> “defconf: accept to local loopback (for CAPsMAN)” dst-address=127.0.0.1  
> (admin rules)  
> add action=accept chain=input comment=“allow ONLY LAN originated traffic”  
> in-interface-list=LAN  
> add action=drop chain=input comment="drop all else"
> 
> add action=accept chain=forward comment=“defconf: accept in ipsec policy”  
> ipsec-policy=in,ipsec ( remove if not doing ipsec )  
> add action=accept chain=forward comment=“defconf: accept out ipsec policy”  
> ipsec-policy=out,ipsec ( remove if not doing ipsec )  
> add action=fasttrack-connection chain=forward comment=“defconf: fasttrack”  
> connection-state=established,related hw-offload=yes  
> add action=accept chain=forward comment=  
> “defconf: accept established,related, untracked” connection-state=  
> established,related,untracked  
> add action=drop chain=forward comment=“defconf: drop invalid”  
> connection-state=invalid  
> add action=accept chain=forward comment=“internet traffic” in-interface-list=LAN out-interface-list=WAN  
> add action=accept chain=forward comment=“port forwarding” connection-nat-state=dstnat disabled=yes { enable if required or remove }  
> add action=drop chain=forward comment=“drop all else”

---

<div class="post-metadata">

**Author:** ![anav](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/anav/32/2112_2.png) [@anav](https://forum.mikrotik.com/u/anav)\
**Post date:** [March 5, 2026, 7:59pm UTC](https://forum.mikrotik.com/t/ccr-router-firewall-default-rules/268292/5 "2026-03-05T19:59:30Z")

</div>

If your router was hacked, then you need to use netinstall to put in a fresh 7.21.3 for example.
