When I need to use SNMP monitoring for java applications, there is the need to that application (usually ran as daemon user) to listen on snmp port.
If there is no other alternative, of course I can use another port, say 11161.
But I can use XInetd to redirect port 161 to 11161.
My question is: is this the best method? Is iptables port redirection better?