From owner-freebsd-questions@FreeBSD.ORG Mon Sep 16 17:30:00 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 771FCE0 for ; Mon, 16 Sep 2013 17:30:00 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 470F92E35 for ; Mon, 16 Sep 2013 17:30:00 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id qd12so8005741ieb.36 for ; Mon, 16 Sep 2013 10:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=2gu7M/W0DJjd5+9vi1XAnF6SV3bPqidtSpVrXkDBdH8=; b=fjQZ71ib/3JBVA1L/KeiluLVPFJ82Q7AxXcaeW5ZI03u/X0Rnl3ywwnyM58/6C+5Z+ ijiz0R4Z0xD/MdI9tVQ3bqyquGB4Xgv0lCliK0RuRnIyeuoipbArJmac16TOzfEsvRrr 2Z7rBxPdiVZM45Xb3aDTi2VXkMFkH3EqKMRViMIrUwT/4JxpFjujYA8Trhlfkql1Iyyu 9g+G1qw2TnnIWulee3IWitaG+KeInw2HrWX4MrMtlywRXQaRzfjBSKYkgV6DFjpvcAlr Gb8NibqH8lb9eDFTIz1CnaIukGBXRUs7EinGmWO1vT3L6T1BSpILS6f0x5TQA70sgH3m eZzw== MIME-Version: 1.0 X-Received: by 10.50.43.170 with SMTP id x10mr6669025igl.45.1379352599699; Mon, 16 Sep 2013 10:29:59 -0700 (PDT) Sender: vrwmiller@gmail.com Received: by 10.64.9.39 with HTTP; Mon, 16 Sep 2013 10:29:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Sep 2013 13:29:59 -0400 X-Google-Sender-Auth: ai5j5PG5wWKpBfOyR8xYKBVlj5Y Message-ID: Subject: Re: how to log sshd access in a single file From: Rick Miller To: aurikus grande , FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 17:30:00 -0000 Hi Aurikus, Selecting "Reply all" when replying to messages on the list allows the entire list to benefit from the discussion. On Mon, Sep 16, 2013 at 11:05 AM, aurikus grande wrote: > Hello Rick. > > thanks a lot for your quick reply. > > Does your recommendation - to use syslog.conf mean instead - that i cant > accomplish what i want with hosts.allow and twist ? > I am unfamiliar with twist and cannot authoritatively answer this question. Not to mention, it does not appear to be in base I=B4m still reading through the man pages and try to understand how to > configure syslog.conf. > I recommended syslog, because it is the stock logging mechanism for FreeBSD= . On my 9.1 system, /etc/syslog.conf contains: auth.info;authpriv.info /var/log/auth.log These facilities are both logging to /var/log/auth.log. Your stated goal was logging of failed ssh attempts to your host. The above line in syslog.conf accomplishes this by sending the message to /var/log/auth.log. TCPWrappers will have no effect on logging of failed ssh attempts unless sshd is configured to run via inetd. I recommend pf or ipfw for filtering access to ssh. --=20 Take care Rick Miller