How do I start my node? I have CGNAT and ngrok now I am totally confused what's next

Can someone help me step by step? I’m stuck with ngrok.
When I run the Storj GUI it doesn’t show.

Welcome to the forum @avllrl !

Can you tell us more on what is not being shown ? Do you see any error messages?

Hi!

So, I have a dynamic IP address with my ISP. which is Converge here in the Philippines. I heard they use CGNAT.

I am having trouble port forwarding. Not sure if my router allows me to. Though I’ve downloaded ngrok and I created a domain using no-ip.

I’m really confused like hell.

Hi @avllrl
Are you running your node through docker?

Hello @avllrl,
Welcome to the forum!

If you have only free ngrok account, then please, consider to use the portmap.io instead.
ngrok on the free account will provide you a dynamic hostname with random port. So, every time when you will run the ngrok, you should update your port mapping and the external address (ADDRESS option) in the docker run command: https://documentation.storj.io/resources/faq/how-do-i-change-my-parameters-such-as-payout-address-allotted-storage-space-and-bandwidth

In case of portmap.io your hostname and port will be static and can be used directly in your configuration. You even do not need a DDNS hostname from no-ip

1 Like

Ok.

So I switched to portmap.io

I installed the openvpn software, created a configuration and mapping rules on the portmap.io website.

The software on my PC says connected.
I checked netstat and it says 0.0.0.0:28967 is listening.

I downloaded the storj GUI and no, I am not using docker.

What next?

Check your external address and port on https://www.yougetsignal.com/tools/open-ports/, place your external address, which is given by portmap.io to the Remote Address field and your external port to the Port Number field then click Check.

Hello, I am trying to use portmap.io to be able to configure my storj node, I have installed the openvpn client and configured the rules on the portmap.io website, but I am not able to access any port, but I have not managed to make it work

Finally I have configured portmap.io and apparently it is working, the problem I have is the following:

I need the IP ranges of the satellites (write some by hand)

I attach the log I have in debug mode, but I don’t see any activity

