# Node is not able to start behind mikrotik, ports are open

**URL:** <https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313>\
**Category:** Support\
**Tags:** nodes\
**Created:** [March 26, 2023, 11:43am UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313 "2023-03-26T11:43:22Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [March 26, 2023, 11:43am UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/1 "2023-03-26T11:43:22Z")

</div>

## Issue Report

### Environment

- ubuntu 20.04
- ryzen9 5950x
- 128gb
- 1tb ssd
- 850gb
- docker

### Problem

I never getting `Discovered new external address for our node: ` and Node cannot start to sync.  
If I replace mikrotik by cheap tplink its working, but i need mikrotik.

#### Steps to reproduce

#### Expected result

Node should report that it cannot register to network and farmer should not fill logs with retries.

#### What happens instead

I never getting `Discovered new external address for our node: ` and Node cannot start to sync.  
Ports are open and i can telnet to them from another place.  
Here my mikrotik rules

> add action=dst-nat chain=dstnat dst-port=30333 protocol=tcp to-addresses=192.168.88.102 to-ports=30333  
> add action=dst-nat chain=dstnat dst-port=30433 protocol=tcp to-addresses=192.168.88.102 to-ports=30433  
> add action=dst-nat chain=dstnat dst-port=30533 protocol=tcp to-addresses=192.168.88.102 to-ports=30533

Also I get every time

> node\_1 | 2023-03-26 11:23:38 [PrimaryChain] ❌ Error while dialing /dns/telemetry.subspace.network/tcp/443/x-parity-wss/%2Fsubmit%2F: Custom { kind: Other, error: Timeout }

But i can connect to it

> telnet telemetry.subspace.network 443  
> Trying 165.227.120.232…  
> Connected to telemetry.subspace.network.  
> Escape character is ‘^]’.

[Paste error here]

> Attaching to subspace\_node\_1  
> node\_1 | 2023-03-26 11:23:16 Subspace  
> node\_1 | 2023-03-26 11:23:16 ✌ version 0.1.0-4c28b5505e20a0367074dd1a59b8fbbd4f536f59  
> node\_1 | 2023-03-26 11:23:16 ❤ by Subspace Labs [https://subspace.network](https://subspace.network), 2021-2023  
> node\_1 | 2023-03-26 11:23:16 📋 Chain specification: Subspace Gemini 3c  
> node\_1 | 2023-03-26 11:23:16 🏷 Node name: gzivdo  
> node\_1 | 2023-03-26 11:23:16 👤 Role: AUTHORITY  
> node\_1 | 2023-03-26 11:23:16 💾 Database: ParityDb at /var/subspace/chains/subspace\_gemini\_3c/paritydb/full  
> node\_1 | 2023-03-26 11:23:16 ⛓ Native runtime: subspace-1 (subspace-0.tx0.au0)  
> node\_1 | 2023-03-26 11:23:17 [PrimaryChain] Storage provider cache loaded - 256 items.  
> node\_1 | 2023-03-26 11:23:17 [PrimaryChain] DSN instance configured. allow\_non\_global\_addresses\_in\_dht=false peer\_id=12D3KooWR2S7eE5wcKR2PrEBaH9TXGkHpucC15dXiNg3UewMFJoa  
> node\_1 | 2023-03-26 11:23:17 [PrimaryChain] Subspace networking initialized: Node ID is 12D3KooWR2S7eE5wcKR2PrEBaH9TXGkHpucC15dXiNg3UewMFJoa  
> node\_1 | 2023-03-26 11:23:17 [PrimaryChain] Starting archiving from genesis  
> node\_1 | 2023-03-26 11:23:17 [PrimaryChain] Archiving already produced blocks 0..=0  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] Processing a segment. segment\_index=0  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] Segment publishing was successful. segment\_index=0  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 🏷 Local node identity is: 12D3KooWR2S7eE5wcKR2PrEBaH9TXGkHpucC15dXiNg3UewMFJoa  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 🧑🌾 Starting Subspace Authorship worker  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 Operating system: linux  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 CPU architecture: x86\_64  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 Target environment: gnu  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 CPU: AMD Ryzen 9 5950X 16-Core Processor  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 CPU cores: 16  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 Memory: 128722MB  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 Kernel: 5.15.0-67-generic  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 Linux distribution: Ubuntu 20.04.5 LTS  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 💻 Virtual machine: no  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 📦 Highest known block at #0  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] Running JSON-RPC HTTP server: addr=127.0.0.1:9933, allowed origins=[“_“]  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] Running JSON-RPC WS server: addr=0.0.0.0:9944, allowed origins=[”_”]  
> node\_1 | 2023-03-26 11:23:18 [PrimaryChain] 〽 Prometheus exporter started at 127.0.0.1:9615  
> node\_1 | 2023-03-26 11:23:23 [PrimaryChain] 💤 Idle (0 peers), best: #0 (0xab94…46b7), finalized #0 (0xab94…46b7), ⬇ 0 ⬆ 0  
> node\_1 | 2023-03-26 11:23:28 [PrimaryChain] 💤 Idle (0 peers), best: #0 (0xab94…46b7), finalized #0 (0xab94…46b7), ⬇ 0 ⬆ 0  
> node\_1 | 2023-03-26 11:23:33 [PrimaryChain] 💤 Idle (0 peers), best: #0 (0xab94…46b7), finalized #0 (0xab94…46b7), ⬇ 0 ⬆ 0  
> node\_1 | 2023-03-26 11:23:38 [PrimaryChain] 💤 Idle (0 peers), best: #0 (0xab94…46b7), finalized #0 (0xab94…46b7), ⬇ 0 ⬆ 0  
> node\_1 | 2023-03-26 11:23:38 [PrimaryChain] ❌ Error while dialing /dns/telemetry.subspace.network/tcp/443/x-parity-wss/%2Fsubmit%2F: Custom { kind: Other, error: Timeout }  
> node\_1 | 2023-03-26 11:23:43 [PrimaryChain] 💤 Idle (0 peers), best: #0 (0xab94…46b7), finalized #0 (0xab94…46b7), ⬇ 0 ⬆ 0  
> node\_1 | 2023-03-26 11:23:47 Accepting new connection 1/100  
> node\_1 | 2023-03-26 11:23:47 Accepting new connection 1/100  
> node\_1 | 2023-03-26 11:23:47 Accepting new connection 2/100  
> node\_1 | 2023-03-26 11:23:48 [PrimaryChain] 💤 Idle (0 peers), best: #0 (0xab94…46b7), finalized #0 (0xab94…46b7), ⬇ 0 ⬆ 0

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [March 31, 2023, 4:16pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/2 "2023-03-31T16:16:45Z")

