This content has been marked as final.
Show 3 replies
-
1. Re: Enable remote SNMP access?
djkrite Nov 21, 2008 10:30 AM (in response to djkrite)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.
TK -
2. Re: Enable remote SNMP access?
dimitris Nov 21, 2008 10:52 AM (in response to djkrite)You need to bind jboss to some visible IP, e.g.
run -b xx.xx.xx.xx -
3. Re: Enable remote SNMP access?
djkrite Nov 21, 2008 11:31 AM (in response to djkrite)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.
TK