dlandon / unassigned.devices

Unassigned Devices plugin for unRAID
Other
85 stars 40 forks source link

Plugin incorrectly assesses remote is unavailable due to firewall #94

Closed priyankub closed 1 year ago

priyankub commented 1 year ago

I have VLANs separating different networks and devices with most restrictive settings allowing only port 445 for SMB where required. Unassigned devices pings the remote server, and incorrectly assess the remote servers as unavailable, even though they are actually available, and greys out the mount and unmount options:

Mar 27 12:21:13 Param unassigned.devices: Remote server '192.168.7.2' is not responding to a ping and appears to be offline.
Mar 27 12:21:14 Param unassigned.devices: Remote server '192.168.12.3' is not responding to a ping and appears to be offline.
dlandon commented 1 year ago

Open the ports to allow a ping of the remote server in your firewall.

priyankub commented 1 year ago

I do not want to open up my firewall just for unassigned services - could we instead have an option to mount/unmount despite pings not being successful, rather than the options being forced to being greyed out?

Also, which ports do you suggest I open for pings? The standard ping command does not use TCP or UDP. It uses ICMP. To be more precise ICMP type 8 (echo message) and type 0 (echo reply message) are used. ICMP has no ports!

See RFC792 for further details.

dlandon commented 1 year ago

could we instead have an option to mount/unmount despite pings not being successful, rather than the options being forced to being greyed out?

Probably not as this would probably generate a lot more support, and your use case is not common.

priyankub commented 1 year ago

Got it. Though not common, it is a potential security vulnerability. I will simply use custom user scripts to mount in this case.