1source: Extensions/SNMP-Proxy.md
2path: blob/master/doc/
3
4# SNMP Proxy
5
6If you have machines that you want to monitor but are not reachable
7directly, you can use [SNMPD
8Proxy](http://www.net-snmp.org/wiki/index.php/Snmpd_proxy). This will
9use the reachable SNMPD to proxy requests to the unreachable SNMPD.
10
11## Example configuration
12
13We want to poll 'unreachable.example.com' via
14
15'hereweare.example.com'. Use the following config:
16
17On 'hereweare.example.com':
18
19```
20        view all included .1
21        com2sec -Cn ctx_unreachable readonly <poller-ip> unreachable
22        access MyROGroup ctx_unreachable any noauth prefix all none none
23        proxy -Cn ctx_unreachable -v 2c -c private unreachable.example.com  .1.3
24```
25
26On 'unreachable.example.com':
27
28```
29        view all included .1                               80
30        com2sec readonly <hereweare.example.com ip address> private
31        group MyROGroup v1 readonly
32        group MyROGroup v2c readonly
33        group MyROGroup usm readonly
34        access MyROGroup "" any noauth exact all none none
35```
36
37You can now poll community 'private' on
38'unreachable.example.com' via community 'unreachable' on host
39'hereweare.example.com'. Please note that requests on
40'unreachable.example.com' will be coming from
41'hereweare.example.com', not your poller.
42