I asked this on NET-SNMP mailing list:
https://sourceforge.net/mailarchive/message.php?msg_id=28692398
But unfortunatelly I haven't got any answer up to now.
I need to forward SNMP requests (not traps) from the outside world down to a number of nodes in a subnetwork.
Those nodes aren't directly reachable from the outside, but, instead, they are seen as a single network address (IP) and have different table instances in their OID's. The request is catch by a single node (a "proxy") that knows about the subnetwork configuration and is ought to repass it accordingly.
Is it possible to configure snmpd.conf
so that snmpd
can forward requests without having to implement a custom agent that checks the index, repacks the PDU's and manually sync's it to the target nodes?
NOTE: My MIB has several tables, all of them indexed by the same index and I need to be able to forward all of the requests based on the given index.
Really thanks.
elementFeature1
for node 3 with OID1.3.6.1.4.1.a.b.c.d.1.1.1.2.3
. The agent must forward the request internally after retrieving the internal node IP address (using agetNodeIP( 3 )
function that is available on the "gateway" node). The request is sent from outside to the gateway on IP 10.0.0.100, and forwarded to the node on 192.168.0.3 in the masked network. Is this what you expected as an example?getNodeIP( node_index )
, in my example. The gateway node knows about the internal IPs and can get this information based on the OID index sent. This gateway must keep the topology invisible to the outside, answering as a single device with multiple "features".