Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mystery IP showing up in firewall #99

Open
jameses986 opened this issue Jul 26, 2021 · 16 comments
Open

Mystery IP showing up in firewall #99

jameses986 opened this issue Jul 26, 2021 · 16 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
Member

shawaj commented Jul 26, 2021

Have you got both WiFi and Ethernet connected?

That would be the only cause of two IP addresses.

@jameses986
Copy link
Author

Have you got both WiFi and Ethernet connected?

That would be the only cause of two IP addresses.

No, I did not setup WiFi. the miner is only connecting with wired ethernet.

@shawaj
Copy link
Member

shawaj commented Jul 26, 2021

Then it's definitely not our unit. It only has two IP addresses if it is connected by both WiFi and Ethernet.

@shawaj
Copy link
Member

shawaj commented Aug 10, 2021

@cwolfinger @jameses986 reopened in favour of the one on Helium miner GitHub as makes more sense to discuss here

@shawaj
Copy link
Member

shawaj commented Aug 11, 2021

@vpetersson any thoughts on this? I'm guessing it's just the way the system is intentionally set up as the miner and diagnostics need to be exposed on the network. But wanted to get your opinion too.

@vpetersson
Copy link
Contributor

Very interesting. So port 44158 is indeed used by Helium and is exposed in the helium-miner container. Now, that doesn't explain why you're having two separate IPs.

I can think of a few reasons why that would possibly happen:

  • The Ethernet MAC somehow changed
    • Do you see both of these DHCP leases active simultaneously?
  • Something in balenaOS (or inside our containers) is requesting a second IP. I find both of them implausible but not impossible. The only service that could do this on our end would potentially be [hm-config(https://github.com/NebraLtd/hm-config) as it is the only container that would have sufficient permission to do so.

As next steps, could you provide the following:

  • The Ethernet MAC(s)
  • If both leases are active simultaneously

@cwolfinger
Copy link

This seems to be a problem in the Docker runtime OR Linux. Although following this thread it became more of a problem in the last 7 months --> docker/for-linux#1126

@shawaj
Copy link
Member

shawaj commented Aug 12, 2021

@cwolfinger IIRC you only have a bobcat miner right? but are experiencing the same issue?

@jameses986 could you email me the mac address, hotspot name, serial numbers of your unit to [email protected] and let me know the ticket number? I will then see if I can dig into this further

@cwolfinger
Copy link

@cwolfinger IIRC you only have a bobcat miner right? but are experiencing the same issue?

@jameses986 could you email me the mac address, hotspot name, serial numbers of your unit to [email protected] and let me know the ticket number? I will then see if I can dig into this further

Yes - that is why i think the issue is cross miners and not specific to Nebra. The issue I believe is in the docker / linux side ( since others see the same problem with docker on different applications).

@luisflorencio
Copy link

+1
Nebra Outdoor / Firmware 2021.11.30.1-2

Capturar

@ericvitale
Copy link

ericvitale commented Jan 8, 2022

+1
Nebra Outdoor / Firmware 2022.01.04.0-2
Capture

@shawaj
Copy link
Member

shawaj commented Jan 8, 2022

This is a known issue but we aren't able to fix it currently as it's an issue with docker / balena engine. We have contacted then directly and also opened an issue here balena-os/balena-engine#265

It's better to post on that issue than here

@ericvitale
Copy link

This is frustrating. My miner keeps switching between relayed = false to relayed = true and then back a couple times a day. I've done everything I can think of to fix this. The only thing I can think of is that this the problem.

@something-wrong
Copy link

something-wrong commented Mar 5, 2022

Same problem with milesight miner
Screenshot

@shawaj
Copy link
Member

shawaj commented Mar 5, 2022

Same problem with milesight miner Screenshot

This software has nothing to do with milesight, however as mentioned above this is an issue with docker

@shawaj
Copy link
Member

shawaj commented Mar 5, 2022

This is frustrating. My miner keeps switching between relayed = false to relayed = true and then back a couple times a day. I've done everything I can think of to fix this. The only thing I can think of is that this the problem.

I doubt it to be honest. This wouldn't effect anything to do with being relayed. Have you got the device connected to both WiFi and Ethernet perhaps?

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

No branches or pull requests

7 participants