</div>

this is a common occurance and not an issue with your node, all this error is saying is that your node didnt connect to the telemetry server at [https://telemetry.subspace.network](https://telemetry.subspace.network)

From the logs you posted it looks like your node is still just getting started and started to accept peer connections

---

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [March 31, 2023, 4:36pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/3 "2023-03-31T16:36:21Z")

</div>

it stay in this condition for days. i tried many times, its only with mikrotik. if i replace router - its start syning immediatly. but ports are open 100%, and i see traffic in both direction with tcpdump.  
and i can telnet any time to telemetry, but node can not every time.  
and this was like that from beginning (a year ago). but i need mikrotik for different purposes and the situation is really strange.  
here dump 52Mb only for 1 minute of work after node is started (filter port 30333 or port 30433 or port 30533)

> **[dump.cap](https://disk.yandex.ru/d/-MwHyrOLUFI6Kg)**
>
> Посмотреть и скачать с Яндекс.Диска

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [April 6, 2023, 9:42pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/4 "2023-04-06T21:42:31Z")

</div>

Which version are you using? There were some networking issues we had on some of the prior versions

---

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [April 7, 2023, 6:27am UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/5 "2023-04-07T06:27:12Z")

</div>

switched right now to gemini-3d-2023-apr-05 - the same, used gemini-3d-2023-mar-29  
but the issue exists since beginning (a year ago). I reported that issue exists many times in discord, i used different mikrotik (consumer and corporate grade). I cant debug myself.  
I suppose that only 3 ports opened are not sufficient.

---

<div class="post-metadata">

**Author:** ![jrwashburn](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/jrwashburn/32/358_2.png) [@jrwashburn](https://forum.autonomys.xyz/u/jrwashburn)\
**Post date:** [April 7, 2023, 10:55am UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/6 "2023-04-07T10:55:31Z")

</div>

Have you enabled outbound? I see the rules to open inbound traffic, but what are your outbound rules?

It seems you have (I see you say you can telnet to telemetry - presumably from the node.) Since you know it is a router issue, I think there must be other rules conflicting, preventing discovery, etc.?

---

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [April 7, 2023, 4:06pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/7 "2023-04-07T16:06:06Z")

</div>

All outbound enabled, only incoming filtered by rules.  
I can connect from that PC to telemetry each time (but not tried inside of docker, but with other router with that PC without any changes on PC subspace docker works too).  
All other outbound connections are working, other nodes working too.

I only can imagine that some other ports are required. And the outbound traffic going to remote host, because they reply and there are alot of traffic (50-100Mb per minute) with up node and about 500Kb of incoming connections with down.

Actually if you want, you can use routeros VM inside virtualbox to help debug that issue or I can do some tests and actions which you tell to find out the root of the problem.

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [April 7, 2023, 5:05pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/8 "2023-04-07T17:05:29Z")

</div>

Just confirming you have port `30333` & `30433` forwarded?

Related Docs: [Simple CLI (Recommended) | Farm from Anywhere](https://docs.subspace.network/docs/protocol/cli#required-ports)

---

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [April 7, 2023, 5:09pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/9 "2023-04-07T17:09:09Z")

</div>

yes, sure, and i can telnet from outside

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [April 7, 2023, 5:40pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/10 "2023-04-07T17:40:27Z")

</div>

@shamil Looks like were still having some weird issues with Mikrotik routers on new version, just wanted to bring to your attention

---

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [April 14, 2023, 5:42pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/11 "2023-04-14T17:42:23Z")

</div>

gemini-3d-2023-apr-14 - the same

---

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [April 22, 2023, 5:15pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/12 "2023-04-22T17:15:41Z")

</div>

gemini-3d-2023-apr-21 - the same

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [April 24, 2023, 8:48pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/13 "2023-04-24T20:48:24Z")

</div>

@gzivdo you mention that you are running multiple nodes that are working, are they all on the same network? Is it possible there is a clash between two or more nodes on the same router?

Thank you for continuing to report back 😄

---

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [April 24, 2023, 8:52pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/14 "2023-04-24T20:52:21Z")

</div>

Yes, it was a time ago. Right now i try only subspace. And again - if i change the router, it start working right now, if i back to mikrotik - it cannot start.  
But ports are open and i can telnet from internet to it and see that app is accepting connection.  
And i see alot of traffic to and from node (you can see it in a dump too).

I can help to debug, but i dont know what to check now. I can suppose only that opened port not enough and some kind of UPnP is required, which is not enabled mikrotik.

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [April 24, 2023, 9:30pm UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/15 "2023-04-24T21:30:48Z")

</div>

Hey there! I was just wondering if you have any other firewall or NAT rules configured on your Mikrotik router that could be preventing the connections to the farmer/node? It’s possible that there may be conflicts between rules that could be causing this issue. Can you please provide more details about your router configuration (maybe even model, and such), so we can help you troubleshoot the problem?

---

<div class="post-metadata">

**Author:** ![gzivdo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/gzivdo/32/256_2.png) [@gzivdo](https://forum.autonomys.xyz/u/gzivdo)\
**Post date:** [April 25, 2023, 6:46am UTC](https://forum.autonomys.xyz/t/node-is-not-able-to-start-behind-mikrotik-ports-are-open/1313/16 "2023-04-25T06:46:47Z")

</div>

Here small box for test with clean default config, only 3 nat rules:

```auto
/ip firewall/nat/export
# apr/25/2023 09:43:26 by RouterOS 7.6
# software id = 1574-7UCF
#
# model = RB941-2nD
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
# no interface
add action=masquerade chain=srcnat out-interface=*A
add action=dst-nat chain=dstnat dst-port=30333 protocol=tcp to-addresses=192.168.88.102 to-ports=30333
add action=dst-nat chain=dstnat dst-port=30433 protocol=tcp to-addresses=192.168.88.102 to-ports=30433
add action=dst-nat chain=dstnat dst-port=30533 protocol=tcp to-addresses=192.168.88.102 to-ports=30533

```

My main device is RB2011UiAS-IN  
Behavior is the same.
