I was able to get this to work with iptables and some redirecting:
#!/bin/sh IPT="/sbin/iptables" INT="eth0" $IPT -F $IPT -F INPUT $IPT -F OUTPUT $IPT -F FORWARD $IPT -F -t mangle $IPT -F -t nat $IPT -X $IPT -P INPUT ACCEPT $IPT -P OUTPUT ACCEPT $IPT -P FORWARD ACCEPT $IPT -t nat -A OUTPUT -p udp -d 192.168.1.1 --dport 1161 -j REDIRECT --to-port 1161
I also removed the 2nd manager attribute listing in the managers.xml file.
You need to bind jboss to some visible IP, e.g.
run -b xx.xx.xx.xx
Ah, thank you. It worked! The above routing with iptables only worked for me when I was on the actual box. Seems "REDIRECT" option for iptables takes locally -generated packets and sends them to 127.0.0.1, so when I used snmpwalk from a remote box the command timed out.