Hi,
I’m running Openhab 2.5.10 with Network binding 2.5.10 on a RPi3b with Raspbian Buster. I want to use the Network binding for precense detection, but I can’t get arping to work nor can I get the port forwarding commands to work in order to use DHCP listening, it looks like this in PaperUI:
Let’s start with the arping problem.
I’ve followed the instructions in the documentation for the network binding (I think) and installed arping on the pi and I’m able to call the devices from shell by using
/usr/sbin/arping 192.168.1.xxx
I think the permissions are correct, they look like this when I run
ls -l /usr/sbin/arping
-rwsr-xr-x 1 root root
my configuration file (network.cfg) looks like this:
binding.network:allowSystemPings=true
binding.network:allowDHCPlisten=true
binding.network:arpPingToolPath=arping
binding.network:cacheDeviceStateTimeInMS=2000
uses_arp_pings=yes
This is where I think I might have the problem. Should I type the full path to apring “/usr/sbin/arping” or is what I’ve stated enough? I’ve tried adding the full path, but I’m not sure about the syntax (quotes or not etc.). Also, I’m not sure what the documentation is referring to when it says PATH environmet variable “arping and cannot be found in the PATH environment variable”. Should I change something there?
When it comes to the port forwarding for DHCP listening I get stuck when trying to run the commands using iptables. I just get the below error
iptables/1.8.2 Failed to initialize nft: Protocol not supported
I’ve googled it and it seems like something has changed in Linux Buster and it uses the nftables framework, but it’s above my understanding what i means and even less what I can do about it. So if someone could help me out here it would be much appreciated