Hi everyone,
I’m currently running two Storj nodes on the same physical server, each inside a separate LXC container, both sharing the same public IP.
My first node is working fine, but I’m having issues with the second node, especially regarding QUIC misconfigured errors, and I’m not sure if my docker run parameters are correct.
I’m trying to run the second node with this configuration:
docker run -d --restart unless-stopped \
-p 28972:28967/tcp \
-p 28972:28967/udp \
-p 14002:14002/tcp \
-e WALLET="0x<wallet_address>" \
-e EMAIL="example@example.com" \
-e ADDRESS="mydomain.ddns.net:28972" \
-e STORAGE="4TB" \
--user $(id -u):$(id -g) \
--mount type=bind,source=$HOME/.local/share/storj/identity/storagenode,destination=/app/identity \
--mount type=bind,source=/mnt/storj/data/storage,destination=/app/config \
--name storagenode \
storjlabs/storagenode:latest
But I’ve seen some people using this version instead:
docker run -d --restart unless-stopped \
-p 28972:28972/tcp \
-p 28972:28972/udp \
-p 14002:14002/tcp \
-e WALLET="0x<wallet_address>" \
-e EMAIL="example@example.com" \
-e ADDRESS="mydomain.ddns.net:28972" \
-e STORAGE="4TB" \
--user $(id -u):$(id -g) \
--mount type=bind,source=$HOME/.local/share/storj/identity/storagenode,destination=/app/identity \
--mount type=bind,source=/mnt/storj/data/storage,destination=/app/config \
--name storagenode \
storjlabs/storagenode:latest
I’m confused about what’s the correct way to map the ports when running multiple nodes on the same public IP. Is it safe to expose different external ports (e.g., 28971, 28972, etc.) and still map them internally to 28967, or should the internal and external ports match (e.g., 28972:28972)?
Also, since QUIC uses UDP, should I explicitly open the chosen UDP port (e.g., 28972) in the firewall and forward it individually for each node?
Any help clarifying this would be greatly appreciated.
Thanks in advance!