Alan Wylie's Web Site

Wed, 2008-12-17

Netgear DG834 hints

Enable Telnet

Enable SNMP

Stop iptables blocking the snmp port:

$ telnet
Connected to
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 -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 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:
sysName.0 = STRING: alan
sysLocation.0 = STRING: alan
sysServices.0 = INTEGER: 4
$ snmpwalk -Os -c public -v 1
Generate an mrtg config
# /usr/bin/cfgmaker --global 'WorkDir: /var/lib/mrtg' --global 'Options[_]: # bits,growright' --output /etc/mrtg-netgear.conf public@