From owner-freebsd-stable@FreeBSD.ORG Mon Apr 21 02:26:35 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D6C7EBA2 for ; Mon, 21 Apr 2014 02:26:35 +0000 (UTC) Received: from eccles.ee.ryerson.ca (eccles.ee.ryerson.ca [141.117.1.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FC671DF6 for ; Mon, 21 Apr 2014 02:26:35 +0000 (UTC) Received: from [172.16.2.5] (76-10-142-143.dsl.teksavvy.com [76.10.142.143]) (authenticated bits=0) by eccles.ee.ryerson.ca (8.14.4/8.14.4) with ESMTP id s3L2EnsH081434 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 20 Apr 2014 22:14:50 -0400 (EDT) (envelope-from dmagda@ee.ryerson.ca) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Syslogd question From: David Magda In-Reply-To: Date: Sun, 20 Apr 2014 22:15:02 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <2396FE35-602F-44A2-BC89-981D32DEDE08@ee.ryerson.ca> References: To: James Welcher X-Mailer: Apple Mail (2.1510) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2014 02:26:35 -0000 On Apr 19, 2014, at 18:24, James Welcher wrote: [=85] > How can I configure the server to locally log the network connections = it > receives, but NOT to forward these remotely received messages? [=85] > Anyone know how I can prevent syslogd from hopping/remote forwarding > nowadays? =46rom syslog.conf(5): > A hostname specification of the form `#+hostname' or `+hostname' means = the following blocks will be applied to messages received from = thespecified hostname. Alternatively, the hostname specification = `#-hostname' or `-hostname' causes the following blocks to be applied to = messages from any host but the one specified. If the hostname is given = as `@', the local hostname will be used. As for program specifications, = multiple comma-separated values may be specified for hostname = specifications. http://www.freebsd.org/cgi/man.cgi?query=3Dsyslog.conf So you should try something like at the end: # Send messages from localhost to remotelogger. +@ *.* @remotelog.example.com See also: https://www.freebsd.org/doc/handbook/configtuning-syslog.html