Alan Wylie's Web Site

Wed, 2008-12-17



permalink
Netgear DG834 hints

Enable Telnet

Enable SNMP

Stop iptables blocking the snmp port:

$ telnet 192.168.0.1
Trying 192.168.0.1...
Connected to 192.168.0.1.
Escape character is '^]'.


BusyBox v0.61.pre (2006.08.31-06:27+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

(for 4.01.20)
# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination         
DROP       udp  --  anywhere             anywhere           udp dpt:161 
ACCEPT     udp  --  anywhere             anywhere           udp dpt:161 
ACCEPT     all  --  anywhere             anywhere           
ACCEPT     all  --  anywhere             anywhere           

....

# iptables -D INPUT 1

(for 4.01.28)
# iptables -I INPUT -p udp -s 82.68.155.88/29 -j ACCEPT
(you will need to modify the IP mask for your own allocation)

# exit
Walk the MIB tree: (short)
$ snmpwalk -Os -c public -v 1 192.168.0.1 system
sysDescr.0 = STRING: NETGEAR DG834 ADSL Gateway
sysObjectID.0 = OID: enterprises.4526.3.2
sysUpTimeInstance = Timeticks: (4620667) 12:50:06.67
sysContact.0 = STRING: alan@wylie.me.uk
sysName.0 = STRING: alan
sysLocation.0 = STRING: alan
sysServices.0 = INTEGER: 4
(long)
$ snmpwalk -Os -c public -v 1 192.168.0.1
...
Generate an mrtg config
# /usr/bin/cfgmaker --global 'WorkDir: /var/lib/mrtg' --global 'Options[_]: # bits,growright' --output /etc/mrtg-netgear.conf public@192.168.0.1