# ICMP: Input vs Forward chain

**URL:** <https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899>\
**Category:** Beginner Basics\
**Created:** [October 18, 2026, 2:14pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899 "2026-10-18T14:14:36Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![DCO](https://forum.mikrotik.com/letter_avatar/dco/32/6_449c533f586939b6e5f246632a46421f.png) [@DCO](https://forum.mikrotik.com/u/DCO)\
**Post date:** [October 18, 2026, 2:14pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/1 "2026-10-18T14:14:36Z")

</div>

I have some questions about ICMP (IPv4 only) and the RouterOS configuration.

Blocking ICMP traffic could break core networking techniques (like Path MTU Discovery).

The default RouterOS configuration has a default firewall rule to allow ICMP traffic on the Input chain.  
But there is no allow ICMP rule on the Forward chain.

- Is ICMP traffic from LAN to WAN connections (like browsing the web) always seen as RELATED traffic? Is that the reason why there is no ICMP rule on the Forward chain?
- If the above is true, is the ICMP rule on the input chain only for traffic originating from the internet to the router itself? Or other traffic as well? What are some examples of this kind of traffic, as I don't have any services (server, VPN, ...) exposed to WAN side of the router.

Just trying to improve my understanding of how things work.

Thank you!

---

<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:** [October 18, 2026, 2:27pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/2 "2026-10-18T14:27:24Z")

</div>

IN means: trafic toward router's interfaces that ends it's life in a router.

FORWARD: traffic WAN -\> LAN & LAN -\> WAN, LAN \<-\> LAN that passes through the router - maybe it is processed somehow during that pass

OUT: traffic originated by router and leaving it.

---

<div class="post-metadata">

**Author:** ![Amm0](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/amm0/32/1630_2.png) [@Amm0](https://forum.mikrotik.com/u/Amm0)\
**Post date:** [October 19, 2026, 4:05am UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/3 "2026-10-19T04:05:58Z")

</div>

> [@DCO](#):
>
> - Is ICMP traffic from LAN to WAN connections (like browsing the web) always seen as RELATED traffic? Is that the reason why there is no ICMP rule on the Forward chain?
> - If the above is true, is the ICMP rule on the input chain only for traffic originating from the internet to the router itself? Or other traffic as well? What are some examples of this kind of traffic, as I don't have any services (server, VPN, ...) exposed to WAN side of the router.

No, it's not "related" traffic per se. Rather, it's "NAT'ed" just like TCP traffic would be from LAN.

It confusing since the defconf firewall defaults uses interface-list filters works later in the firewall that indirectly allow ICMP (and LAN origin traffic), since there is not simple `drop` at end, you don't have "allow" ICMP to WAN. Instead, RouterOS structures it as:

```auto
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN

```

So WAN inbound is blocked on `forward`, but LAN outbound does NOT hit any filter,.. so it passes to /ip/firewall/nat, which srcnat the ICMP from LAN, and then it's add to connection tracking.

---

<div class="post-metadata">

**Author:** ![CGGXANNX](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/cggxannx/32/55490_2.png) [@CGGXANNX](https://forum.mikrotik.com/u/CGGXANNX)\
**Post date:** [October 19, 2026, 4:37am UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/4 "2026-10-19T04:37:28Z")

</div>

You can test yourself, by disabling fasttrack (if enabled) then add ICMP **coming from WAN** logging rules for both the `input` and `forward` chain at the top of the filter table. As example:

 ![image](https://data-discourse.cdn.mikrotik.com/original/3X/4/9/4944d79a45289b0095e4d7c9a41d98bf61094d8a.png)

- Green: When a client in LAN ping some remote address, NAT applies and the ICMP echo reply packets are tracked as `established` and are allowed through by the normal "accept established, related" rule of the `forward` chain.

- Orange: When a client makes outgoing connection (non ICMP), NAT still applied, and some error condition needs to be reported back via ICMP, that ICMP packet is tracked as `related`, and is also affected by the "accept established, related" rule of the `forward` chain.

- Purple: When the router itself tries to ping something, the response ICMP echo reply packets have the `established` connection state and are caught by the "accept established, related" rule of the `input` chain.

- Blue: When the router make outgoing connections (non ICMP) and some error condition needs to be reported back via ICMP, the ICMP packet has connection state `related`, and is also caught by the "accept established, related" rule of the `input` chain.

Which means for IPv4, with the default _defconf_ firewall rules, the _"defconf: accept ICMP"_ rule (which sits below _"defconf: accept established,related,untracked"_ of `input`) mostly only catches incoming ping requests (ICMP echo request) or bogus ICMP packets. And is not needed for handling errors of connections originated from LAN or from the router itself.

---

<div class="post-metadata">

**Author:** ![valsirob](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/valsirob/32/66112_2.png) [@valsirob](https://forum.mikrotik.com/u/valsirob)\
**Post date:** [October 19, 2026, 2:34pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/5 "2026-10-19T14:34:39Z")

</div>

Hello everyone,  
Based on the description above, is the following setup feasible—would it be correct, and would it actually work?  
For the inbound chain, I would allow ICMP traffic only from an address list containing specific addresses I’ve defined. For outbound requests, I would create a similar rule, but apply a filter based on specific source addresses from the router's LAN side (using a source address list). Regarding the LAN side, should this rule be applied to the OUTPUT or INPUT chain? Has anyone experimented with an idea like this? I’m curious about the implementation. I have a test environment available, which is why I’m bringing this up. Does such a setup make sense?  
Thanks

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [October 19, 2026, 2:36pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/6 "2026-10-19T14:36:18Z")

</div>

> [@valsirob](#):
>
> Does such a setup make sense?

//-No.

---

<div class="post-metadata">

**Author:** ![Amm0](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/amm0/32/1630_2.png) [@Amm0](https://forum.mikrotik.com/u/Amm0)\
**Post date:** [October 19, 2026, 2:39pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/7 "2026-10-19T14:39:48Z")

</div>

I guess we're missing what the problem you're having? The default firewall is pretty well-designed for a common LAN/WAN split without modifications. If you add interfaces like VLANs, if those go to the `LAN` interface-list, firewall works same. It only when you want to block IPv4/IPv6 between local interfaces (\*really, "subnets"), do you need to change the firewall.

---

<div class="post-metadata">

**Author:** ![valsirob](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/valsirob/32/66112_2.png) [@valsirob](https://forum.mikrotik.com/u/valsirob)\
**Post date:** [October 19, 2026, 2:48pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/8 "2026-10-19T14:48:21Z")

</div>

@ **Amm0**

Fair enough 🙂 But the idea crossed my mind to control who can ping from the WAN side and who cannot. Similarly, to manage this from the LAN side of the router as well. I’m referring to a standard router configuration—no VLANs, etc. It never hurts to experiment 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![DCO](https://forum.mikrotik.com/letter_avatar/dco/32/6_449c533f586939b6e5f246632a46421f.png) [@DCO](https://forum.mikrotik.com/u/DCO)\
**Post date:** [October 19, 2026, 4:26pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/9 "2026-10-19T16:26:41Z")

</div>

Thank you all and thank you @CGGXANNX for the very clear example.

---

<div class="post-metadata">

**Author:** ![tadawson](https://forum.mikrotik.com/letter_avatar/tadawson/32/6_449c533f586939b6e5f246632a46421f.png) [@tadawson](https://forum.mikrotik.com/u/tadawson)\
**Post date:** [October 19, 2026, 4:55pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/10 "2026-10-19T16:55:10Z")

</div>

By default, the only thing pingable from the WAN is the router itself,nothing else.

???

---

<div class="post-metadata">

**Author:** ![Amm0](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/amm0/32/1630_2.png) [@Amm0](https://forum.mikrotik.com/u/Amm0)\
**Post date:** [October 19, 2026, 5:05pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/11 "2026-10-19T17:05:38Z")

</div>

> [@valsirob](#):
>
> It never hurts to experiment

If you want to dig into ICMP and firewall, I'd suggest looking some of @Kentzo's firewall examples, since he takes a very sophisticated approach to handling ICMP. e.g. using `tcp-reset` instead of dumb `drop`, among others.

> [@Connection tracking, connection-state=invalid and loose-tcp-tracking](https://forum.mikrotik.com/t/connection-tracking-connection-state-invalid-and-loose-tcp-tracking/183467):
>
> I’m doing a yearly review of the firewall and would like to address an issue with dropped outgoing invalid packets. My current firewall setup for IPv4: \> /ip/firewall/filter/print where chain=forward chain=forward action=fasttrack-connection hw-offload=yes connection-state=established,related chain=forward action=accept connection-state=established,related chain=forward action=jump jump-target=trap out-interface=trap # unassigned private-use IPv4 identified via routing rules chain=forward act…

---

<div class="post-metadata">

**Author:** ![Kentzo](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/kentzo/32/1318_2.png) [@Kentzo](https://forum.mikrotik.com/u/Kentzo)\
**Post date:** [October 19, 2026, 5:43pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/12 "2026-10-19T17:43:14Z")

</div>

Need to check if I made changes to ICMP handling since the post.

> [@Amm0](#):
>
> he takes a very sophisticated approach to handling ICMP

It does look sophisticated in the configuration but modern edge routers easily handle such load.

---

<div class="post-metadata">

**Author:** ![valsirob](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/valsirob/32/66112_2.png) [@valsirob](https://forum.mikrotik.com/u/valsirob)\
**Post date:** [October 19, 2026, 6:24pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/13 "2026-10-19T18:24:09Z")

</div>

Cleaned by autor

---

<div class="post-metadata">

**Author:** ![Znevna](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/znevna/32/2459_2.png) [@Znevna](https://forum.mikrotik.com/u/Znevna)\
**Post date:** [October 19, 2026, 6:37pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/14 "2026-10-19T18:37:55Z")

</div>

Maybe you should open another topic instead of hijacking this one with your redhat skills.

We also like clean topics.

---

<div class="post-metadata">

**Author:** ![Kentzo](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/kentzo/32/1318_2.png) [@Kentzo](https://forum.mikrotik.com/u/Kentzo)\
**Post date:** [October 19, 2026, 11:03pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/15 "2026-10-19T23:03:34Z")

</div>

Here is how my current firewall handles ICMP and ICMPv6 as well as uses it to reject unwanted connections from LAN:

```auto
/ip/firewall/filter> export where chain=input      
add action=jump chain=input comment="Input: Jump to Invalid" connection-state=invalid jump-target=invalid
# .. a bunch of accepts
add action=accept chain=input comment="Input: Accept ICMP" protocol=icmp
add action=reject chain=input comment="Input: Reject All from LAN" in-interface-list=LAN reject-with=icmp-admin-prohibited
add action=drop chain=input comment="Input: Drop All"

/ip/firewall/filter> export where chain=forward
add action=jump chain=forward comment="Forward: Jump to Invalid" connection-state=invalid jump-target=invalid
# ... a bunch of accepts
add action=reject chain=forward comment="Forward: Reject All from LAN" in-interface-list=LAN reject-with=icmp-admin-prohibited
add action=drop chain=forward comment="Forward: Drop All"

/ip/firewall/filter> export where chain=invalid
add action=accept chain=invalid comment="Invalid: Accept Invalid FIN" protocol=tcp tcp-flags=fin
add action=accept chain=invalid comment="Invalid: Accept Invalid RST" protocol=tcp tcp-flags=rst
add action=accept chain=invalid comment="Invalid: Accept Invalid FIN,ACK" protocol=tcp tcp-flags=fin,ack
add action=reject chain=invalid comment="Invalid: Reject Invalid TCP from LAN" in-interface-list=LAN protocol=tcp reject-with=tcp-reset
add action=reject chain=invalid comment="Invalid: Reject Invalid from LAN" in-interface-list=LAN reject-with=icmp-admin-prohibited
add action=drop chain=invalid comment="Invalid: Drop Invalid"

/ipv6/firewall/raw> export 
add action=accept chain=prerouting comment="Prerouting: Accept unspecified for DAD from LAN" dst-address-list=ns_multicast icmp-options=135:0-255 in-interface-list=LAN protocol=icmpv6 src-address-list=unspecified
add action=accept chain=prerouting comment="Prerouting: Accept unspecified for MLD from LAN" dst-address-list=mld_multicast icmp-options=143:0-255 in-interface-list=LAN protocol=icmpv6 src-address-list=unspecified
add action=jump chain=prerouting comment="Prerouting: Jump to ICMPv6 chain" jump-target=icmpv6 protocol=icmpv6
add action=drop chain=icmpv6 comment="ICMP: Drop MLD Query from WAN" icmp-options=130:0-255 in-interface-list=WAN protocol=icmpv6
add action=drop chain=icmpv6 comment="ICMP: Drop MLDv1 Report from WAN" icmp-options=131:0-255 in-interface-list=WAN protocol=icmpv6
add action=drop chain=icmpv6 comment="ICMP: Drop MLDv1 Done from WAN" icmp-options=132:0-255 in-interface-list=WAN protocol=icmpv6
add action=drop chain=icmpv6 comment="ICMP: Drop MLDv2 Report from WAN" icmp-options=143:0-255 in-interface-list=WAN protocol=icmpv6
add action=drop chain=icmpv6 comment="ICMP: Drop Node Information Query from WAN" icmp-options=139:0-255 in-interface-list=WAN protocol=icmpv6
add action=drop chain=icmpv6 comment="ICMP: Drop Extended Echo Request from WAN" icmp-options=160:0-255 in-interface-list=WAN protocol=icmpv6
add action=return chain=icmpv6 comment="ICMP: Back to Prerouting"

/ipv6/firewall/filter> export where chain=input 
add action=jump chain=input comment="Input: Jump to Invalid" connection-state=invalid jump-target=invalid
# ... a bunch of accepts
add action=accept chain=input comment="Input: Accept ICMPv6" protocol=icmpv6
add action=reject chain=input comment="Input: Reject All from LAN" in-interface-list=LAN reject-with=icmp-admin-prohibited
add action=drop chain=input comment="Input: Drop All"

/ipv6/firewall/filter> export where chain=forward 
add action=jump chain=forward comment="Forward: Jump to Invalid" connection-state=invalid jump-target=invalid
add action=jump chain=forward comment="Forward: Jump to ICMPv6" jump-target=icmpv6 protocol=icmpv6
# ... a bunch of accepts
add action=reject chain=forward comment="Forward: Reject All from LAN" in-interface-list=LAN reject-with=icmp-admin-prohibited
add action=drop chain=forward comment="Forward: Drop All"

/ipv6/firewall/filter> export where chain=icmpv6  
add action=drop chain=icmpv6 comment="ICMP: (RFC4890) Drop hop-limit=1" hop-limit=equal:1 protocol=icmpv6
add action=drop chain=icmpv6 comment="ICMP: (RFC4890) Drop Renumbering " icmp-options=138:0-255 protocol=icmpv6
add action=accept chain=icmpv6 comment="ICMP: (RFC4890) Accept Node Information Query from LAN" icmp-options=139:0-255 in-interface-list=LAN protocol=icmpv6
add action=drop chain=icmpv6 comment="ICMP: (RFC4890) Drop Node Information Query" icmp-options=139:0-255 protocol=icmpv6
add action=accept chain=icmpv6 comment="ICMP: Accept All"

/ipv6/firewall/filter> export where chain=invalid 
add action=accept chain=invalid comment="Invalid: Accept Invalid FIN" protocol=tcp tcp-flags=fin
add action=accept chain=invalid comment="Invalid: Accept Invalid RST" protocol=tcp tcp-flags=rst
add action=accept chain=invalid comment="Invalid: Accept Invalid FIN,ACK" protocol=tcp tcp-flags=fin,ack
add action=reject chain=invalid comment="Invalid: Reject Invalid TCP from LAN" in-interface-list=LAN protocol=tcp reject-with=tcp-reset
add action=reject chain=invalid comment="Invalid: Reject Invalid from LAN" in-interface-list=LAN reject-with=icmp-admin-prohibited
add action=drop chain=invalid comment="Invalid: Drop Invalid"

/ipv6/firewall/address-list> export where list=unspecified      
add address=::/128 disabled=no dynamic=no list=unspecified

/ipv6/firewall/address-list> export where list=ns_multicast 
add address=ff02::1:ff00:0/104 dynamic=no list=ns_multicast

/ipv6/firewall/address-list> export where list=mld_multicast 
add address=ff02::16/128 comment="MLDv2 Report multicast" dynamic=no list=mld_multicast

```

---

<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:** [November 11, 2026, 1:28pm UTC](https://forum.mikrotik.com/t/icmp-input-vs-forward-chain/273899/16 "2026-11-11T13:28:48Z")

</div>

I prefer ( for home scenario)  
_/ip firewall filter  
add chain=input action=accept protocol=icmp_

Works, allows router functionality and has never caused me issues.  
What burns my gut is when the ISP blocks ICMP so I cant test things easily.

Perhaps the prose and beauty config above is standard or more applicable in a business environment??
