_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 365 of 423
Another sample agent configuration shown below causes the agent to listen on UDP port
161, TCP port 161 and UDP port 9161 on only the interface associated with the localhost
address.
config 'agent'
option agentaddress 'UDP:161,tcp:161,9161@localhost'
36.3.3
com2sec settings
The following sample specifies that a request from any source using “public” as the
community string will be dealt with using the security name “ro”. However, any request
from the localhost itself using “private” as the community string will be dealt with using
the security name “rw”.
Note: the security names of “ro” and “rw” here are simply names – the fact of a security
name having read only or read-write permissions is handled in the access section and
dealt with at a group granularity.
36.3.3.1
Com2sec using UCI
snmpd.c2s_1=com2sec
snmpd.c2s_1.source=default
snmpd.c2s_1.community=public
snmpd.c2s_1.secname=rw
snmpd.c2s_2=com2sec
snmpd.c2s_2.source=localhost
snmpd.c2s_2.community=private
snmpd.c2s_2.secname=ro
36.3.3.2
Com2sec using package options
config 'com2sec' 'public'
option secname 'ro'
option source 'default'
option community 'public'
config 'com2sec' 'private'
option secname 'rw'
option source 'localhost'
option community 'private'
36.3.4
Group settings
The following example specifies that a request from the security name “ro” using snmp
v1, v2c or USM (User Based Security Model for SNM P v3) are all mapped to the “public”