All,
I’m setting up the network health binding using OH2.1 and network binding 2.2.
I went through the documentation and I have the binding working fine in that it will ping devices just fine but the DHCP listen functionality is giving me some issues. I added the port forwarding as is outlined in the documentation by doing the following:
sysctl -w net.ipv4.ip_forward=1
iptables -A INPUT -p udp --dport 6767 -j ACCEPT
iptables -t nat -A PREROUTING -p udp --dport 67 -j REDIRECT --to-ports 6767
But when I look at the properties of my pingable devices my uses_dhcp_listen property shows “no” and the dhcp_state property says “No access right for port 67. Bound to port 6767 instead. Port forwarding necessary!”.
I checked my iptables and I get this in return:
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -p udp -m udp --dport 6767 -j ACCEPT
and if I do a netstat | grep 67 I get:
udp6 0 0 :::6767 :::* 2744/java
unix 2 [ ACC ] STREAM LISTENING 19967 1/init /run/snapd.socket
unix 2 [ ACC ] STREAM LISTENING 1674 1/init /run/systemd/fsck.progress
unix 2 [ ACC ] STREAM LISTENING 1678 1/init /run/systemd/journal/stdout
unix 2 [ ] DGRAM 19167 1063/systemd /run/user/108/systemd/notify
unix 3 [ ] STREAM CONNECTED 27867 1/init /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 22767 941/lightdm
unix 3 [ ] STREAM CONNECTED 23767 789/dbus-daemon /var/run/dbus/system_bus_socket
Is there something I’m missing about getting the port forwarded correctly or is everything set up and I’m interpreting things incorrectly?
Thanks,
Matt