<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RouterOS Archives - Hécate Regnier - Neurozone</title>
	<atom:link href="https://hecate.neurozone.fr/tag/routeros/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>DBA, DevOps &#38; Sysadmin</description>
	<lastBuildDate>Mon, 02 Nov 2026 17:06:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://hecate.neurozone.fr/wp-content/uploads/2026/10/cropped-avatar_Instagram-150x150.webp</url>
	<title>RouterOS Archives - Hécate Regnier - Neurozone</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">258172890</site>	<item>
		<title>Troubleshooting: WireGuard TCP drops on a MikroTik router, and the bogons rule behind them</title>
		<link>https://hecate.neurozone.fr/2026/12/04/troubleshooting-wireguard-tcp-drops-mikrotik-bogons-rule/</link>
					<comments>https://hecate.neurozone.fr/2026/12/04/troubleshooting-wireguard-tcp-drops-mikrotik-bogons-rule/#respond</comments>
		
		<dc:creator><![CDATA[Hécate Regnier]]></dc:creator>
		<pubDate>Fri, 04 Dec 2026 09:00:00 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Sysadmin notebook]]></category>
		<category><![CDATA[diagnostic]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[MikroTik]]></category>
		<category><![CDATA[RouterOS]]></category>
		<category><![CDATA[WireGuard]]></category>
		<guid isPermaLink="false">https://hecate.neurozone.fr/?p=3557</guid>

					<description><![CDATA[<p>WireGuard TCP drops on a MikroTik router: ping works but new TCP and UDP connections vanish. The dead ends, the bogons rule behind them and the fix.</p>
<p>The post <a href="https://hecate.neurozone.fr/2026/12/04/troubleshooting-wireguard-tcp-drops-mikrotik-bogons-rule/">Troubleshooting: WireGuard TCP drops on a MikroTik router, and the bogons rule behind them</a> appeared first on <a href="https://hecate.neurozone.fr">Hécate Regnier - Neurozone</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">My WireGuard TCP drops on a MikroTik router took several troubleshooting sessions, and the cause was one firewall rule that I had not listed. The tunnel looked healthy and ping worked, but every new TCP connection from my LAN toward my server vanished without a trace. This article tells the story in the order I lived it, because the dead ends teach as much as the fix.</p>



<div class="quick-answer" style="background:#eef3fc;border-left:5px solid #4c7bd9;border-radius:4px;padding:16px 20px;margin:24px 0;color:#1f2937">
<p style="margin:0 0 8px"><strong>Quick answer</strong> — ping works through a WireGuard tunnel, but new TCP and UDP connections from the LAN vanish.</p>
<pre style="margin:0 0 8px;overflow:auto"><code># List the real members of the address list that a drop rule uses
/ip/firewall/address-list/print where list=bogons
# The forward drop rule after the fix: it now applies to traffic from the WAN only
chain=forward action=drop dst-address-list=bogons in-interface-list=WAN</code></pre>
<p style="margin:0;font-size:0.9em">Details, explanations and checks follow below. Addresses are examples.</p>
</div>



<h2 class="wp-block-heading">The symptom: WireGuard TCP drops with a healthy tunnel</h2>



<p class="wp-block-paragraph">The WireGuard tunnel joins my server and my MikroTik home router. Handshakes renew about every 25 seconds, ICMP passes, and connections started from the server toward LAN hosts work. However, any new TCP connection started by a LAN host toward the server&#8217;s tunnel address silently vanishes. There is no SYN, no RST and no answer, so the client just times out.</p>



<p class="wp-block-paragraph">I found the problem while setting up MariaDB replication from my server to a machine at home. I had tried the tunnel address first. Because it failed, I had to use the server&#8217;s public address instead, restricted by firewalld to my home IP, and that stayed my workaround for a while.</p>



<p class="wp-block-paragraph">The addresses below are examples, not mine:</p>



<ul class="wp-block-list"><li>LAN: 192.168.88.0/24, with a host at 192.168.88.17.</li><li>Tunnel: 10.99.0.0/24. The router interface has 10.99.0.2/24 and the server has 10.99.0.3.</li><li>The peer on the router uses allowed-address 10.99.0.3/32.</li></ul>



<figure class="wp-block-image size-full"><a href="https://hecate.neurozone.fr/wp-content/uploads/2026/11/wireguard-tcp-drops-forward-chain-path_en.webp"><img fetchpriority="high" decoding="async" width="1400" height="760" src="https://hecate.neurozone.fr/wp-content/uploads/2026/11/wireguard-tcp-drops-forward-chain-path_en.webp" alt="WireGuard TCP drops: a new connection meets the bogons drop rule in the forward chain, ping does not" class="wp-image-3556" srcset="https://hecate.neurozone.fr/wp-content/uploads/2026/11/wireguard-tcp-drops-forward-chain-path_en.webp 1400w, https://hecate.neurozone.fr/wp-content/uploads/2026/11/wireguard-tcp-drops-forward-chain-path_en-300x163.webp 300w, https://hecate.neurozone.fr/wp-content/uploads/2026/11/wireguard-tcp-drops-forward-chain-path_en-1024x556.webp 1024w, https://hecate.neurozone.fr/wp-content/uploads/2026/11/wireguard-tcp-drops-forward-chain-path_en-768x417.webp 768w" sizes="(max-width: 800px) 100vw, 760px" /></a><figcaption class="wp-element-caption">Why ping passed and new connections did not: the path through the forward chain.</figcaption></figure>



<h2 class="wp-block-heading">First checks: everything pointed at WireGuard</h2>



<ol class="wp-block-list"><li>I pinged the server from the LAN host. It worked.</li><li>I ran <code>nc -zv</code> from the LAN host toward the server, on the MariaDB port and on an arbitrary port. Both timed out, so the problem was not specific to MariaDB.</li><li>I ran <code>tcpdump -i wg0</code> on the server during the test. Zero packets arrived, so the failure sat on the router or in the tunnel.</li><li>A read-only API account showed nothing in the firewall filter, raw and mangle tables, because no rule counter moved during the test.</li><li>With a full account, I added temporary accept rules at the top of the raw prerouting, filter forward and mangle postrouting chains, matching the exact test traffic. All three matched and passed the packets.</li><li>A live <code>/tool/sniffer</code> capture on the WireGuard interface, run during the same test, captured zero packets.</li></ol>



<p class="wp-block-paragraph">At that point I concluded that the packet never left through the WireGuard interface. I blamed the RouterOS WireGuard send path. That conclusion was wrong, but it sent me down a long road.</p>



<h2 class="wp-block-heading">The detours</h2>



<p class="wp-block-paragraph">Here are the detours that did not explain the WireGuard TCP drops, in the order I tried them.</p>



<ul class="wp-block-list"><li><strong>The /24 against /32 theory.</strong> Forum threads describe the same symptom, with a peer <code>allowed-address</code> set to a whole /24 instead of the peer&#8217;s /32. My peer was already a /32, but the interface address was a /24. I changed the interface address to /32. The result was a total routing failure: ICMP died too, and the remote path I would have used to revert died with it. I reverted through the router&#8217;s local web interface. Nothing lasting broke, but the theory was disproven.</li><li><strong>Fasttrack.</strong> I disabled it live, reproduced the bug, then enabled it again. It was not the cause.</li><li><strong>MSS clamping and mangle rules.</strong> The mangle table only held dynamic fasttrack counters, so nothing there touched the SYN packets.</li><li><strong>A suspicious counter.</strong> A high tx-error counter on the interface did not increase when I reproduced the bug, so it was stale.</li><li><strong>UDP too.</strong> A traceroute from the LAN host got an answer from the router, then nothing beyond it, while ping to the same address worked. So the bug was not specific to TCP.</li><li><strong>Winbox torch.</strong> On site, torch showed what the sniffer had shown: ICMP appeared, new flows did not.</li><li><strong>A RouterOS upgrade.</strong> I read the changelog of the next release (my router ran 7.23.3) and found no matching fix, so I decided not to upgrade a production router for nothing.</li></ul>



<h2 class="wp-block-heading">The root cause of the WireGuard TCP drops: a static entry in the bogons list</h2>



<p class="wp-block-paragraph">The router had this rule in the forward chain: <code>chain=forward action=drop dst-address-list=bogons</code>. The <code>bogons</code> address list held a static entry for <code>10.0.0.0/8</code>. My server&#8217;s tunnel address lies inside that range, so every new connection toward it matched the drop, whatever its source.</p>



<p class="wp-block-paragraph">Ping worked because an ICMP accept rule sat earlier in the same chain. It let ICMP through before the traffic reached the bogons rule. The router&#8217;s own SSH to the server also worked, because the router generates that traffic itself. The MikroTik packet flow documentation says such traffic uses the output chain, while routed traffic uses the forward chain, so it never met the rule.</p>



<p class="wp-block-paragraph">The proof was quick. I placed a temporary accept rule for <code>dst-address=10.99.0.0/24</code> in the forward chain, ahead of the drop, and SSH from the LAN host passed immediately.</p>



<h2 class="wp-block-heading">The fix</h2>



<p class="wp-block-paragraph">I added <code>in-interface-list=WAN</code> to the existing rule, so that bogon filtering only applies to traffic that comes from the WAN. Private ranges are legitimate on internal-facing chains, meaning the LAN and the VPN tunnels, so they must not be filtered there.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell"># The forward drop rule after the fix (properties of the existing rule)
chain=forward action=drop dst-address-list=bogons in-interface-list=WAN</pre>



<h2 class="wp-block-heading">Check that it worked</h2>



<p class="wp-block-paragraph">Repeat the test that failed. The connection now succeeds at once.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell"># The same test that timed out before the fix, from a host on the LAN
nc -zv 10.99.0.3 22</pre>



<h2 class="wp-block-heading">Why my debug rules hid the cause</h2>



<p class="wp-block-paragraph">Two mistakes kept me away from the answer for several sessions.</p>



<ul class="wp-block-list"><li>The accept rules that I placed at the top of each chain pre-empted every rule below them. They proved that my debug rule worked, not that no other rule would have dropped the packets. The moment I removed them, the original bogons drop resumed silently.</li><li>My early check of the bogons list looked for traffic being added to the list. It did not look at the entries already sitting in the list as static members.</li></ul>



<h2 class="wp-block-heading">If you see the same symptom</h2>



<ul class="wp-block-list"><li>Dump the real members of every address list that a drop rule uses: <code>/ip/firewall/address-list/print where list=<name></code>.</li><li>Remember that a debug accept rule at the top of a chain hides every rule below it.</li><li>If ping works but new TCP and UDP flows fail, look for an ICMP accept rule that sits before a drop rule.</li><li>Compare the chains: traffic that the router generates uses output, and routed traffic uses forward.</li></ul>



<h2 class="wp-block-heading">What I take away</h2>



<ul class="wp-block-list"><li>The WireGuard TCP drops came from a firewall rule, not from WireGuard.</li><li>Eliminating other layers is useful, but only if each test really covers the rule you suspect.</li><li>Scope bogon filtering to the WAN, because private ranges belong on internal chains.</li></ul>



<h2 class="wp-block-heading">Sources</h2>



<ul class="wp-block-list"><li><a href="https://help.mikrotik.com/docs/spaces/ROS/pages/328227/Packet+Flow+in+RouterOS">MikroTik documentation: Packet Flow in RouterOS</a></li><li><a href="https://help.mikrotik.com/docs/spaces/ROS/pages/69664792/WireGuard">MikroTik documentation: WireGuard</a></li></ul>



<h2 class="wp-block-heading">Related articles</h2>



<ul class="wp-block-list"><li><a href="https://hecate.neurozone.fr/?p=595">How-to: install and configure WireGuard between a server and home</a></li><li><a href="https://hecate.neurozone.fr/?p=102">CrowdSec 1.8 on Debian: leaving the distro package, the postinst trap and a protection checklist</a></li><li><a href="https://hecate.neurozone.fr/?p=599">How-to: Suricata as an IPS with NFQUEUE, without breaking your server</a></li></ul>


<p>The post <a href="https://hecate.neurozone.fr/2026/12/04/troubleshooting-wireguard-tcp-drops-mikrotik-bogons-rule/">Troubleshooting: WireGuard TCP drops on a MikroTik router, and the bogons rule behind them</a> appeared first on <a href="https://hecate.neurozone.fr">Hécate Regnier - Neurozone</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hecate.neurozone.fr/2026/12/04/troubleshooting-wireguard-tcp-drops-mikrotik-bogons-rule/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3557</post-id>	</item>
	</channel>
</rss>
