I am running mango version 4.0.0 and trying to get SNMP traps working. I have added a rule to iptables to forward snmp traps from port 162 to 1162 using this command. I have changed my data source to look for traps on port 1162.
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 162 -j REDIRECT --to-port 1162
iptables -I INPUT -p udp --destination-port 162 -j ACCEPT
When run the iptables list I get this
![899a82ee-48a9-4c8d-84b3-73d5d1b0a040-image.png](https://camo.nodebb.org/d1f2f7ba54dddcbca01792f08cd82fc669055b9f?url=https%3A%2F%2Fi.imgur.com%2FdWN0tH9.png)
when I run netstat I can see that port 1162 is bound to java so that all looks good
![9b7ae692-aa7f-4d19-8f5a-43c546f8f87e-image.png](https://camo.nodebb.org/d5a1573cc8748e030286b6cd094ba8169e4c2ac8?url=https%3A%2F%2Fi.imgur.com%2FxbVBB7T.png)
So I think the issue might be with my understanding of the iptables rule. Is the above iptables rule correct?
I have used wireshark to packet sniff my trap sender, the traps are definitely being generated.
![0ce1416b-7b76-4887-8915-16b640829fbb-image.png](https://camo.nodebb.org/56d257e0d9dc043df9b5600ff76bd4a97b617faa?url=https%3A%2F%2Fi.imgur.com%2F1eiqzpD.png)
In mango how can I check if the traps are being received in the application apart from looking at the data point in the data source?
My test device is a router and I am monitoring a spare ethernet port for UP/DOWN status. only the get requests are updating the port status. The trap generation has no effect on the data point.