[root@storj storj]# docker run -d --restart unless-stopped -p 28967:28967 -p 192.168.0.8:14002:14002 -e WALLET=“0xXXXXXXXXXXXXXXXXXXXXXXX” -e EMAIL="asdcasdc@gmail.com" -e ADDRESS=“xxxxxx-21507.portmap.host:21507” -e BANDWIDTH=“6TB” -e STORAGE=“1.7TB” --mount type=bind,source="/root/.local/share/storj/identity/storagenode",destination=/app/identity --mount type=bind,source="/mnt/storj",destination=/app/config --name storagenode storjlabs/storagenode:latest
[root@storj storj]# docker logs -f storagenode
2020-08-06T22:51:22.421Z INFO Configuration loaded {“Location”: “/app/config/config.yaml”}
2020-08-06T22:51:22.456Z DEBUG Anonymized tracing disabled
2020-08-06T22:51:22.499Z INFO Operator email {“Address”: “xxxxxxx@gmail.com”}
2020-08-06T22:51:22.499Z INFO Operator wallet {“Address”: “0xxxxxxxxxxxxxxxxxxxxxxxxxxxx”}
2020-08-06T22:51:22.702Z DEBUG Version info {“Version”: “1.9.5”, “Commit Hash”: “xxxxxxxxxxxxxxxxxx7”, “Build Timestamp”: “2020-07-28 13:44:10 +0000 UTC”, “Release Build”: true}
2020-08-06T22:51:23.734Z DEBUG version Allowed minimum version from control server. {“Minimum Version”: “1.3.0”}
2020-08-06T22:51:23.734Z DEBUG version Running on allowed version. {“Version”: “1.9.5”}
2020-08-06T22:51:23.735Z INFO Telemetry enabled
2020-08-06T22:51:23.735Z DEBUG Initialized batcher {“ID”: “1HJzmgjrzd7dyCDYyN1NpkcmUF2CaFZpo3mREyXgjXZVNH3Hpr”}
2020-08-06T22:51:23.951Z INFO db.migration Database Version {“version”: 43}
2020-08-06T22:51:24.647Z DEBUG trust Fetched URLs from source; updating cache {“source”: “https://tardigrade.io/trusted-satellites”, “count”: 6}
2020-08-06T22:51:24.659Z DEBUG trust Satellite is trusted {“id”: “12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S”}
2020-08-06T22:51:24.659Z DEBUG trust Satellite is trusted {“id”: “12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs”}
2020-08-06T22:51:24.659Z DEBUG trust Satellite is trusted {“id”: “121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6”}
2020-08-06T22:51:24.659Z DEBUG trust Satellite is trusted {“id”: “118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW”}
2020-08-06T22:51:24.659Z DEBUG trust Satellite is trusted {“id”: “1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE”}
2020-08-06T22:51:24.659Z DEBUG trust Satellite is trusted {“id”: “12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB”}
2020-08-06T22:51:24.659Z INFO preflight:localtime start checking local system clock with trusted satellites’ system clock.
2020-08-06T22:51:25.576Z INFO preflight:localtime local system clock is in sync with trusted satellites’ system clock.
2020-08-06T22:51:25.576Z DEBUG servers started {“items”: [“debug”, “server”]}
2020-08-06T22:51:25.576Z DEBUG services started {“items”: [“version”, “trust”, “contact:chore”, “PieceDeleter”, “pieces:trash”, “piecestore:cache”, “piecestore:monitor”, “retain”, “orders”, “nodestats:cache”, “console:endpoint”, “gracefulexit:blobscleaner”, “gracefulexit:chore”, “collector”, “bandwidth”]}
2020-08-06T22:51:25.576Z INFO bandwidth Performing bandwidth usage rollups
2020-08-06T22:51:25.578Z INFO Node 1HJzmgjrzd7dyCDYyN1NpkcmUF2CaFZpo3mREyXgjXZVNH3Hpr started
2020-08-06T22:51:25.578Z INFO Public server started on [::]:28967
2020-08-06T22:51:25.578Z INFO Private server started on 127.0.0.1:7778
2020-08-06T22:51:25.578Z INFO trust Scheduling next refresh {“after”: “8h21m58.107255796s”}
2020-08-06T22:51:25.578Z DEBUG pieces:trash starting emptying trash
2020-08-06T22:51:25.579Z DEBUG contact:chore Starting cycle {“Satellite ID”: “118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW”}
2020-08-06T22:51:25.579Z DEBUG contact:chore Starting cycle {“Satellite ID”: “1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE”}
2020-08-06T22:51:25.579Z DEBUG contact:chore Starting cycle {“Satellite ID”: “121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6”}
2020-08-06T22:51:25.579Z DEBUG contact:chore Starting cycle {“Satellite ID”: “12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S”}
2020-08-06T22:51:25.579Z DEBUG contact:chore Starting cycle {“Satellite ID”: “12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs”}
2020-08-06T22:51:25.579Z DEBUG contact:chore Starting cycle {“Satellite ID”: “12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB”}
2020-08-06T22:51:25.901Z DEBUG version Allowed minimum version from control server. {“Minimum Version”: “1.3.0”}
2020-08-06T22:51:25.901Z DEBUG version Running on allowed version. {“Version”: “1.9.5”}
2020-08-06T22:51:27.526Z DEBUG contact:endpoint pinged {“by”: “118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW”, “srcAddr”: “10.9.0.1:51060”}
2020-08-06T22:53:45.268Z DEBUG orders cleaning
2020-08-06T22:53:45.268Z DEBUG orders cleanup finished {“items deleted”: 0}
2020-08-06T22:55:34.855Z DEBUG orders sending
2020-08-06T22:55:34.953Z DEBUG orders no orders to send

It useless. All data transfers are happening between your node and customers across the globe.

Thanks for the help, I have configured everything and it is working, slow but it works. I was making a mistake giving only permissions to the IPs of the satellites, I have changed it to the range 0.0.0.0/0 and I see traffic again!

2 Likes

@Alexey I know this is an old thread, but your recommendation of portmap.io does exactly what I’ve been looking for! I do have 1 question though, do you recommend using the free version or the paid one? I’m wanting to use it specifically for storj node hosting, though I may have other services running in the future that also need port forwarding.

Thanks!

Before you configure everything, create a mapping and check latency to the host.

From where I live it’s 180ms. This can be a factor in winning races and ultimately, payouts, depending on where you live. Free version not letting you choose a region does not help either.

Maybe consider implementing the same idea yourself on a nearby VPS that offers sufficient bandwidth, with WireGuard and a couple of iptables rules for packet forwarding.

Some providers offer sufficiently capable free tiers, but if you were going to pay for portmap.io – might as well pay for VPS instead, especially since you planning to do more later.

Thanks for the recommendation, would you mind going in more details as to how the iptables work with a vps option? I’m not super great with networking and while I know some basics about port forwarding and ip’s, I don’t know anything about iptables or creating custom rules for a vpn.

It’s a pretty common configuration, you can google “WireGuard VPS forward”, there are a few write-ups. This one for example: Hide your homelab IP with a VPS, WireGuard and iptables :: Cavelab blog — Stories from the Cavelab

I’m contemplating to set it up on oracle cloud for myself for some time now, as a backup for when my IPS craps out to maintain the service over cellular hotspot. This may be last kick for me to actually do that, and I can document directions (there are some oracle specific oddities – as their VMs come with pre-defined iptables rules, one need to be careful to insert rules in the correct position: for example, appending rules to INPUT table will do nothing, because there is a DENY rule in position 6)… I’ll make sure to document steps and post somewhere. But that would be oracle specific, and existing articles should be enough for general use and adaptation to your specific VPS. Just make sure your VPS provides sufficient monthly bandwidth

1 Like

Thanks for your insight on this! I really appreciate it!

Confirmed it’s working on Oracle’s compute instance:

Here is the summary:

The most important bit – the iptables rules – are in the end.

2 Likes