summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/snmpd/snmpd.conf.519
1 files changed, 17 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpd.conf.5 b/usr.sbin/snmpd/snmpd.conf.5
index 92663ac9a0f..2c038eccdc7 100644
--- a/usr.sbin/snmpd/snmpd.conf.5
+++ b/usr.sbin/snmpd/snmpd.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: snmpd.conf.5,v 1.20 2012/09/17 21:09:33 jmc Exp $
+.\" $OpenBSD: snmpd.conf.5,v 1.21 2012/09/18 10:03:45 reyk Exp $
.\"
.\" Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: September 17 2012 $
+.Dd $Mdocdate: September 18 2012 $
.Dt SNMPD.CONF 5
.Os
.Sh NAME
@@ -281,6 +281,21 @@ system services 74
oid 1.3.6.1.4.1.30155.42.1 name myName read-only string "humppa"
oid 1.3.6.1.4.1.30155.42.2 name myStatus read-only integer 1
.Ed
+.Pp
+The next example will enforce SNMPv3 with authenticated and encrypted
+communication and the user-based security model.
+The configuration defines two users,
+the first one is using the
+.Ic aes
+encryption algorithm and the second one the default
+.Ic des
+algorithm.
+.Bd -literal -offset indent
+seclevel enc
+
+user "xaver" authkey "password123" enc aes enckey "321drowssap"
+user "traudl" authkey "password456" enckey "654drowssap"
+.Ed
.Sh SEE ALSO
.Xr snmpctl 8 ,
.Xr snmpd 8