#!/bin/sh
#
-# $OpenBSD: snmpd.sh,v 1.7 2018/06/30 17:37:59 rob Exp $
+# $OpenBSD: snmpd.sh,v 1.8 2018/07/20 21:59:53 claudio Exp $
#/*
# * Copyright (c) Rob Pierce <rob@openbsd.org>
# *
cat > ${OBJDIR}/snmpd.conf <<EOF
# This is config template (1) for snmpd regression testing
-listen_addr="127.0.0.1"
-
# Restrict daemon to listen on localhost only
-listen on \$listen_addr
+listen on 127.0.0.1
+listen on ::1
# Specify a number of trap receivers
trap receiver localhost
cat > ${OBJDIR}/snmpd.conf <<EOF
# This is config template (2) for snmpd regression testing
-listen_addr="127.0.0.1"
-
# Restrict daemon to listen on localhost only
-listen on \$listen_addr
+listen on 127.0.0.1
+listen on ::1
seclevel auth
cat > ${OBJDIR}/snmpd.conf <<EOF
# This is config template (3) for snmpd regression testing
-listen_addr="127.0.0.1"
-
# Restrict daemon to listen on localhost only
-listen on \$listen_addr
+listen on 127.0.0.1
+listen on ::1
seclevel enc
cat > ${OBJDIR}/snmpd.conf <<EOF
# This is config template (4) for snmpd regression testing
-listen_addr="127.0.0.1"
-
# Restrict daemon to listen on localhost only
-listen on \$listen_addr
+listen on 127.0.0.1
+listen on ::1
read-only community non-default-ro