restricting MIB access on multi-homed machines

"Joe Sixpack" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
hi,

I'd like to see if anyone knows if the scenario I describe is possible
with net-snmp (I'm dumb enough to have to ask this question and not smart
enough to answer it myself, yet).

Given a machine with multiple IP addresses and the agent listening on
each can net-snmp be configured to restrict access to MIBs based upon
the IP address the agent is bound to?

Say the agent is bound to the following IP addresses:
   eth0: 192.168.0.1 and eth1: 192.168.0.2
using agentaddress 192.168.0.1,192.168.0.2

For example requests made to 192.168.0.1 I'd like to return this:
IF-MIB.oid:"ifHCInOctets" "1.3.6.1.2.1.31.1.1.1.6"
IF-MIB.oid:"ifHCInUcastPkts" "1.3.6.1.2.1.31.1.1.1.7"
IF-MIB.oid:"ifHCInMulticastPkts" "1.3.6.1.2.1.31.1.1.1.8"
IF-MIB.oid:"ifHCInBroadcastPkts" "1.3.6.1.2.1.31.1.1.1.9"

while on 192.168.0.2 I'd like to return a different view given the same request:
IF-MIB.oid:"ifHCInOctets" "1.3.6.1.2.1.31.1.1.1.6"
IF-MIB.oid:"ifHCInUcastPkts" "1.3.6.1.2.1.31.1.1.1.7"

At this point I'm not interested in using user and groups to restrict
MIB access... just in restricting MIB access based upon which IP address
the requests came in on.

thanks much!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.