Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Mystery IP on Nebra Outdoor miner #954

Closed
jameses986 opened this issue Jul 26, 2021 · 15 comments
Closed

Mystery IP on Nebra Outdoor miner #954

jameses986 opened this issue Jul 26, 2021 · 15 comments

Comments

@jameses986
Copy link

My setup....
pfsense firewall/router setup with a VLAN for separate traffic for miner. One switch port on the SG-2100 is dedicated to the wired miner connection. No other devices are on this VLAN, wireless, or wired connection. POE injector is supplying power.
Miner is Skinny Blonde Eagle.
I cannot get it out of Relay mode and I believe it is because of the mysterious IP address that shows up about every 1-2 hours.
DHCP is on to hand out IP addresses, 44158 is wide open and verified with external port scan, and protocal flags have all be allowed to pass. the miner is grabbing 172.17.0.2 within the DHCP server of 172.17.0.0/16. I opened up the DHCP pool because I have noticed the other IPs showing. The current mysterious IP is 172.17.0.3, and it is showing up as blocked by the native rules in my firewall. I have added a rule to allow it to pass, and still waiting on the IP to be generated again...

See below for 2 images. first one is showing all the pass rules for firewall on the VLAN.
second one is the mystery IP being blocked. it is the only blocked traffic on the VLAN. and I believe it is the reason I am still in Relay mode with miner,

Anyone else seeing the same in their firewall? I am not sure what to do about it, and worry others are not aware of the situation.

image

image

@shawaj
Copy link
Contributor

shawaj commented Jul 28, 2021

Cross posted NebraLtd/helium-miner-software#99

@cwolfinger
Copy link

This is definitely occurring. On my router it shows up as an internet martian that is blocked. If I were to guess I suspect it is the container running on the docker network and it is leaking out over that address.

@shawaj
Copy link
Contributor

shawaj commented Aug 10, 2021

@cwolfinger can you move this over to NebraLtd/helium-miner-software#99 which I've just reopened?

@cwolfinger
Copy link

@cwolfinger can you move this over to NebraLtd/helium-miner-software#99 which I've just reopened?

So i wanted to clarify - I am using a bobcat miner so this seems to be related more to the Helium miner proper since it is seen across Nebra and Bobcat. Now it could be a common docker misconfiguration on both platforms that is allowing the 172.17.0.x addresses to leak out into the LAN interface.

@shawaj
Copy link
Contributor

shawaj commented Aug 11, 2021

I guess that the miner container will be trying to access the LAN so that is to be expected. The additional IP on ours is possibly the diagnostics page.

@cwolfinger
Copy link

I am fairly certain it is not a diagnostic page since it is reaching out to port 44158 which I believe is the peer to peer network. Port 80 or 443 would be the diagnostic page. What is odd is that if docker is used under the covers then everything should exit the docker network and NAT out the IP address of the host. The only other option is that it is binding to the docker network incorrectly vs binding to the ethernet address / wifi address and using that IP address. Again it does not make much sense.

@shawaj
Copy link
Contributor

shawaj commented Aug 11, 2021

Yeah that's an interesting finding. The 44158 will be the miner container for sure. Port 80 will be the diagnostics. As you can see here https://github.com/NebraLtd/helium-miner-software/blob/master/docker-compose.yml

@cwolfinger
Copy link

I believe this issue is related -->

docker/for-linux#1126

@flobernd
Copy link

flobernd commented Aug 13, 2021

@cwolfinger Correct. Don't expect a fix anytime soon tho. I created the issue almost one year ago and not even a single reponse from the "official" maintainers has been posted.

@Vagabond
Copy link
Contributor

Yeah, I think this is due to Nebra running miner in a docker container.

@cwolfinger
Copy link

I think the question is why is the miner running in the docker network vs the host network ? if you need to communicate between multiple container you can always bind to the loopback. If it is a single container I am not sure the advantage ... basically there is only one app running in these miners so the use of the host network would eliminate this problem.

@shawaj
Copy link
Contributor

shawaj commented Aug 21, 2021

@cwolfinger there is not 1 container running... Check https://github.com/NebraLtd/helium-miner-software/blob/master/docker-compose.yml and the readme in the same repo

Also this is is not strictly speaking a docker issue but more generally a Moby issue as we use balenaEngine. See issue here balena-os/balena-engine#265

@evanmcc
Copy link
Contributor

evanmcc commented Aug 25, 2021

@shawaj should I transfer this to some other repo or close it? How would you like us to handle misdirected (from our perspective) issues like this?

@sullyjman
Copy link

@jameses986 just wanted to say I was also seeing this on my bobcat also a few weeks ago on my pfsense firewall.

I have since then moved this bobcat off site, so I dont have any screenshots anymore

@Vagabond
Copy link
Contributor

This bug has been fixed, I believe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants