Hi net-snmp-coders, We are net-snmp 5.9.1 with proxy. We use context to associate user/view/community and the context is based on the view (one view will have one corresponding context) But we would like to hide the context from SNMP client. The snmpd.conf is like this: proxy -Cn context_vt1 -v 2c -t 100 -r 1 -c _proxy_comm_vt1 127.0.0.1:7667 .1.3 proxy -Cn context_vt2 -v 2c -t 100 -r 1 -c _proxy_comm_vt2 127.0.0.1:7667 .1.3 rocommunity _proxy_comm_vt1 localhost rocommunity _proxy_comm_vt2 localhost view vt1 included 1.3.6.1.4.1.41916 view vt1 excluded 1.3.6.1.4.1.41916.11.1 view vt2 included 1.3.6.1.4.1.41916 createUser u1 SHA-256 "1234567890" AES-256 "1234567890" rouser u1 authpriv -V vt1 context_vt1 createUser u11 SHA-256 "1234567890" AES-256 "1234567890" rouser u11 authpriv -V vt1 context_vt1 createUser u2 SHA-256 "1234567890" AES-256 "1234567890" rouser u2 authpriv -V vt2 context_vt2 createUser u22 SHA-256 "1234567890" AES-256 "1234567890" rouser u22 authpriv -V vt2 context_vt2 We would get the context from access list and add the context in the PDU data structure if the request PDU does not have context. We will not send the context for the response PDU. Attached please find our changes. Could you please review our changes? Or if you have any other suggestion to achieve the goal? Thanks, Jenny Yao |
agent-fix-context-from-access-list.patch
Description: Binary data
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders