OpenHAB provides an interesting SNMP binding that would allow me (I think) to get network bandwidth use statistics that may be used in rules.Interesting as the may be, it seems that openHAB cannot connect to privileged ports, and will not run under sudo.On my Raspberry Pi Rasbian box, I tried redirecting the ports to not privileged ones like this:sudo iptables -t nat -A PREROUTING -p tcp --dport 2048 -j DNAT --to 10.0.1.1:161sudo iptables -A FORWARD -d 10.0.1.1 -p tcp --dport 161 -j ACCEPTsudo iptables -t nat -A PREROUTING -p tcp --dport 2049 -j DNAT --to 10.0.1.1:162sudo iptables -A FORWARD -d 10.0.1.1 -p tcp --dport 162 -j ACCEPTsudo sysctl net.ipv4.ip_forward=1where 10.0.1.47 is my raspberry pi and 10.0.1.1 is the router I want to monitor. This does not work, however, when trying to connect to 2049 (which should now be 162, which is SNMP TRAP).Any ideas on what could be wrong here?Fredrik
Redirect SNMP ports to router for use with openHAB SNMP binding
raspbian;trap;snmp