From owner-freebsd-doc@FreeBSD.ORG Fri Jan 6 17:30:16 2006 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6A1316A426 for ; Fri, 6 Jan 2006 17:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C452343D5D for ; Fri, 6 Jan 2006 17:30:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k06HU3bs006515 for ; Fri, 6 Jan 2006 17:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k06HU3E9006514; Fri, 6 Jan 2006 17:30:03 GMT (envelope-from gnats) Resent-Date: Fri, 6 Jan 2006 17:30:03 GMT Resent-Message-Id: <200601061730.k06HU3E9006514@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, john fleming Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E163C16A423 for ; Fri, 6 Jan 2006 17:21:54 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4B1443D60 for ; Fri, 6 Jan 2006 17:21:43 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k06HLhLo091546 for ; Fri, 6 Jan 2006 17:21:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k06HLhdP091545; Fri, 6 Jan 2006 17:21:43 GMT (envelope-from nobody) Message-Id: <200601061721.k06HLhdP091545@www.freebsd.org> Date: Fri, 6 Jan 2006 17:21:43 GMT From: john fleming To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: docs/91406: bsnmpd needs a config option to disable write ability. X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2006 17:30:16 -0000 >Number: 91406 >Category: docs >Synopsis: bsnmpd needs a config option to disable write ability. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 06 17:30:02 GMT 2006 >Closed-Date: >Last-Modified: >Originator: john fleming >Release: 6.0-R >Organization: pfSense >Environment: FreeBSD 6.0-R >Description: There currently is no way to disabled read/write community in bsnmpd. The default for bsnmpd is a hard coded public for both read and write community strings. There needs to be a way to set the write (and possibly read ) string to NULL or something along those lines, to disabe snmp write support. >How-To-Repeat: N/A >Fix: two options, set write and read string to something and tell no on (NO ONE I SAY!). Option 2, disable snmp read/write strings via a code change. Edit contrib/bsnmp/snmpd/main.c, you should see something like.. (void)comm_define(1, "SNMP read", NULL, "public"); (void)comm_define(2, "SNMP write", NULL, "public"); change both "public"s to NULL. (no quote marks). then rebuild bnmpd. # stop bsnmpd first. cd /usr/src/usr.sbin/bsnmpd make obj make depend make make install # restart bsnmpd >Release-Note: >Audit-Trail: >Unformatted: