# Basic firewall packet traversal

**URL:** <https://forum.mikrotik.com/t/basic-firewall-packet-traversal/263290>\
**Category:** General\
**Created:** [July 26, 2025, 3:36pm UTC](https://forum.mikrotik.com/t/basic-firewall-packet-traversal/263290 "2025-07-26T15:36:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 26, 2025, 4:37pm UTC](https://forum.mikrotik.com/t/basic-firewall-packet-traversal/263290/4 "2025-07-26T16:37:47Z")

</div>

> [@ivvor48](#):
>
> presumably, the return path of traffic from the WAN resulting in no internet connectivity

That’s why usually (and it’s what MikroTik also put in their _defconf_ firewall) there should be an `accept` rule at the top of the `input` and `forward` chain, matching on `connection-state=established,related` (the _defconf_ FW also has `untracked` for the case where you also had RAW rules with `action=notrack`).

> [@ivvor48](#):
>
> So as a teaching aid can somebody illustrate the traversal

You can use the flowchart from this @jaclaz’s thread:

[The ultimate Mikrotik iptables flowchart - RouterOS / Useful user articles - MikroTik community forum](https://forum.mikrotik.com/t/the-ultimate-mikrotik-iptables-flowchart/184101)

Here as embedded image of version 0.6beta:

[![](https://data-discourse.cdn.mikrotik.com/original/3X/1/a/1a621542622fc803d453fb8dd83eb396988f91ad.png) ](https://data-discourse.cdn.mikrotik.com/original/3X/1/a/1a621542622fc803d453fb8dd83eb396988f91ad.png)

We will use the numbering from that image to illustrate the path taken when you ping 8.8.8.8 from a PC 192.168.88.5 on your main bridge subnet. Your router public IP address is 12.34.56.78. We assume there is no fasttrack rule:

- Packet from PC `src-address=192.168.88.5` `dst-address=8.8.8.8` `protocol=icmp` → #1 → #2 → #3 (for first ping packet, new conntrack entry is created, with `connection-state=new`, for 2nd, 3rd, etc… in short interval, packet is associated with existing entry and has `connection-state=established`) → #4 → #5 (N) → #10 → #11 (outgoing interface is determined here based on `dst-address=8.8.8.8`) → #12 (N) → #13 → #14 (here is where you have filter rules that block or allow forwarding, the _defconf_ FW has no rule to block this packet) → #23 → #24 (N) → #25 (here is where SRCNAT/masquerade happen, the source IP address is changed from the PC’s LAN address to the router’s WAN address `src-address=12.34.56.78`) → #27 (packet is sent out)

- Response packet from dns.google `src-address=8.8.8.8` `dst-address=12.34.56.78` `protocol=icmp` → #1 → #2 → #3 (here the packet is assigned the tracked connection, `dst-address` is changed to the PC’s address `192.168.88.5` and `connection-state=established`) → #4 → #5 (N) → #10 → #11 (`out-interface=bridge`) → #12 (N) → #13 → #14 (for _defconf_ FW this is allowed by the rule:

---

_[View the full topic](https://forum.mikrotik.com/t/basic-firewall-packet-traversal/263290)._
