From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 07:08:25 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A0FAC8C for ; Sun, 26 Apr 2015 07:08:25 +0000 (UTC) Received: from asmtp01.netarrest.com (asmtp01.netarrest.com [67.228.24.236]) (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 268B01FA5 for ; Sun, 26 Apr 2015 07:08:25 +0000 (UTC) Received: from Dell-Admin (p5B077667.dip0.t-ipconnect.de [91.7.118.103]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by asmtp01.netarrest.com (Postfix) with ESMTPSA id 2D946990039 for ; Sun, 26 Apr 2015 02:08:21 -0500 (CDT) Reply-To: nights@sunrise.ch Message-ID: From: "Midsommar Festival 2015" To: Subject: Are you a DJ ? Date: Sun, 26 Apr 2015 09:05:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 07:08:25 -0000 If you have trouble reading this email, turn on the images, or [1]click here to read it online. [2][CDc4LAiWEAIEcWc.jpg] [3]Midsommar Festival returns to Switzerland for the 5th year and we are searching the planet for the best talented DJ to join the festival for a spotlight performance on this edition in Lucerne. If you think you have what it takes, then upload your best 30 minutes DJ set via Mixcloud or SoundCloud. One talented and lucky winner will get the chance to perform at the Midsommar Festival, with some of the most relevant and talented acts coming from many different countries. The Midsommar Team will cover roundtrip flights and accommodation in Lucerne, Switzerland. The final line-up will be announced soon and maybe with your name on the roster?! This is a unique chance to be part of an incredible festival with artists coming from all around the world. [4][CDc7yZfWAAAmKQ7.jpg] How to Enter: The competition is open to European residents only. * Open a SoundCloud or MixCloud account in case you don't have one. * Upload a mix of no more than 30 minutes. * Title the mix Midsommar Recruits [Your DJ Name] * Tag your mix Midsommar Recruits if you fail to tag it correctly, your mix may be missed * Include the competition cover-art, provided [5]here. * Spread it around and share it to your friends and fans to collect likes. Judging: * The top 20 most 'liked' mixes that are uploaded on Mixcloud or SoundCloud and tagged with 'Midsommar Recruits' will get shortlisted. * Only the mixes with at least 50 plays by the deadline date can qualify in the top 20. * The artists of the Festival and the Midsommar Crew will review each of these 20 mixes and select the 10 finalists. * The finalists will publish the mix or cover of the festival in their own facebook accounts and will collect as much likes, shares and comments they can. The mix or cover with more activity will perform at the Midsommar Festival 2015, with some of the most important artists of the industry. If you dont want to receive our newsletters anymore, please [6]click here This e-mail including any attachments is confidential and may be legally privileged. If you have received it in error please advise the sender immediately. The unauthorised use, distribution, copying or alteration of this email is strictly forbidden. Su dirección de email ha sido recopilada de fuentes de público acceso en Internet. Conforme a la Directiva Europea 2002/58/EC y la Ley 32/2003, de 3 de noviembre, General de Telecomunicaciones, vd. tiene el derecho a oponerse a que sus datos personales se utilicen para fines publicitarios y de marketing. Si este es su deseo, le rogamos pulse [7]darse de baja y automaticamente dejará de recibir comunicaciones publicitarias por nuestra parte. CONFIDENCIALIDAD: La información contenida en este mensaje y/o archivo(s) adjunto(s) es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias. VIRUS: Aunque hemos tomado las medidas para asegurarnos que este correo electrónico y sus ficheros adjuntos están libres de virus, le recomendamos que a efectos de mantener buenas prácticas de seguridad, el receptor debe asegurarse que este correo y sus ficheros adjuntos están libres de virus. References 1. http://t.co/wgiYtRQ00V 2. http://t.co/wgiYtRQ00V 3. http://t.co/wgiYtRQ00V 4. http://t.co/wgiYtRQ00V 5. http://pbs.twimg.com/media/CDc4LAiWEAIEcWc.jpg:large 6. http://iTiny.net/852727 7. http://iTiny.net/852727 From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 12:36:36 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EA7F9E5 for ; Sun, 26 Apr 2015 12:36:36 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 58570112C for ; Sun, 26 Apr 2015 12:36:35 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38651643 for freebsd-questions@freebsd.org; Sun, 26 Apr 2015 18:36:32 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3QCaTJ6060867 for ; Sun, 26 Apr 2015 18:36:32 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3QCaTQw060866 for freebsd-questions@freebsd.org; Sun, 26 Apr 2015 18:36:29 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Sun, 26 Apr 2015 18:36:29 +0600 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP Message-ID: <20150426123629.GA48916@admin.sibptus.tomsk.ru> References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <553C1F66.4060901@gmx.com> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 12:36:37 -0000 Nikos Vassiliadis wrote: > > > > Could you advise a solution for tunneling L2 (Ethernet) traffic over IP? > > > > There is a solution in bridge(4) using the EtherIP protocol, but it > > works with untagged frames only. I need to tunnel 802.1q tagged frames > > as well. > > > > Any ideas? > > > > > You can do this with netgraph. Check this post: > > http://lists.freebsd.org/pipermail/freebsd-net/2005-October/008861.html > It's a modification of the /usr/share/examples/netgraph/ether.bridge script. How do you know that it would pass 802.1q tagged frames? It references a "fxp0" interface which passes untagged traffic unless a vlan(4) interface is configured on top thereof. I thought there would be a VPN solution involving tap(4) devices or something. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 17:11:02 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51F99815 for ; Sun, 26 Apr 2015 17:11:02 +0000 (UTC) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E1AB71B65 for ; Sun, 26 Apr 2015 17:11:01 +0000 (UTC) Received: by wiun10 with SMTP id n10so66914462wiu.1 for ; Sun, 26 Apr 2015 10:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4zy1G8Pcms0lfd9eHnmuxNKVvJTJF3ABVRoI33DSGWc=; b=e+Iv1BI+Oe7nDjLVSzIkr1VGwUff+j+q44Jau6+kR639iPz7ZxUyFKPiy41Ni7SLl/ B88GgJzDFO05gScxoZzcE17XeUiogYkcXc80HFLiDLDhvQXqcqNvFASFwJlRyUnac7hG 1nlJj8F7djAPX3Qd0KBGgKNsYJfXpw0tIVCsFICLGs8qtoiAGUAkEL9ALDEbf8TnijZ0 JI+R4NC8Zbz3Oggp9rs4M2E/qBp0Eo+q1l29czB+k2sj1j/1pGi6preuDBx+iDL+iFeN KGHjJtDExZD/EP9aolBRVKryko49tvBmO7M5M8/80fdHmNvySSoF9B0gc1E+h2axTeNk zMFw== MIME-Version: 1.0 X-Received: by 10.180.218.108 with SMTP id pf12mr14100035wic.13.1430068260324; Sun, 26 Apr 2015 10:11:00 -0700 (PDT) Received: by 10.180.44.172 with HTTP; Sun, 26 Apr 2015 10:11:00 -0700 (PDT) Date: Sun, 26 Apr 2015 19:11:00 +0200 Message-ID: Subject: Debugging bad memory problems From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= To: User Questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 17:11:02 -0000 Hi, I suspect my old and beloved AMD64 laptop is suffering from bad memory problems: I get random crashes of well tested programs like sh, which, etc even when I executed some of them from /rescue. I wanted to check the memory banks. I installed /usr/ports/sysutils/memtest86+ and try to run it at boot. According to the documentation, from the boot loader prompt: unload load /boot/opt/memtest86+ boot But at the time of loading the file, the laptop reboots. I also tried /usr/ports/sysutils/memtest. But when I run it (as root), I get: $memtester 1G memtester version 4.3.0 (64-bit) Copyright (C) 2001-2012 Charles Cazabon. Licensed under the GNU General Public License version 2 (only). pagesize is 4096 pagesizemask is 0xfffffffffffff000 want 1024MB (1073741824 bytes) got 1024MB (1073741824 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073737728 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073733632 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073729536 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073725440 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073721344 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073717248 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073713152 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073709056 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073704960 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073700864 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073696768 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073692672 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073688576 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073684480 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073680384 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073676288 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073672192 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073668096 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073664000 bytes), trying mlock ...too many pages, reducing... got 1023MB (1073659904 bytes), trying mlock ...too many pages, reducing... ... ... got 0MB (73728 bytes), trying mlock ...too many pages, reducing... got 0MB (69632 bytes), trying mlock ...too many pages, reducing... got 0MB (65536 bytes), trying mlock ...locked. Any help with these two problems or any alternative programs? Thanks in advance. From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 17:16:48 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62454955 for ; Sun, 26 Apr 2015 17:16:48 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (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 245071C50 for ; Sun, 26 Apr 2015 17:16:47 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-237.dynamic.qsc.de [92.195.64.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 1810D3CC98; Sun, 26 Apr 2015 19:16:44 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t3QHGhXb003665; Sun, 26 Apr 2015 19:16:43 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 26 Apr 2015 19:16:43 +0200 From: Polytropon To: Fernando =?ISO-8859-1?Q?Apestegu=EDa?= Cc: User Questions Subject: Re: Debugging bad memory problems Message-Id: <20150426191643.fd783238.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 17:16:48 -0000 On Sun, 26 Apr 2015 19:11:00 +0200, Fernando Apestegu=EDa wrote: > Any help with these two problems or any alternative programs? For testing memory, I would leave out any problems that could be appearing from an operating system. Read: Do not use any operating system at all. :-) The simplest approach is often the most comfortable one in the case of checking RAM. For checking memory, use the memtest live CD. You can also use memtest from UBCD (Ultimate Boot CD) which also contains other tools that can be used to check for faulty hardware. In many cases, you can boot those from USB sticks if you don't have an optical drive or don't want to "waste" a "precious" media. :-) --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 20:05:11 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D805847C for ; Sun, 26 Apr 2015 20:05:11 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id 9C1F01C34 for ; Sun, 26 Apr 2015 20:05:11 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 1243CCB8CA3; Sun, 26 Apr 2015 15:05:03 -0500 (CDT) Received: from 69.209.235.143 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Sun, 26 Apr 2015 15:05:03 -0500 (CDT) Message-ID: <5480.69.209.235.143.1430078703.squirrel@cosmo.uchicago.edu> In-Reply-To: References: Date: Sun, 26 Apr 2015 15:05:03 -0500 (CDT) Subject: Re: Debugging bad memory problems From: "Valeri Galtsev" To: Fernando =?iso-8859-1?Q?Apestegu=C3=ADa?= Cc: "User Questions" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 20:05:11 -0000 On Sun, April 26, 2015 12:11 pm, Fernando Apesteguía wrote: > Hi, > > I suspect my old and beloved AMD64 laptop is suffering from bad memory > problems: I get random crashes of well tested programs like sh, which, > etc even when I executed some of them from /rescue. If RAM is a suspect the first thing I would do is re-seat memory modules. Open the box. (Observe static precautions!) Remove memory modules. Install them again. Do memtest86 (by booting into memtest86, you can have that in your boot options, or you can boot off external media as others suggested). If you still have problems: try to run with one memory module instead of two. At some point when they went to higher RAM speeds memory bus amplifier became more fragile (some chips, some manufacturers, as not it is part of CPU, this may be true only about some of the CPU models). You sometimes can slightly fry it if you merely leave laptop running on battery, letting battery run down and laptop powering off due to that. With some of chips this may lead to slightly frying it - memory controller portion of it, address bus amplifier in particular. Bus amplifier becomes slightly lower frequency, which results in poorer handling capacitive load (which is larger if you have more RAM), and it is marginally OK, occasionally having address errors. Going to one module may resolve this. You will know if this is likely the case if memtest86 is successful with each of single RAM modules, but fails (in random places, often not reproducible) with both. Good luck! Valeri > > I wanted to check the memory banks. I installed > /usr/ports/sysutils/memtest86+ and try to run it at boot. According to > the documentation, from the boot loader prompt: > > unload > load /boot/opt/memtest86+ > boot > > But at the time of loading the file, the laptop reboots. > > I also tried /usr/ports/sysutils/memtest. But when I run it (as root), I > get: > > $memtester 1G > > memtester version 4.3.0 (64-bit) > Copyright (C) 2001-2012 Charles Cazabon. > Licensed under the GNU General Public License version 2 (only). > > pagesize is 4096 > pagesizemask is 0xfffffffffffff000 > want 1024MB (1073741824 bytes) > got 1024MB (1073741824 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073737728 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073733632 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073729536 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073725440 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073721344 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073717248 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073713152 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073709056 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073704960 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073700864 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073696768 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073692672 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073688576 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073684480 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073680384 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073676288 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073672192 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073668096 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073664000 bytes), trying mlock ...too many pages, > reducing... > got 1023MB (1073659904 bytes), trying mlock ...too many pages, > reducing... > > ... > ... > > got 0MB (73728 bytes), trying mlock ...too many pages, reducing... > got 0MB (69632 bytes), trying mlock ...too many pages, reducing... > got 0MB (65536 bytes), trying mlock ...locked. > > Any help with these two problems or any alternative programs? > > Thanks in advance. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++ From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 21:05:52 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C5D3FD5 for ; Sun, 26 Apr 2015 21:05:52 +0000 (UTC) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 14E5A121B for ; Sun, 26 Apr 2015 21:05:52 +0000 (UTC) Received: by wgen6 with SMTP id n6so97436348wge.3 for ; Sun, 26 Apr 2015 14:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=1z954vAp+XYQ/pcKHtn3TPQeusSAY/ispgA+UL0x8K8=; b=mBIoE7gVZVTGY4WwRZEFzhEM7NsFjMQCD48upmw+jS1R/pZGMBsFpvW/wfJqUEC3GN rPTusMjZMj64umpFMEGYkLBS5E8sWA+82X5RqD5kqzv/f5vTDQ/VtiFHUgYnQx5RpDaa w8Qk05xaH8BQwUkq2Wa5I1kX8APXlSjkF14MVtYquK5MSKjBzzpJHep871bcWypGDLij csqk+DCXnesB/hVKQZgPcGrjlGNKhlrmN4v5ZUwYskmRPDQ0kVsAGPt1hAQOqHjt0s1q eEvKkeEI8bbZlSRVR7UbOZZZH5Vr7YyIOZPNPZLX54kTP+3bvPU/djX4rjmAtabHAVhf SY/w== MIME-Version: 1.0 X-Received: by 10.180.74.208 with SMTP id w16mr15023789wiv.31.1430082350597; Sun, 26 Apr 2015 14:05:50 -0700 (PDT) Received: by 10.180.44.172 with HTTP; Sun, 26 Apr 2015 14:05:50 -0700 (PDT) In-Reply-To: <5480.69.209.235.143.1430078703.squirrel@cosmo.uchicago.edu> References: <5480.69.209.235.143.1430078703.squirrel@cosmo.uchicago.edu> Date: Sun, 26 Apr 2015 23:05:50 +0200 Message-ID: Subject: Re: Debugging bad memory problems From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= To: galtsev@kicp.uchicago.edu Cc: User Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 21:05:52 -0000 On Sun, Apr 26, 2015 at 10:05 PM, Valeri Galtsev wrote: > > On Sun, April 26, 2015 12:11 pm, Fernando Apestegu=C3=ADa wrote: >> Hi, >> >> I suspect my old and beloved AMD64 laptop is suffering from bad memory >> problems: I get random crashes of well tested programs like sh, which, >> etc even when I executed some of them from /rescue. > > If RAM is a suspect the first thing I would do is re-seat memory modules. > Open the box. (Observe static precautions!) Remove memory modules. Instal= l > them again. > > Do memtest86 (by booting into memtest86, you can have that in your boot > options, or you can boot off external media as others suggested). > > If you still have problems: try to run with one memory module instead of > two. At some point when they went to higher RAM speeds memory bus > amplifier became more fragile (some chips, some manufacturers, as not it > is part of CPU, this may be true only about some of the CPU models). You > sometimes can slightly fry it if you merely leave laptop running on > battery, letting battery run down and laptop powering off due to that. > With some of chips this may lead to slightly frying it - memory controlle= r > portion of it, address bus amplifier in particular. Bus amplifier becomes > slightly lower frequency, which results in poorer handling capacitive loa= d > (which is larger if you have more RAM), and it is marginally OK, > occasionally having address errors. Going to one module may resolve this. > You will know if this is likely the case if memtest86 is successful with > each of single RAM modules, but fails (in random places, often not > reproducible) with both. > > Good luck! I booted from a memtest CD-ROM. It passed a couple of tests fine and then it rebooted while doing a "bit fade" test at around 93%. Removing the modules is tricky since this laptop has screws all around in dark corners (even removing the battery needs a screw driver). I will try to limit physical memory with hw.physmem and see if it makes any difference. Thanks! > > Valeri > >> >> I wanted to check the memory banks. I installed >> /usr/ports/sysutils/memtest86+ and try to run it at boot. According to >> the documentation, from the boot loader prompt: >> >> unload >> load /boot/opt/memtest86+ >> boot >> >> But at the time of loading the file, the laptop reboots. >> >> I also tried /usr/ports/sysutils/memtest. But when I run it (as root), I >> get: >> >> $memtester 1G >> >> memtester version 4.3.0 (64-bit) >> Copyright (C) 2001-2012 Charles Cazabon. >> Licensed under the GNU General Public License version 2 (only). >> >> pagesize is 4096 >> pagesizemask is 0xfffffffffffff000 >> want 1024MB (1073741824 bytes) >> got 1024MB (1073741824 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073737728 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073733632 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073729536 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073725440 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073721344 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073717248 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073713152 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073709056 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073704960 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073700864 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073696768 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073692672 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073688576 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073684480 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073680384 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073676288 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073672192 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073668096 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073664000 bytes), trying mlock ...too many pages, >> reducing... >> got 1023MB (1073659904 bytes), trying mlock ...too many pages, >> reducing... >> >> ... >> ... >> >> got 0MB (73728 bytes), trying mlock ...too many pages, reducing... >> got 0MB (69632 bytes), trying mlock ...too many pages, reducing... >> got 0MB (65536 bytes), trying mlock ...locked. >> >> Any help with these two problems or any alternative programs? >> >> Thanks in advance. >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> > > > ++++++++++++++++++++++++++++++++++++++++ > Valeri Galtsev > Sr System Administrator > Department of Astronomy and Astrophysics > Kavli Institute for Cosmological Physics > University of Chicago > Phone: 773-702-4247 > ++++++++++++++++++++++++++++++++++++++++ From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 22:15:49 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5131DF4E for ; Sun, 26 Apr 2015 22:15:49 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id 0E9FC18F4 for ; Sun, 26 Apr 2015 22:15:48 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 8F482CB8CA3; Sun, 26 Apr 2015 17:15:47 -0500 (CDT) Received: from 69.209.235.143 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Sun, 26 Apr 2015 17:15:47 -0500 (CDT) Message-ID: <5793.69.209.235.143.1430086547.squirrel@cosmo.uchicago.edu> In-Reply-To: References: <5480.69.209.235.143.1430078703.squirrel@cosmo.uchicago.edu> Date: Sun, 26 Apr 2015 17:15:47 -0500 (CDT) Subject: Re: Debugging bad memory problems From: "Valeri Galtsev" To: Fernando =?iso-8859-1?Q?Apestegu=C3=ADa?= Cc: "User Questions" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 22:15:49 -0000 On Sun, April 26, 2015 4:05 pm, Fernando Apesteguía wrote: > On Sun, Apr 26, 2015 at 10:05 PM, Valeri Galtsev > wrote: >> >> On Sun, April 26, 2015 12:11 pm, Fernando Apesteguía wrote: >>> Hi, >>> >>> I suspect my old and beloved AMD64 laptop is suffering from bad memory >>> problems: I get random crashes of well tested programs like sh, which, >>> etc even when I executed some of them from /rescue. >> >> If RAM is a suspect the first thing I would do is re-seat memory >> modules. >> Open the box. (Observe static precautions!) Remove memory modules. >> Install >> them again. >> >> Do memtest86 (by booting into memtest86, you can have that in your boot >> options, or you can boot off external media as others suggested). >> >> If you still have problems: try to run with one memory module instead of >> two. At some point when they went to higher RAM speeds memory bus >> amplifier became more fragile (some chips, some manufacturers, as not it >> is part of CPU, this may be true only about some of the CPU models). You >> sometimes can slightly fry it if you merely leave laptop running on >> battery, letting battery run down and laptop powering off due to that. >> With some of chips this may lead to slightly frying it - memory >> controller >> portion of it, address bus amplifier in particular. Bus amplifier >> becomes >> slightly lower frequency, which results in poorer handling capacitive >> load >> (which is larger if you have more RAM), and it is marginally OK, >> occasionally having address errors. Going to one module may resolve >> this. >> You will know if this is likely the case if memtest86 is successful with >> each of single RAM modules, but fails (in random places, often not >> reproducible) with both. >> >> Good luck! > > I booted from a memtest CD-ROM. It passed a couple of tests fine and > then it rebooted while doing a "bit fade" test at around 93%. Removing > the modules is tricky since this laptop has screws all around in dark > corners (even removing the battery needs a screw driver). I will try > to limit physical memory with hw.physmem and see if it makes any > difference. The last will not help against what I mentioned, as capacitive load on memory address bus is defined by what is physically attached to it. One usually runs memtest86 for 24 hours at lest. One loop will catch "solid defects" like adjacent line on the board connected (while they shouldn't). Memory related failures to the contrary are often intermittent. In worst case I've seen, they only manifested under intense load of the box (whereas memtest86 is equivalent to almost zero load). Good luck! Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++ From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 23:23:41 2015 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B5D1878E for ; Sun, 26 Apr 2015 23:23:41 +0000 (UTC) Received: from mail-wg0-x243.google.com (mail-wg0-x243.google.com [IPv6:2a00:1450:400c:c00::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47A511F01 for ; Sun, 26 Apr 2015 23:23:41 +0000 (UTC) Received: by wggy19 with SMTP id y19so11257634wgg.1 for ; Sun, 26 Apr 2015 16:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:subject:to:content-type:mime-version:reply-to :organization:date; bh=eUg2Fx08LgkTHyfuc4VQQgk+/eSF7DOSXGzndDzkOk8=; b=FHtmQTLlyhANYvGsLCpL4xHvRc2xfF3G0R5XBXrf2Bpd3kWS5M/3mqkL5soFIR1ZBt MpOB7XgNiwjkIdRH6gc5Qn/W10cYmbydiBPBKIXNMHwosuU1gOLeJIkRdNpGXoiba583 izV8RGZewLlNARj7Jx3mwi+omwGGTqj9SWFHqy+UtEde3P3SWOBOeV6YZcLOxBZgQs3t AkJ/qHZC4Ikfj6uA3U+3AbRTifsw0eygajCsxQQEmr7+Gfj8uiP1nKUQ5zs4gfnuGa/9 Y73qfyb/4ybZ8QrfC0DPB6KucfO/HBXGhYVGaQdhHph3TTDGgM0Z6DdnrkkkLIrBzpul lJ7A== X-Received: by 10.180.73.202 with SMTP id n10mr6467418wiv.0.1430090618690; Sun, 26 Apr 2015 16:23:38 -0700 (PDT) Received: from IGLD-84-228-56-41.inter.net.il (IGLD-84-228-56-41.inter.net.il. [84.228.56.41]) by mx.google.com with ESMTPSA id l1sm9111104wiy.20.2015.04.26.16.23.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Apr 2015 16:23:35 -0700 (PDT) Message-ID: <553d7377.e152b40a.5383.fffff90a@mx.google.com> From: "Rotem Hecht" Subject: Music composer for film, games and Tv commercials To: "questions" MIME-Version: 1.0 Reply-To: "info@rotemmusic.com" Organization: Rotem Hecht Date: Mon, 27 Apr 2015 02:23:35 +0300 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 23:23:41 -0000 Hello=20 =20 I hope you well =20 I am Rotem Hecht. I work as a professional music composer and sound d= esigner, I'm based in Israel and in Los Angeles, California and working with production companies all over the world. I compose original music for movies, television commercials, video gam= es, events, corporate films and I am open to other media scenarios. My portfolio includes projects performed for Microsoft, Hershey's, Kre= -O, Hasbro, Mercedes, Audi, Nickelodeon, Hop! TV Channel and more =20 I=E2=80=99m capable of delivering high quality products at decent rate= s and in short period of time. I would like to offer you my services. Please check my portfolio on my= website www.rotemmusic.com =20 Thank You for your time. =20 All The Best , =20 Rotem Hecht Mob:+972-528-227726 rotemhecht@gmail.com Skype: rhecht1282=20 =20 Unsubscribe From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 00:02:33 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64CCFA75 for ; Mon, 27 Apr 2015 00:02:33 +0000 (UTC) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E3941228 for ; Mon, 27 Apr 2015 00:02:33 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so59271155igb.0 for ; Sun, 26 Apr 2015 17:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cO2udFYY6isiTc5cMVnIYwkvsOZ0XdYkSIMNPnU4qNc=; b=It3f/tJ/ZhMIxVrOYO4Ih793BEaEJZtPwfGDHb9Qi/QcV1T0Y8D4f7S/3vQ7L3fsVT ljvVsoaschD9Ah+8JIwi/uuBoqWEpzMRf9aNJ3noxT7AxlT6n4rPSNcAD+nyjpJck/S/ 2FPAso/uctwFmJ2sewkG4uURwk60Qv/y+WRtKz+1FaQBwiWEeRfa98SyUqpWIBx5j9PN tgIiVv3Im19lpJJMWSplNo20Jtp9CTpslO8ZCO5sMjgI7BzCdJiI8BLpbCvQejC0VX4A WN1hmE6tG2lenNSNfT+puAjiMpWNH8I+2nSL1PJbThOsBbmGQvDWIbs9IAmmqELg0E0e WX8Q== MIME-Version: 1.0 X-Received: by 10.43.146.67 with SMTP id jx3mr9423749icc.63.1430092952591; Sun, 26 Apr 2015 17:02:32 -0700 (PDT) Received: by 10.64.24.141 with HTTP; Sun, 26 Apr 2015 17:02:32 -0700 (PDT) In-Reply-To: <5793.69.209.235.143.1430086547.squirrel@cosmo.uchicago.edu> References: <5480.69.209.235.143.1430078703.squirrel@cosmo.uchicago.edu> <5793.69.209.235.143.1430086547.squirrel@cosmo.uchicago.edu> Date: Sun, 26 Apr 2015 17:02:32 -0700 Message-ID: Subject: Re: Debugging bad memory problems From: Mehmet Erol Sanliturk To: galtsev@kicp.uchicago.edu Cc: =?UTF-8?Q?Fernando_Apestegu=C3=83=C2=ADa?= , User Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 00:02:33 -0000 On Sun, Apr 26, 2015 at 3:15 PM, Valeri Galtsev wrote: > > On Sun, April 26, 2015 4:05 pm, Fernando Apestegu=C3=83=C2=ADa wrote: > > On Sun, Apr 26, 2015 at 10:05 PM, Valeri Galtsev > > wrote: > >> > >> On Sun, April 26, 2015 12:11 pm, Fernando Apestegu=C3=83=C2=ADa wrote: > >>> Hi, > >>> > >>> I suspect my old and beloved AMD64 laptop is suffering from bad memor= y > >>> problems: I get random crashes of well tested programs like sh, which= , > >>> etc even when I executed some of them from /rescue. > >> > >> If RAM is a suspect the first thing I would do is re-seat memory > >> modules. > >> Open the box. (Observe static precautions!) Remove memory modules. > >> Install > >> them again. > >> > >> Do memtest86 (by booting into memtest86, you can have that in your boo= t > >> options, or you can boot off external media as others suggested). > >> > >> If you still have problems: try to run with one memory module instead = of > >> two. At some point when they went to higher RAM speeds memory bus > >> amplifier became more fragile (some chips, some manufacturers, as not = it > >> is part of CPU, this may be true only about some of the CPU models). Y= ou > >> sometimes can slightly fry it if you merely leave laptop running on > >> battery, letting battery run down and laptop powering off due to that. > >> With some of chips this may lead to slightly frying it - memory > >> controller > >> portion of it, address bus amplifier in particular. Bus amplifier > >> becomes > >> slightly lower frequency, which results in poorer handling capacitive > >> load > >> (which is larger if you have more RAM), and it is marginally OK, > >> occasionally having address errors. Going to one module may resolve > >> this. > >> You will know if this is likely the case if memtest86 is successful wi= th > >> each of single RAM modules, but fails (in random places, often not > >> reproducible) with both. > >> > >> Good luck! > > > > I booted from a memtest CD-ROM. It passed a couple of tests fine and > > then it rebooted while doing a "bit fade" test at around 93%. Removing > > the modules is tricky since this laptop has screws all around in dark > > corners (even removing the battery needs a screw driver). I will try > > to limit physical memory with hw.physmem and see if it makes any > > difference. > > The last will not help against what I mentioned, as capacitive load on > memory address bus is defined by what is physically attached to it. > > One usually runs memtest86 for 24 hours at lest. One loop will catch > "solid defects" like adjacent line on the board connected (while they > shouldn't). Memory related failures to the contrary are often > intermittent. In worst case I've seen, they only manifested under intense > load of the box (whereas memtest86 is equivalent to almost zero load). > > Good luck! > > Valeri > > ++++++++++++++++++++++++++++++++++++++++ > Valeri Galtsev > Sr System Administrator > Department of Astronomy and Astrophysics > Kavli Institute for Cosmological Physics > University of Chicago > Phone: 773-702-4247 > ++++++++++++++++++++++++++++++++++++++++ > Failure may be in memory management circuits instead of memory chips . To test this situation , the existing memories may be replaced by memory chips that they known to work ( if it can be done ) . Thank you very much . Mehmet Ero Sanliturk From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 00:35:35 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 42899D92 for ; Mon, 27 Apr 2015 00:35:35 +0000 (UTC) Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 00B611513 for ; Mon, 27 Apr 2015 00:35:34 +0000 (UTC) Received: by qgfi89 with SMTP id i89so43780756qgf.1 for ; Sun, 26 Apr 2015 17:35:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=A/aqxTf1t1NQ6G06uZW5tbDwYegWGh3qoBcXY7f7Nms=; b=rKTNTHn1ZkCqh8L2n8JclwfXKPNpY3jq48P3MMhH4WrvKlVRjP36zfwCoS0egDrr7A nyMEvCSldRrtPycu5q0CmD9C+HOHD1UxCb5pWeMzX4PMbzhyg+oyBK4LqPTZC3hK9cdC vPoI8h4azd4zYxKiehC96VK34OwYVic8NkPRjpyn/XJrM+f02egDiieL2G17sc4e9QaG zg78U5sYQCwrIiFg1dbIIFkwm5Lm4NspRdFdhdord4eFritkBeWOqo9HQKtJI/ySKT9v N2zK78Dh9bSiS786yXRA0DMosImEAItGzQU8lZt0MDvZ58M0tTwTDfSh4PnIzx3JwDqI 7ymA== X-Received: by 10.140.81.39 with SMTP id e36mr5993751qgd.10.1430094934145; Sun, 26 Apr 2015 17:35:34 -0700 (PDT) Received: from localhost.localdomain ([209.181.150.218]) by mx.google.com with ESMTPSA id 15sm10885087qkz.30.2015.04.26.17.35.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Apr 2015 17:35:32 -0700 (PDT) Message-ID: <553D8452.9050601@gmail.com> Date: Sun, 26 Apr 2015 18:35:30 -0600 From: jd1008 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Debugging bad memory problems References: <5480.69.209.235.143.1430078703.squirrel@cosmo.uchicago.edu> <5793.69.209.235.143.1430086547.squirrel@cosmo.uchicago.edu> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 00:35:35 -0000 On 04/26/2015 06:02 PM, Mehmet Erol Sanliturk wrote: > On Sun, Apr 26, 2015 at 3:15 PM, Valeri Galtsev > wrote: > >> On Sun, April 26, 2015 4:05 pm, Fernando Apesteguía wrote: >>> On Sun, Apr 26, 2015 at 10:05 PM, Valeri Galtsev >>> wrote: >>>> On Sun, April 26, 2015 12:11 pm, Fernando Apesteguía wrote: >>>>> Hi, >>>>> >>>>> I suspect my old and beloved AMD64 laptop is suffering from bad memory >>>>> problems: I get random crashes of well tested programs like sh, which, >>>>> etc even when I executed some of them from /rescue. >>>> If RAM is a suspect the first thing I would do is re-seat memory >>>> modules. >>>> Open the box. (Observe static precautions!) Remove memory modules. >>>> Install >>>> them again. >>>> >>>> Do memtest86 (by booting into memtest86, you can have that in your boot >>>> options, or you can boot off external media as others suggested). >>>> >>>> If you still have problems: try to run with one memory module instead of >>>> two. At some point when they went to higher RAM speeds memory bus >>>> amplifier became more fragile (some chips, some manufacturers, as not it >>>> is part of CPU, this may be true only about some of the CPU models). You >>>> sometimes can slightly fry it if you merely leave laptop running on >>>> battery, letting battery run down and laptop powering off due to that. >>>> With some of chips this may lead to slightly frying it - memory >>>> controller >>>> portion of it, address bus amplifier in particular. Bus amplifier >>>> becomes >>>> slightly lower frequency, which results in poorer handling capacitive >>>> load >>>> (which is larger if you have more RAM), and it is marginally OK, >>>> occasionally having address errors. Going to one module may resolve >>>> this. >>>> You will know if this is likely the case if memtest86 is successful with >>>> each of single RAM modules, but fails (in random places, often not >>>> reproducible) with both. >>>> >>>> Good luck! >>> I booted from a memtest CD-ROM. It passed a couple of tests fine and >>> then it rebooted while doing a "bit fade" test at around 93%. Removing >>> the modules is tricky since this laptop has screws all around in dark >>> corners (even removing the battery needs a screw driver). I will try >>> to limit physical memory with hw.physmem and see if it makes any >>> difference. >> The last will not help against what I mentioned, as capacitive load on >> memory address bus is defined by what is physically attached to it. >> >> One usually runs memtest86 for 24 hours at lest. One loop will catch >> "solid defects" like adjacent line on the board connected (while they >> shouldn't). Memory related failures to the contrary are often >> intermittent. In worst case I've seen, they only manifested under intense >> load of the box (whereas memtest86 is equivalent to almost zero load). >> >> Good luck! >> >> Valeri >> >> ++++++++++++++++++++++++++++++++++++++++ >> Valeri Galtsev >> Sr System Administrator >> Department of Astronomy and Astrophysics >> Kavli Institute for Cosmological Physics >> University of Chicago >> Phone: 773-702-4247 >> ++++++++++++++++++++++++++++++++++++++++ >> > > > Failure may be in memory management circuits instead of memory chips . > To test this situation , the existing memories may be replaced by memory > chips that they known to work ( if it can be done ) . > > > Thank you very much . > > > Mehmet Ero Sanliturk One slight, and perhaps remote, possibility is that memory is a hair slower than what the memory controller expects, especially, as Valerie mentioned, under heavy memory load. On systems where the cpu clocking is unlocked, one might be able to slow down the cpu clock just slightly to see if the problem is mitigated. From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 09:34:03 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72680FD3 for ; Mon, 27 Apr 2015 09:34:03 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id D37B319C6 for ; Mon, 27 Apr 2015 09:34:01 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38653025 for freebsd-questions@freebsd.org; Mon, 27 Apr 2015 15:33:58 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3R9XusK086508 for ; Mon, 27 Apr 2015 15:33:58 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3R9XtDH086507 for freebsd-questions@freebsd.org; Mon, 27 Apr 2015 15:33:55 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Mon, 27 Apr 2015 15:33:55 +0600 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP Message-ID: <20150427093355.GA86151@admin.sibptus.tomsk.ru> References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150426123629.GA48916@admin.sibptus.tomsk.ru> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 09:34:03 -0000 Victor Sudakov wrote: > Nikos Vassiliadis wrote: > > > > > > Could you advise a solution for tunneling L2 (Ethernet) traffic over IP? > > > > > > There is a solution in bridge(4) using the EtherIP protocol, but it > > > works with untagged frames only. I need to tunnel 802.1q tagged frames > > > as well. > > > > > > Any ideas? > > > > > > > > You can do this with netgraph. Check this post: > > > > http://lists.freebsd.org/pipermail/freebsd-net/2005-October/008861.html > > > > It's a modification of the /usr/share/examples/netgraph/ether.bridge > script. How do you know that it would pass 802.1q tagged frames? It > references a "fxp0" interface which passes untagged traffic unless a > vlan(4) interface is configured on top thereof. The script does not work. It prints error messages like + LINKNUM=1 + ngctl mkpeer bnet0: ksocket link1 inet/dgram/udp + ngctl msg ng0:inet bind inet/10.14.143.136:4028 ngctl: send msg: No such file or directory + ngctl msg ng0:inet connect inet/10.14.140.125:4028 ngctl: send msg: No such file or directory + expr 1 + 1 + LINKNUM=2 and does not generate any traffic. Perhaps it needs some debugging. I am still looking for a solution, thanks in advance to all who has anything to say. In the meanwhile, I have tried bridging ethernet NICs and tap(4), and connected two tap(4) devices with net/vtun. It works, but again, only for untagged frames. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 13:56:46 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BAFCD962 for ; Mon, 27 Apr 2015 13:56:46 +0000 (UTC) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5D5E217CE for ; Mon, 27 Apr 2015 13:56:46 +0000 (UTC) Received: by widdi4 with SMTP id di4so90931641wid.0 for ; Mon, 27 Apr 2015 06:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:date:mime-version:subject:message-id:priority:content-type :content-transfer-encoding:content-description; bh=Ks/03blbh5X0kjeUDouJdYeLJQr7JyyLpiBlVBJyjcU=; b=uqxy/zFqy+jUAKVpw4xyWso3byjXmb1TOF0lwe2bTjpzSprTHQJ+44/O7IOjanpH4h 6tMyEi9yP0vqAVwSp4mjE5H0kfPfSeKzyhddxcgQM0lR/w0WJf7EYtJ75Iu0gNP1rWC8 J9Q2RSx0YcKmwltD2URDAgLSh8ywU2/7GzWAqFKHc9t2jUJYo49CZOIiDi/CJxm/DviN dMmTLk+VJiIJzi3NwcE6pQ+hgBzUsoDpQOVUWyv7va/J//nBQ0yupTjdTxr8HbZffrsP CE63Wm3urEXeq7f+nXo02Pq41/FlGo/NX6eRuzMQv8Ew+LbszPlUHhEIPbyj7vDXGMOG U3XA== X-Received: by 10.180.208.84 with SMTP id mc20mr21074492wic.38.1430143004551; Mon, 27 Apr 2015 06:56:44 -0700 (PDT) Received: from [192.168.16.97] ([217.41.35.220]) by mx.google.com with ESMTPSA id gj7sm11772667wib.4.2015.04.27.06.56.42 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 27 Apr 2015 06:56:43 -0700 (PDT) From: "Dave B" To: freebsd-questions@freebsd.org Date: Mon, 27 Apr 2015 14:56:42 +0100 MIME-Version: 1.0 Subject: Re: Debugging bad memory problems Message-ID: <553E401A.6119.163DF7C@g8kbvdave.googlemail.com> Priority: normal X-mailer: Pegasus Mail for Windows (4.62) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 13:56:46 -0000 On 26 Apr 2015 at 23:05, Fernando Apestegu=EDa wrote: > I booted from a memtest CD-ROM. It passed a couple of tests fine and > then it rebooted while doing a "bit fade" test at around 93%. > Removing the modules is tricky since this laptop has screws all > around in dark corners (even removing the battery needs a screw > driver). I will try to limit physical memory with hw.physmem and see > if it makes any difference. > > Thanks! > Check for CPU cooling problems too, such as an obstructed cooler or grumbl= y fan. (Also if you can, check for bad power supply issues.) Older AMD CPU's don't take kindly at all to running too hot, unlike some I= ntel devices that will start to cycle skipping to lower the disipation, just sl= owing down in effect. "Supliment the cooling" when running such tests, RAM can disipate quite a = bit of power when worked hard (as Memtest86 does.) Elevate the laptop and waft = air under it, but not in such a way as to oppose it's own intended airflow. Hope you find the trouble. Dave B. From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 13:57:03 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DBCC29EF for ; Mon, 27 Apr 2015 13:57:03 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6FB4117E3 for ; Mon, 27 Apr 2015 13:57:03 +0000 (UTC) Received: from moby.local ([88.65.182.178]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MN748-1Yg9xN0SRU-006jSk; Mon, 27 Apr 2015 15:57:01 +0200 Message-ID: <553E400F.2040906@gmx.com> Date: Mon, 27 Apr 2015 15:56:31 +0200 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Victor Sudakov , freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> <20150427093355.GA86151@admin.sibptus.tomsk.ru> In-Reply-To: <20150427093355.GA86151@admin.sibptus.tomsk.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:OB2iLIFXEuFsebwKDMoGeTy3CyRJKgBI1MEF3aR8N/+oP7bmm6L PfMHbVlwJskDcBybWiqHTJUJfMru4PPINUfmnsHfDVeVa5c0eBOw+sRTVS+RpvPaYaCnWIq dAZsAKi+U3eKEljIR4Qr0K+UBo1W+f4f0RzJel8CnCnxIzW/afm092NvHFViFBV9zaqFfdI t1Onq+KIy9LMQMAkaIrLA== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 13:57:03 -0000 On 04/27/15 11:33, Victor Sudakov wrote: > Victor Sudakov wrote: >> Nikos Vassiliadis wrote: >>>> >>>> Could you advise a solution for tunneling L2 (Ethernet) traffic over IP? >>>> >>>> There is a solution in bridge(4) using the EtherIP protocol, but it >>>> works with untagged frames only. I need to tunnel 802.1q tagged frames >>>> as well. >>>> >>>> Any ideas? >>>> >>>> >>> You can do this with netgraph. Check this post: >>> >>> http://lists.freebsd.org/pipermail/freebsd-net/2005-October/008861.html >>> >> >> It's a modification of the /usr/share/examples/netgraph/ether.bridge >> script. How do you know that it would pass 802.1q tagged frames? It >> references a "fxp0" interface which passes untagged traffic unless a >> vlan(4) interface is configured on top thereof. > > The script does not work. It prints error messages like > > + LINKNUM=1 > + ngctl mkpeer bnet0: ksocket link1 inet/dgram/udp > + ngctl msg ng0:inet bind inet/10.14.143.136:4028 > ngctl: send msg: No such file or directory > + ngctl msg ng0:inet connect inet/10.14.140.125:4028 > ngctl: send msg: No such file or directory > + expr 1 + 1 > + LINKNUM=2 > > and does not generate any traffic. Perhaps it needs some debugging. I > am still looking for a solution, thanks in advance to all who has > anything to say. > > In the meanwhile, I have tried bridging ethernet NICs and tap(4), and > connected two tap(4) devices with net/vtun. It works, but again, only > for untagged frames. > > Hi, I just checked and remembered that there is a sysctl that controls forwarding of non-IP traffic > sysctl net.link.bridge.pfil_onlyip > net.link.bridge.pfil_onlyip: 1 That means that only IP is allowed to be forwarded by the bridge. Change this to 0 and it will be hopefully ok. HTH, Nikos From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 14:30:48 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFEE0804 for ; Mon, 27 Apr 2015 14:30:48 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id ACCE41BD6 for ; Mon, 27 Apr 2015 14:30:48 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 7A72BCB8CA3; Mon, 27 Apr 2015 09:30:47 -0500 (CDT) Received: from 128.135.70.2 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Mon, 27 Apr 2015 09:30:47 -0500 (CDT) Message-ID: <34690.128.135.70.2.1430145047.squirrel@cosmo.uchicago.edu> In-Reply-To: <553E401A.6119.163DF7C@g8kbvdave.googlemail.com> References: <553E401A.6119.163DF7C@g8kbvdave.googlemail.com> Date: Mon, 27 Apr 2015 09:30:47 -0500 (CDT) Subject: Re: Debugging bad memory problems From: "Valeri Galtsev" To: "Dave B" Cc: freebsd-questions@freebsd.org Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 14:30:48 -0000 On Mon, April 27, 2015 8:56 am, Dave B wrote: > On 26 Apr 2015 at 23:05, Fernando Apesteguía wrote: > >> I booted from a memtest CD-ROM. It passed a couple of tests fine and >> then it rebooted while doing a "bit fade" test at around 93%. >> Removing the modules is tricky since this laptop has screws all >> around in dark corners (even removing the battery needs a screw >> driver). I will try to limit physical memory with hw.physmem and see >> if it makes any difference. >> >> Thanks! >> > > Check for CPU cooling problems too, such as an obstructed cooler or > grumbly > fan. (Also if you can, check for bad power supply issues.) > > Older AMD CPU's don't take kindly at all to running too hot, unlike some > Intel > devices that will start to cycle skipping to lower the disipation, just > slowing down > in effect. AMD might have been slightly behind Intel on this one: stepping down the clock (or diminishing clock multiplier to be more precise - "power now" they called the feature related to effectively changing the CPU speed). However, as far as I know, AMD chips were always more robust than Intel ones. You can boil water on it, and it still will keep running without glitches - as someone once put it. I do agree with your advice make sure the heat sink in not clogged: even though you will need more effort to heat AMD CPU to start on the chip memory controller failing compared to Intel CPU, still it well may be the snag. Valeri > > "Supliment the cooling" when running such tests, RAM can disipate quite a > bit of > power when worked hard (as Memtest86 does.) Elevate the laptop and waft > air > under it, but not in such a way as to oppose it's own intended airflow. > > Hope you find the trouble. > > Dave B. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++ From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 14:39:59 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7732EBFD for ; Mon, 27 Apr 2015 14:39:59 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id D855C1CF1 for ; Mon, 27 Apr 2015 14:39:57 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38653404 for freebsd-questions@freebsd.org; Mon, 27 Apr 2015 20:39:55 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3REdqZw094279 for ; Mon, 27 Apr 2015 20:39:55 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3REdqR6094278 for freebsd-questions@freebsd.org; Mon, 27 Apr 2015 20:39:52 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Mon, 27 Apr 2015 20:39:52 +0600 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP Message-ID: <20150427143952.GA94033@admin.sibptus.tomsk.ru> References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> <20150427093355.GA86151@admin.sibptus.tomsk.ru> <553E400F.2040906@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <553E400F.2040906@gmx.com> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 14:39:59 -0000 Nikos Vassiliadis wrote: [dd] > > > > In the meanwhile, I have tried bridging ethernet NICs and tap(4), and > > connected two tap(4) devices with net/vtun. It works, but again, only > > for untagged frames. > > > > > > I just checked and remembered that there is a sysctl > that controls forwarding of non-IP traffic > > > sysctl net.link.bridge.pfil_onlyip > > net.link.bridge.pfil_onlyip: 1 > > That means that only IP is allowed to be forwarded by the bridge. > Change this to 0 and it will be hopefully ok. Nikos, I have two interfaces in a bridge: # ifconfig bridge0 bridge0: flags=8843 metric 0 mtu 1500 ether 02:d7:d7:0d:ff:00 inet 10.14.133.20 netmask 0xffffffc0 broadcast 10.14.133.63 nd6 options=9 id 00:00:00:00:00:00 priority 61440 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 61440 ifcost 0 port 0 member: vr0 flags=1c3 ifmaxaddr 0 port 6 priority 128 path cost 200000 member: tap0 flags=143 ifmaxaddr 0 port 11 priority 128 path cost 2000000 # "tcpdump -i vr0 stp" sees incoming STP traffic while "tcpdump -i tap0 stp" sees none no matter if net.link.bridge.pfil_onlyip is "1" or "0". I see however some IP6, IPX (!) and CDP frames. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 16:14:18 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18D58E9C for ; Mon, 27 Apr 2015 16:14:18 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7FD01981 for ; Mon, 27 Apr 2015 16:14:17 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YmlfQ-0000nX-Vl for freebsd-questions@freebsd.org; Mon, 27 Apr 2015 18:13:57 +0200 Received: from pool-72-66-1-32.washdc.fios.verizon.net ([72.66.1.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Apr 2015 18:13:56 +0200 Received: from nightrecon by pool-72-66-1-32.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Apr 2015 18:13:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Subject: Re: Debugging bad memory problems Date: Mon, 27 Apr 2015 12:13:41 -0400 Lines: 25 Message-ID: References: <5480.69.209.235.143.1430078703.squirrel@cosmo.uchicago.edu> <5793.69.209.235.143.1430086547.squirrel@cosmo.uchicago.edu> <553D8452.9050601@gmail.com> Reply-To: nightrecon@hotmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-66-1-32.washdc.fios.verizon.net X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 16:14:18 -0000 jd1008 wrote: [snip] > One slight, and perhaps remote, possibility is that memory > is a hair slower than what the memory controller expects, > especially, as Valerie mentioned, under heavy memory load. > On systems where the cpu clocking is unlocked, one might > be able to slow down the cpu clock just slightly to see if the > problem is mitigated. Another consideration is the power supply. An aged power supply can be right on the raggedy edge ripple wise such that it seems OK when not under load. Place a load on it and the ripple shoots up. Easy to see with an oscilloscope. Not to mention the machine's behavior gets extremely erratic. If it works fine on a known good battery under battery only (pure DC), but flakes when plugged up to the AC mains... I only bring this up because I have chased my tail looking for memory problems when it turned out to be a power supply about to go south. I doubt this is his situation though. He's most likely right that it is memory. I just include this to get away from 'tunnel' vision. -Mike From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 20:20:55 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 942C255F for ; Mon, 27 Apr 2015 20:20:55 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 42CB41781 for ; Mon, 27 Apr 2015 20:20:54 +0000 (UTC) Received: from [192.168.1.35] (host86-132-232-69.range86-132.btcentralplus.com [86.132.232.69]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id t3RK2uAQ071385 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Mon, 27 Apr 2015 21:03:00 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <553E95EF.8050002@fjl.co.uk> Date: Mon, 27 Apr 2015 21:02:55 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: ipfw, natd and a server on a second WAN address Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 20:20:55 -0000 I hope someone will *know* how to do this. I can guess, but if I guess wrong there'll be consequences... The situation I have is that there's a LAN using a FreeBSD box as a router, doing asymmetric NAT between two Ethernet interfaces. There's a /29 on the WAN, but only one IP was being used. On the LAN there's a server with a few ports forwarded from the WAN IP. For various reasons I won't bore you with, I really need to make this server appear on a different IP address on the WAN. How do I achieve this? Okay, on the NATting machine we have a config like: eht0: inet 192.168.1.210 netmask 0xffffff00 broadcast 192.168.1.255 eth1: inet .210 netmask 0xfffffff8 broadcast .215 inet .211 netmask 0xffffffff broadcast .211 On ipfw we have: divert natd all from any to any via eth1 add pass all from any to any And for natd there are options like: interface eth1 redirect_port tcp 192.168.1.212:25 25 This will happily NAT most things, but anything coming in on .210 goes to port 25 on LAN machine 192.168.1.212. This is great. Anything coming in on .211 doesn't get natted at all. I thought it might, but it doesn't. Does anyone know the runes needed to make .211 port 25 pass through to 192.168.1.212? (Incidentally, this would be easy to fix if I could change some cables around, but I can't). I'm thinking that all I need to do is put in a static route manually. But when I try to figure out what exactly it would be, I get a headache. BTW, I'm specifically using natd here. If anyone knows, it'd save me a lot of stress, or a day's driving, and probably both! Thanks, Frank. From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 20:21:00 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6DFDF598 for ; Mon, 27 Apr 2015 20:21:00 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0033B1782 for ; Mon, 27 Apr 2015 20:20:59 +0000 (UTC) Received: from moby.local ([88.65.182.178]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LeNGL-1Z5gGf01a1-00qEM8 for ; Mon, 27 Apr 2015 22:20:52 +0200 Message-ID: <553E9A07.1020900@gmx.com> Date: Mon, 27 Apr 2015 22:20:23 +0200 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> <20150427093355.GA86151@admin.sibptus.tomsk.ru> <553E400F.2040906@gmx.com> <20150427143952.GA94033@admin.sibptus.tomsk.ru> In-Reply-To: <20150427143952.GA94033@admin.sibptus.tomsk.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Z7RDb/oEEDBb8BCNqMyI6ZsCjTU82MwSrhqZZagmU3K98NMWuc9 6K/ITQJNNsgas3UBfU0gTopOBFxybmRlCPGdCF60A5RJ/9P1iNAjpzyw7vKi9KLkN7wIj0l 9IbOAj4VNIzwxD79KlQe9W+yewyyVHed3Waxa9RnLF9kj8Nla9joCPJkC1MFaiss5yjqc67 8F5zjdjTOR4HYO4cZiKrA== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 20:21:00 -0000 On 04/27/15 16:39, Victor Sudakov wrote: > Nikos, > > I have two interfaces in a bridge: > > # ifconfig bridge0 > bridge0: flags=8843 metric 0 mtu 1500 > ether 02:d7:d7:0d:ff:00 > inet 10.14.133.20 netmask 0xffffffc0 broadcast 10.14.133.63 > nd6 options=9 > id 00:00:00:00:00:00 priority 61440 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 61440 ifcost 0 port 0 > member: vr0 flags=1c3 > ifmaxaddr 0 port 6 priority 128 path cost 200000 > member: tap0 flags=143 > ifmaxaddr 0 port 11 priority 128 path cost 2000000 > # > > "tcpdump -i vr0 stp" sees incoming STP traffic while "tcpdump -i tap0 stp" > sees none no matter if net.link.bridge.pfil_onlyip is "1" or "0". > > I see however some IP6, IPX (!) and CDP frames. > STP frames are not forwarded. As well as other special frames: > /* > * Check if its a reserved multicast address, any address > * listed in 802.1D section 7.12.6 may not be forwarded by the > * bridge. > * This is currently 01-80-C2-00-00-00 to 01-80-C2-00-00-0F > */ FreeBSD does that unconditionally. That could probably be a tunable:) If you have a "simple" ethernet bridge (without STP) you should forward STP frames. I guess a patch would be welcome! PS: It's better if you add my email address to your reply. I will see it fast(er). HTH, Nikos From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 21:14:02 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 367B77DD for ; Mon, 27 Apr 2015 21:14:02 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D99241E89 for ; Mon, 27 Apr 2015 21:14:01 +0000 (UTC) Received: from [192.168.1.35] (host86-132-232-69.range86-132.btcentralplus.com [86.132.232.69]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id t3RLDhQN002327 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Mon, 27 Apr 2015 22:13:47 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <553EA687.2040602@fjl.co.uk> Date: Mon, 27 Apr 2015 22:13:43 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: dig command ? References: <552001C0.6040304@gmail.com> In-Reply-To: <552001C0.6040304@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 21:14:02 -0000 On 04/04/2015 16:22, Ernie Luzar wrote: > running 10.1 and went to use the dig command and its no longer part of > the system. Why was it removed? As other's have said, this was removed (actually in 10.0) because it was compiled as part of BIND, and that was removed. You'll find nslookup has also gone, but host (which also part of BIND) is still there. BIND was considered over-kill as part of the base system, but it's still available in ports. This doesn't explain how the "host" utility escaped remained part of the base system, but dig and nslookup were dropped. I've done some historical research since I first drew attention to this, and it goes back at least as far as 4.3BSD in 1986 on a VAX, and apparently in 2.11BSD on a PDP-11. For a while ISC deprecated nslookup because it doesn't do its lookups the way some people might think it did. However, it's been around longer than dig and host, and people are used to it, so they un-deprecated it. dig, I believe, came in the middle and was also considered unworthy, in favour of the latest, greatest "host", which was dragged out of BIND and added to the base system. I've been around a while, like nslookup, and I appreciate it being there; it's even available on Windoze it's that universal! If you want nslookup or dig you DON'T have to install the whole BIND package as is often suggested; just find nslookup.c (it's in the same directory as host and dig on the ISC source bundle) and compile and copy in to /usr/bin. From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 21:19:05 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3D472A06 for ; Mon, 27 Apr 2015 21:19:05 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (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 0074C1ED8 for ; Mon, 27 Apr 2015 21:19:04 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-237.dynamic.qsc.de [92.195.64.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 877453CCE1; Mon, 27 Apr 2015 23:18:56 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t3RLItSr003315; Mon, 27 Apr 2015 23:18:55 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 27 Apr 2015 23:18:55 +0200 From: Polytropon To: Frank Leonhardt Cc: freebsd-questions@freebsd.org Subject: Re: dig command ? Message-Id: <20150427231855.ff176f66.freebsd@edvax.de> In-Reply-To: <553EA687.2040602@fjl.co.uk> References: <552001C0.6040304@gmail.com> <553EA687.2040602@fjl.co.uk> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 21:19:05 -0000 On Mon, 27 Apr 2015 22:13:43 +0100, Frank Leonhardt wrote: > On 04/04/2015 16:22, Ernie Luzar wrote: > > running 10.1 and went to use the dig command and its no longer part of > > the system. Why was it removed? > [...] > If you want > nslookup or dig you DON'T have to install the whole BIND package as is > often suggested; just find nslookup.c (it's in the same directory as > host and dig on the ISC source bundle) and compile and copy in to /usr/bin. You'll also find nslookup and dig in the port dns/bind-tools, this way you can keep it managed by pkg or your ports management tool of choice. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 22:08:07 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C6992B28 for ; Mon, 27 Apr 2015 22:08:07 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 666231504 for ; Mon, 27 Apr 2015 22:08:07 +0000 (UTC) Received: from [192.168.1.35] (host86-132-232-69.range86-132.btcentralplus.com [86.132.232.69]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id t3RM7d55013137 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Mon, 27 Apr 2015 23:07:44 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <553EB32A.6040702@fjl.co.uk> Date: Mon, 27 Apr 2015 23:07:38 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: ipfw, natd and a server on a second WAN address References: <553E95EF.8050002@fjl.co.uk> In-Reply-To: <553E95EF.8050002@fjl.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 22:08:07 -0000 On 27/04/2015 21:02, Frank Leonhardt wrote: > I hope someone will *know* how to do this. I can guess, but if I guess > wrong there'll be consequences... I've just looked at the *latest* man page, and there's a section on MULTIPLE INSTANCES that wasn't there before (it turns out it was added in release 8.0). This might be my answer, except that the -instance option was added at the same time, and the router is on 7.x :-( It does say that before -instance was added, the way to do this was running more than one natd, which I suspected anyway. From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 03:08:44 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 89EC2A5E; Tue, 28 Apr 2015 03:08:44 +0000 (UTC) Received: from BLU004-OMC4S37.hotmail.com (blu004-omc4s37.hotmail.com [65.55.111.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5481E15A0; Tue, 28 Apr 2015 03:08:43 +0000 (UTC) Received: from BLU436-SMTP7 ([65.55.111.137]) by BLU004-OMC4S37.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Mon, 27 Apr 2015 20:07:37 -0700 X-TMN: [bDAtZhKjCIzg0PLGXMxjq3/EdPdYVzac] X-Originating-Email: [carmel_ny@outlook.com] Message-ID: Date: Mon, 27 Apr 2015 23:07:31 -0400 From: Carmel NY To: FreeBSD FreeBSD , gnome@FreeBSD.org Subject: unaqble to build www/webkit-gtk2 Organization: seibercom NET X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 28 Apr 2015 03:07:36.0626 (UTC) FILETIME=[7A871120:01D08160] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 03:08:44 -0000 I have been unable to build th "www/webkit-gtk2" port. It always ends with this error message: CXX Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o CXX Source/WTF/wtf/libWTF_la-Assertions.lo CXX Source/WTF/wtf/libWTF_la-Atomics.lo CXX Source/WTF/wtf/libWTF_la-BitVector.lo CXX Source/WTF/wtf/libWTF_la-CompilationThread.lo CXX Source/WTF/wtf/libWTF_la-Compression.lo CXX Source/WTF/wtf/libWTF_la-CryptographicallyRandomNumber.lo CXX Source/WTF/wtf/libWTF_la-CurrentTime.lo CXX Source/WTF/wtf/libWTF_la-DataLog.lo CXX Source/WTF/wtf/libWTF_la-DateMath.lo CXX Source/WTF/wtf/libWTF_la-DecimalNumber.lo CXX Source/WTF/wtf/libWTF_la-DynamicAnnotations.lo CXX Source/WTF/wtf/libWTF_la-FastBitVector.lo CXX Source/WTF/wtf/libWTF_la-FastMalloc.lo CXX Source/WTF/wtf/libWTF_la-FilePrintStream.lo CXX Source/WTF/wtf/libWTF_la-FunctionDispatcher.lo CXX Source/WTF/wtf/libWTF_la-GregorianDateTime.lo CXX Source/WTF/wtf/libWTF_la-HashTable.lo CXX Source/WTF/wtf/libWTF_la-MD5.lo CXX Source/WTF/wtf/libWTF_la-MainThread.lo CXX Source/WTF/wtf/libWTF_la-MediaTime.lo CXX Source/WTF/wtf/libWTF_la-MetaAllocator.lo CXX Source/WTF/wtf/libWTF_la-NumberOfCores.lo CXX Source/WTF/wtf/libWTF_la-RAMSize.lo CXX Source/WTF/wtf/libWTF_la-OSAllocatorPosix.lo CXX Source/WTF/wtf/libWTF_la-OSAllocatorWin.lo CXX Source/WTF/wtf/libWTF_la-OSRandomSource.lo CXX Source/WTF/wtf/libWTF_la-PageAllocationAligned.lo CXX Source/WTF/wtf/libWTF_la-PageBlock.lo CXX Source/WTF/wtf/libWTF_la-ParallelJobsGeneric.lo CXX Source/WTF/wtf/libWTF_la-PrintStream.lo CXX Source/WTF/wtf/libWTF_la-RandomNumber.lo CXX Source/WTF/wtf/libWTF_la-RefCountedLeakCounter.lo CXX Source/WTF/wtf/libWTF_la-RunLoop.lo CXX Source/WTF/wtf/libWTF_la-SHA1.lo CXX Source/WTF/wtf/libWTF_la-SixCharacterHash.lo CXX Source/WTF/wtf/libWTF_la-StackBounds.lo CXX Source/WTF/wtf/libWTF_la-StringPrintStream.lo CXX Source/WTF/wtf/libWTF_la-TCSystemAlloc.lo CXX Source/WTF/wtf/libWTF_la-ThreadIdentifierDataPthreads.lo CXX Source/WTF/wtf/libWTF_la-ThreadSpecificWin.lo CXX Source/WTF/wtf/libWTF_la-Threading.lo CXX Source/WTF/wtf/libWTF_la-ThreadingPthreads.lo CXX Source/WTF/wtf/libWTF_la-ThreadingWin.lo CXX Source/WTF/wtf/libWTF_la-WTFThreadData.lo CXX Source/WTF/wtf/libWTF_la-dtoa.lo CXX Source/WTF/wtf/dtoa/libWTF_la-bignum-dtoa.lo CXX Source/WTF/wtf/dtoa/libWTF_la-bignum.lo CXX Source/WTF/wtf/dtoa/libWTF_la-cached-powers.lo CXX Source/WTF/wtf/dtoa/libWTF_la-diy-fp.lo CXX Source/WTF/wtf/dtoa/libWTF_la-double-conversion.lo CXX Source/WTF/wtf/dtoa/libWTF_la-fast-dtoa.lo CXX Source/WTF/wtf/dtoa/libWTF_la-fixed-dtoa.lo CXX Source/WTF/wtf/dtoa/libWTF_la-strtod.lo CXX Source/WTF/wtf/gobject/libWTF_la-GRefPtr.lo CXX Source/WTF/wtf/gobject/libWTF_la-GlibUtilities.lo CXX Source/WTF/wtf/gtk/libWTF_la-MainThreadGtk.lo CXX Source/WTF/wtf/gtk/libWTF_la-RunLoopGtk.lo CXX Source/WTF/wtf/text/libWTF_la-AtomicString.lo CXX Source/WTF/wtf/text/libWTF_la-AtomicStringTable.lo CXX Source/WTF/wtf/text/libWTF_la-Base64.lo CXX Source/WTF/wtf/text/libWTF_la-CString.lo CXX Source/WTF/wtf/text/libWTF_la-StringBuilder.lo CXX Source/WTF/wtf/text/libWTF_la-StringImpl.lo CXX Source/WTF/wtf/text/libWTF_la-StringStatics.lo CXX Source/WTF/wtf/text/libWTF_la-WTFString.lo CXX Source/WTF/wtf/threads/libWTF_la-BinarySemaphore.lo CXX Source/WTF/wtf/unicode/libWTF_la-CollatorDefault.lo CXX Source/WTF/wtf/unicode/libWTF_la-UTF8.lo CXX Source/WTF/wtf/unicode/icu/libWTF_la-CollatorICU.lo CXXLD libWTF.la CXXLD Programs/LLIntOffsetsExtractor /usr/bin/ld:./.libs/libWTF.a: file format not recognized; treating as linker script /usr/bin/ld:./.libs/libWTF.a:1: syntax error c++: error: linker command failed with exit code 1 (use -v to see invocation) GNUmakefile:40539: recipe for target 'Programs/LLIntOffsetsExtractor' failed gmake[1]: *** [Programs/LLIntOffsetsExtractor] Error 1 gmake[1]: Leaving directory '/usr/ports/www/webkit-gtk2/work/webkitgtk-2.4.8' *** Error code 1 Stop. make: stopped in /usr/ports/www/webkit-gtk2 Does anyone have any idea what the problem is? Thanks! From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 03:40:56 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 509E8F67 for ; Tue, 28 Apr 2015 03:40:56 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id B11FC1907 for ; Tue, 28 Apr 2015 03:40:55 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38654001; Tue, 28 Apr 2015 09:40:53 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3S3em1J005170; Tue, 28 Apr 2015 09:40:52 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3S3emY8005169; Tue, 28 Apr 2015 09:40:48 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Tue, 28 Apr 2015 09:40:48 +0600 From: Victor Sudakov To: Nikos Vassiliadis , freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP Message-ID: <20150428034047.GA4874@admin.sibptus.tomsk.ru> References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> <20150427093355.GA86151@admin.sibptus.tomsk.ru> <553E400F.2040906@gmx.com> <20150427143952.GA94033@admin.sibptus.tomsk.ru> <553E9A07.1020900@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <553E9A07.1020900@gmx.com> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 03:40:56 -0000 Nikos Vassiliadis wrote: > > I have two interfaces in a bridge: > > > > # ifconfig bridge0 > > bridge0: flags=8843 metric 0 mtu 1500 > > ether 02:d7:d7:0d:ff:00 > > inet 10.14.133.20 netmask 0xffffffc0 broadcast 10.14.133.63 > > nd6 options=9 > > id 00:00:00:00:00:00 priority 61440 hellotime 2 fwddelay 15 > > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > > root id 00:00:00:00:00:00 priority 61440 ifcost 0 port 0 > > member: vr0 flags=1c3 > > ifmaxaddr 0 port 6 priority 128 path cost 200000 > > member: tap0 flags=143 > > ifmaxaddr 0 port 11 priority 128 path cost 2000000 > > # > > > > "tcpdump -i vr0 stp" sees incoming STP traffic while "tcpdump -i tap0 stp" > > sees none no matter if net.link.bridge.pfil_onlyip is "1" or "0". > > > > I see however some IP6, IPX (!) and CDP frames. > > > > STP frames are not forwarded. As well as other special frames: > > > /* > > * Check if its a reserved multicast address, any address > > * listed in 802.1D section 7.12.6 may not be forwarded by the > > * bridge. > > * This is currently 01-80-C2-00-00-00 to 01-80-C2-00-00-0F > > */ > > FreeBSD does that unconditionally. That could probably be a tunable:) > If you have a "simple" ethernet bridge (without STP) you should > forward STP frames. I guess a patch would be welcome! That's from src/sys/net/if_bridge.c Fine. Maybe there are other ways to tunnel Ethernet without relying on if_bridge ? Besides, I also need to tunnel 802.1q tagged frames, so if_bridge is unsuitable anyway. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 07:15:12 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0F71F3E6; Tue, 28 Apr 2015 07:15:12 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A5BA91009; Tue, 28 Apr 2015 07:15:11 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.9/8.14.9) with ESMTP id t3S7F3R1060271 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 28 Apr 2015 09:15:03 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.9/8.14.9/Submit) with ESMTP id t3S7F3uA060268; Tue, 28 Apr 2015 09:15:03 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 28 Apr 2015 09:15:03 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Carmel NY cc: FreeBSD FreeBSD , gnome@FreeBSD.org Subject: Re: unaqble to build www/webkit-gtk2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 07:15:12 -0000 On Mon, 27 Apr 2015 23:07-0400, Carmel NY wrote: > I have been unable to build th "www/webkit-gtk2" port. It always ends with > this error message: > > CXX Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o > CXX Source/WTF/wtf/libWTF_la-Assertions.lo > CXX Source/WTF/wtf/libWTF_la-Atomics.lo > CXX Source/WTF/wtf/libWTF_la-BitVector.lo > CXX Source/WTF/wtf/libWTF_la-CompilationThread.lo > CXX Source/WTF/wtf/libWTF_la-Compression.lo > CXX Source/WTF/wtf/libWTF_la-CryptographicallyRandomNumber.lo > CXX Source/WTF/wtf/libWTF_la-CurrentTime.lo > CXX Source/WTF/wtf/libWTF_la-DataLog.lo > CXX Source/WTF/wtf/libWTF_la-DateMath.lo > CXX Source/WTF/wtf/libWTF_la-DecimalNumber.lo > CXX Source/WTF/wtf/libWTF_la-DynamicAnnotations.lo > CXX Source/WTF/wtf/libWTF_la-FastBitVector.lo > CXX Source/WTF/wtf/libWTF_la-FastMalloc.lo > CXX Source/WTF/wtf/libWTF_la-FilePrintStream.lo > CXX Source/WTF/wtf/libWTF_la-FunctionDispatcher.lo > CXX Source/WTF/wtf/libWTF_la-GregorianDateTime.lo > CXX Source/WTF/wtf/libWTF_la-HashTable.lo > CXX Source/WTF/wtf/libWTF_la-MD5.lo > CXX Source/WTF/wtf/libWTF_la-MainThread.lo > CXX Source/WTF/wtf/libWTF_la-MediaTime.lo > CXX Source/WTF/wtf/libWTF_la-MetaAllocator.lo > CXX Source/WTF/wtf/libWTF_la-NumberOfCores.lo > CXX Source/WTF/wtf/libWTF_la-RAMSize.lo > CXX Source/WTF/wtf/libWTF_la-OSAllocatorPosix.lo > CXX Source/WTF/wtf/libWTF_la-OSAllocatorWin.lo > CXX Source/WTF/wtf/libWTF_la-OSRandomSource.lo > CXX Source/WTF/wtf/libWTF_la-PageAllocationAligned.lo > CXX Source/WTF/wtf/libWTF_la-PageBlock.lo > CXX Source/WTF/wtf/libWTF_la-ParallelJobsGeneric.lo > CXX Source/WTF/wtf/libWTF_la-PrintStream.lo > CXX Source/WTF/wtf/libWTF_la-RandomNumber.lo > CXX Source/WTF/wtf/libWTF_la-RefCountedLeakCounter.lo > CXX Source/WTF/wtf/libWTF_la-RunLoop.lo > CXX Source/WTF/wtf/libWTF_la-SHA1.lo > CXX Source/WTF/wtf/libWTF_la-SixCharacterHash.lo > CXX Source/WTF/wtf/libWTF_la-StackBounds.lo > CXX Source/WTF/wtf/libWTF_la-StringPrintStream.lo > CXX Source/WTF/wtf/libWTF_la-TCSystemAlloc.lo > CXX Source/WTF/wtf/libWTF_la-ThreadIdentifierDataPthreads.lo > CXX Source/WTF/wtf/libWTF_la-ThreadSpecificWin.lo > CXX Source/WTF/wtf/libWTF_la-Threading.lo > CXX Source/WTF/wtf/libWTF_la-ThreadingPthreads.lo > CXX Source/WTF/wtf/libWTF_la-ThreadingWin.lo > CXX Source/WTF/wtf/libWTF_la-WTFThreadData.lo > CXX Source/WTF/wtf/libWTF_la-dtoa.lo > CXX Source/WTF/wtf/dtoa/libWTF_la-bignum-dtoa.lo > CXX Source/WTF/wtf/dtoa/libWTF_la-bignum.lo > CXX Source/WTF/wtf/dtoa/libWTF_la-cached-powers.lo > CXX Source/WTF/wtf/dtoa/libWTF_la-diy-fp.lo > CXX Source/WTF/wtf/dtoa/libWTF_la-double-conversion.lo > CXX Source/WTF/wtf/dtoa/libWTF_la-fast-dtoa.lo > CXX Source/WTF/wtf/dtoa/libWTF_la-fixed-dtoa.lo > CXX Source/WTF/wtf/dtoa/libWTF_la-strtod.lo > CXX Source/WTF/wtf/gobject/libWTF_la-GRefPtr.lo > CXX Source/WTF/wtf/gobject/libWTF_la-GlibUtilities.lo > CXX Source/WTF/wtf/gtk/libWTF_la-MainThreadGtk.lo > CXX Source/WTF/wtf/gtk/libWTF_la-RunLoopGtk.lo > CXX Source/WTF/wtf/text/libWTF_la-AtomicString.lo > CXX Source/WTF/wtf/text/libWTF_la-AtomicStringTable.lo > CXX Source/WTF/wtf/text/libWTF_la-Base64.lo > CXX Source/WTF/wtf/text/libWTF_la-CString.lo > CXX Source/WTF/wtf/text/libWTF_la-StringBuilder.lo > CXX Source/WTF/wtf/text/libWTF_la-StringImpl.lo > CXX Source/WTF/wtf/text/libWTF_la-StringStatics.lo > CXX Source/WTF/wtf/text/libWTF_la-WTFString.lo > CXX Source/WTF/wtf/threads/libWTF_la-BinarySemaphore.lo > CXX Source/WTF/wtf/unicode/libWTF_la-CollatorDefault.lo > CXX Source/WTF/wtf/unicode/libWTF_la-UTF8.lo > CXX Source/WTF/wtf/unicode/icu/libWTF_la-CollatorICU.lo > CXXLD libWTF.la > CXXLD Programs/LLIntOffsetsExtractor > /usr/bin/ld:./.libs/libWTF.a: file format not recognized; treating as linker script > /usr/bin/ld:./.libs/libWTF.a:1: syntax error > c++: error: linker command failed with exit code 1 (use -v to see invocation) > GNUmakefile:40539: recipe for target 'Programs/LLIntOffsetsExtractor' failed > gmake[1]: *** [Programs/LLIntOffsetsExtractor] Error 1 > gmake[1]: Leaving directory '/usr/ports/www/webkit-gtk2/work/webkitgtk-2.4.8' > *** Error code 1 > > Stop. > make: stopped in /usr/ports/www/webkit-gtk2 > > Does anyone have any idea what the problem is? > > Thanks! If memory serves me correct, I had to create a Makefile.local containing: USE_GCC=any -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 08:40:02 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E93B2AF8 for ; Tue, 28 Apr 2015 08:40:02 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 716681A4F for ; Tue, 28 Apr 2015 08:40:01 +0000 (UTC) Received: from [192.168.1.35] (host86-132-232-69.range86-132.btcentralplus.com [86.132.232.69]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id t3S8dh6Z097715 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Tue, 28 Apr 2015 09:39:47 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <553F474E.7070207@fjl.co.uk> Date: Tue, 28 Apr 2015 09:39:42 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: ipfw, natd and a server on a second WAN address References: <553E95EF.8050002@fjl.co.uk> <553EB32A.6040702@fjl.co.uk> In-Reply-To: <553EB32A.6040702@fjl.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 08:40:03 -0000 On 27/04/2015 23:07, Frank Leonhardt wrote: > On 27/04/2015 21:02, Frank Leonhardt wrote: >> I hope someone will *know* how to do this. I can guess, but if I >> guess wrong there'll be consequences... > > I've just looked at the *latest* man page, and there's a section on > MULTIPLE INSTANCES that wasn't there before (it turns out it was added > in release 8.0). This might be my answer, except that the -instance > option was added at the same time, and the router is on 7.x :-( > > It does say that before -instance was added, the way to do this was > running more than one natd, which I suspected anyway. > There's also a natd option called "redirect_address" that's very simple and seems to do what I need just fine. For some reason I couldn't find it written up so took a punt, and for once :-) it does what you hope it will. From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 10:34:14 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 306B2F3A for ; Tue, 28 Apr 2015 10:34:14 +0000 (UTC) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7BCE1869 for ; Tue, 28 Apr 2015 10:34:13 +0000 (UTC) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.home.qeng-ho.org (8.14.9/8.14.7) with ESMTP id t3SAY132068306; Tue, 28 Apr 2015 11:34:01 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Message-ID: <553F6219.40701@qeng-ho.org> Date: Tue, 28 Apr 2015 11:34:01 +0100 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Frank Leonhardt , freebsd-questions@freebsd.org Subject: Re: dig command ? References: <552001C0.6040304@gmail.com> <553EA687.2040602@fjl.co.uk> In-Reply-To: <553EA687.2040602@fjl.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 10:34:14 -0000 On 27/04/2015 22:13, Frank Leonhardt wrote: > On 04/04/2015 16:22, Ernie Luzar wrote: >> running 10.1 and went to use the dig command and its no longer part of >> the system. Why was it removed? > > As other's have said, this was removed (actually in 10.0) because it was > compiled as part of BIND, and that was removed. You'll find nslookup has > also gone, but host (which also part of BIND) is still there. > > BIND was considered over-kill as part of the base system, but it's still > available in ports. This doesn't explain how the "host" utility escaped > remained part of the base system, It didn't. What we've got now is a clone of host supplied by the unbound software. No, I've no idea why they didn't clone nslookup and dig as well. :-( -- Those who do not learn from computing history are doomed to GOTO 1 From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 10:43:30 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 683DF15F for ; Tue, 28 Apr 2015 10:43:30 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id C88CD19CA for ; Tue, 28 Apr 2015 10:43:29 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38654988; Tue, 28 Apr 2015 16:43:27 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3SAhO9i021494; Tue, 28 Apr 2015 16:43:24 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3SAhOj0021493; Tue, 28 Apr 2015 16:43:24 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Tue, 28 Apr 2015 16:43:24 +0600 From: Victor Sudakov To: freebsd-questions@freebsd.org, Nikos Vassiliadis Subject: Re: tunneling L2 tagged traffic over IP Message-ID: <20150428104324.GA21238@admin.sibptus.tomsk.ru> References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> <20150427093355.GA86151@admin.sibptus.tomsk.ru> <553E400F.2040906@gmx.com> <20150427143952.GA94033@admin.sibptus.tomsk.ru> <553E9A07.1020900@gmx.com> <20150428034047.GA4874@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150428034047.GA4874@admin.sibptus.tomsk.ru> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 10:43:30 -0000 Victor Sudakov wrote: > > > > STP frames are not forwarded. As well as other special frames: > > > > > /* > > > * Check if its a reserved multicast address, any address > > > * listed in 802.1D section 7.12.6 may not be forwarded by the > > > * bridge. > > > * This is currently 01-80-C2-00-00-00 to 01-80-C2-00-00-0F > > > */ > > > > FreeBSD does that unconditionally. That could probably be a tunable:) > > If you have a "simple" ethernet bridge (without STP) you should > > forward STP frames. I guess a patch would be welcome! > > That's from src/sys/net/if_bridge.c > > Fine. Maybe there are other ways to tunnel Ethernet without relying on > if_bridge ? > > Besides, I also need to tunnel 802.1q tagged frames, so if_bridge is > unsuitable anyway. I have tried a very simple netgraph configuration: connect re0: tap0: lower lower connect re0: tap0: orphans orphans Result: STP frames are being passed successfully from re0 to tap0, 802.1q tagged frames are not. How very sad. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 10:56:38 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE96276E for ; Tue, 28 Apr 2015 10:56:38 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5D0CB1B2A for ; Tue, 28 Apr 2015 10:56:38 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t3SAuOdk058826 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 28 Apr 2015 11:56:31 +0100 (BST) (envelope-from matthew@freebsd.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=freebsd.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t3SAuOdk058826 Authentication-Results: smtp.infracaninophile.co.uk/t3SAuOdk058826; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <553F6757.50801@freebsd.org> Date: Tue, 28 Apr 2015 11:56:23 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: dig command ? References: <552001C0.6040304@gmail.com> <553EA687.2040602@fjl.co.uk> <553F6219.40701@qeng-ho.org> In-Reply-To: <553F6219.40701@qeng-ho.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="63WdPOFQhG4q9aNIKNG2cw5Llkt8C0WH7" X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 10:56:39 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --63WdPOFQhG4q9aNIKNG2cw5Llkt8C0WH7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/28/15 11:34, Arthur Chance wrote: > It didn't. What we've got now is a clone of host supplied by the unboun= d > software. >=20 > No, I've no idea why they didn't clone nslookup and dig as well. :-( Because cloning host(1) is easy. Cloning nslookup(1) -- replicating its peculiar behaviour with the reasonably sane tools bundled with unbound(8) -- is hard, and not worth it for a program that is in any case deprecated. Cloning dig(1) is not so hard, so long as you stick to basic operations. In fact, there is a dig-alike that comes with unbound: drill(1). However, when you get down to the niggling details, dig and drill behave significantly differently. In some limited areas, drill is superior, but generally dig allows exceedingly fine-grained control over generating DNS queries and displaying the results. Basically, if drill(1) doesn't cut it for you and you want dig(1) specifically, then install bind-tools. Cheers, Matthew --63WdPOFQhG4q9aNIKNG2cw5Llkt8C0WH7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVP2dXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnuFcP/Aw29jY+jZZNe0G2bQQ0RZ9o fSr6gJXW64O9ev0Bqq7rusG8XEjz7n9TANwyL20LvTBjCCgBdgQEt/l4T5/QzOKn mYyFc3GgtMoyJA9U+Lz+SSb5dp/trDp6MzmaEuh5UhFaTmkhx6BZvm0LBh5ymQ0/ IudzqJFNS9OMBRQapXEXnpkq5K/0CdKPuykb3fwgGmzb5zkrrk4f3cdaUiRsqxSb 2tAyDERXc+RqYTUWH6obZEQko6CwUdspZ+w0wHhL3uoPf4w+llh1Yp0X0dmWTIEj VV4yYFL9CukqjToutH1wZ4CocvZHlg09TOtq5ZnseqZwSOBQUXoiKScV6V+1rhh3 GBflP2oXOvl5cYkM2frDWCid66LCgm/nXDVApgfQ+9bVDEReZwhajvbLSpiQSmzN kWy+gZmrIBb1CL/qSuprSN3B9MD+SjpYaUpiOstQ/OVm0xFtplK51JQMtPUfKwuS SjZNUSRQoiFeYXEk4yM6pRrEirQzqI7UwYtUQJ+WktpiXneZ4S4DRkVaRl4oaoS8 kw6QfPTlX3lj0z/+KNrrHYx4yCHmF8/9+XIAWXpd1fNCsySv9YbBUC5m5ShvigWa atzTHwLFiDTR0CD8s/Dy7VjoLhOciKOawNrOOjCCFGtlK1p5qJcykCkjki26dEaH GAwmvZcIFCb3o5cds7Ek =OMPh -----END PGP SIGNATURE----- --63WdPOFQhG4q9aNIKNG2cw5Llkt8C0WH7-- From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 11:05:54 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AFAB3D04 for ; Tue, 28 Apr 2015 11:05:54 +0000 (UTC) Received: from BLU004-OMC4S2.hotmail.com (blu004-omc4s2.hotmail.com [65.55.111.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 533D01C5E for ; Tue, 28 Apr 2015 11:05:53 +0000 (UTC) Received: from BLU437-SMTP106 ([65.55.111.135]) by BLU004-OMC4S2.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 28 Apr 2015 04:04:47 -0700 X-TMN: [hK0e3/bjfL+4YbaUEBytX6GD0G47dbTq] X-Originating-Email: [carmel_ny@outlook.com] Message-ID: Date: Tue, 28 Apr 2015 07:04:45 -0400 From: Carmel NY To: FreeBSD FreeBSD Subject: Re: unable to build www/webkit-gtk2 In-Reply-To: References: Organization: seibercom NET X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 28 Apr 2015 11:04:46.0818 (UTC) FILETIME=[2373AC20:01D081A3] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 11:05:54 -0000 On Tue=2C 28 Apr 2015 09:15:03 +0200 (CEST)=2C Trond Endrest=C3=B8l stated: > If memory serves me correct=2C I had to create a Makefile.local=20 > containing: >=20 > USE_GCC=3Dany I am sorry=2C but I do not understand what that means. From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 11:07:09 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 09CD2D98 for ; Tue, 28 Apr 2015 11:07:09 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F0AA1C7E for ; Tue, 28 Apr 2015 11:07:08 +0000 (UTC) Received: from moby.local ([82.83.187.179]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0M5HZD-1ZVPKJ2NVH-00zWts; Tue, 28 Apr 2015 13:06:32 +0200 Message-ID: <553F699C.9030409@gmx.com> Date: Tue, 28 Apr 2015 13:06:04 +0200 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Victor Sudakov , freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> <20150427093355.GA86151@admin.sibptus.tomsk.ru> <553E400F.2040906@gmx.com> <20150427143952.GA94033@admin.sibptus.tomsk.ru> <553E9A07.1020900@gmx.com> <20150428034047.GA4874@admin.sibptus.tomsk.ru> In-Reply-To: <20150428034047.GA4874@admin.sibptus.tomsk.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:yL2o9Fki7KeSVb3OF05yVIzqH9Tnv/GdV2ZUX9wKdbVhjEZ+V17 RFBxUtsqRCsU6eKjGfHL8oauoKM8vgLtcFabt9JGkjn1SUTYZtX/32dWBfCFgKX0pvzCDZm 6wbKXmdo7uM/Sw0FVSAgZ7VnpL6b4m1cQl2l3PKGwVBD5xFZAXzh1dabe5tXOm3f0Noza10 XVRaZqMIpfvklCWh6UV5Q== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 11:07:09 -0000 On 04/28/15 05:40, Victor Sudakov wrote: > Fine. Maybe there are other ways to tunnel Ethernet without relying on > if_bridge ? Then there is netgraph bridging, netgraph bridging AFAIK doesn't have this feature, it doesn't filter out special MACs. You can ask at net@ for a script/help I believe. > Besides, I also need to tunnel 802.1q tagged frames, so if_bridge is > unsuitable anyway. > I already tried 802.1q over bridge and gif and 802.1q frames are definitely forwarded. Could you send more info? Nikos From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 11:32:12 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E16BF244 for ; Tue, 28 Apr 2015 11:32:11 +0000 (UTC) Received: from BLU004-OMC4S9.hotmail.com (blu004-omc4s9.hotmail.com [65.55.111.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AC2F41F98 for ; Tue, 28 Apr 2015 11:32:11 +0000 (UTC) Received: from BLU436-SMTP71 ([65.55.111.137]) by BLU004-OMC4S9.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 28 Apr 2015 04:31:04 -0700 X-TMN: [7QsLsYLYGZn6NFQ20aMFDecVhVwBdCf3] X-Originating-Email: [carmel_ny@outlook.com] Message-ID: Date: Tue, 28 Apr 2015 07:31:02 -0400 From: Carmel NY To: FreeBSD FreeBSD Subject: Re: unable to build www/webkit-gtk2 In-Reply-To: References: Organization: seibercom NET X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 28 Apr 2015 11:31:03.0160 (UTC) FILETIME=[CF065F80:01D081A6] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 11:32:12 -0000 On Tue=2C 28 Apr 2015 09:15:03 +0200 (CEST)=2C Trond Endrest=C3=B8l stated: > On Mon=2C 27 Apr 2015 23:07-0400=2C Carmel NY wrote: >=20 > > I have been unable to build th "www/webkit-gtk2" port. It always ends w= ith > > this error message: > >=20 > > CXX > > Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsets= Extractor.o > > CXX Source/WTF/wtf/libWTF_la-Assertions.lo CXX > > Source/WTF/wtf/libWTF_la-Atomics.lo CXX > > Source/WTF/wtf/libWTF_la-BitVector.lo CXX > > Source/WTF/wtf/libWTF_la-CompilationThread.lo CXX > > Source/WTF/wtf/libWTF_la-Compression.lo CXX > > Source/WTF/wtf/libWTF_la-CryptographicallyRandomNumber.lo CXX > > Source/WTF/wtf/libWTF_la-CurrentTime.lo CXX > > Source/WTF/wtf/libWTF_la-DataLog.lo CXX > > Source/WTF/wtf/libWTF_la-DateMath.lo CXX > > Source/WTF/wtf/libWTF_la-DecimalNumber.lo CXX > > Source/WTF/wtf/libWTF_la-DynamicAnnotations.lo CXX > > Source/WTF/wtf/libWTF_la-FastBitVector.lo CXX > > Source/WTF/wtf/libWTF_la-FastMalloc.lo CXX > > Source/WTF/wtf/libWTF_la-FilePrintStream.lo CXX > > Source/WTF/wtf/libWTF_la-FunctionDispatcher.lo CXX > > Source/WTF/wtf/libWTF_la-GregorianDateTime.lo CXX > > Source/WTF/wtf/libWTF_la-HashTable.lo CXX > > Source/WTF/wtf/libWTF_la-MD5.lo CXX > > Source/WTF/wtf/libWTF_la-MainThread.lo CXX > > Source/WTF/wtf/libWTF_la-MediaTime.lo CXX > > Source/WTF/wtf/libWTF_la-MetaAllocator.lo CXX > > Source/WTF/wtf/libWTF_la-NumberOfCores.lo CXX > > Source/WTF/wtf/libWTF_la-RAMSize.lo CXX > > Source/WTF/wtf/libWTF_la-OSAllocatorPosix.lo CXX > > Source/WTF/wtf/libWTF_la-OSAllocatorWin.lo CXX > > Source/WTF/wtf/libWTF_la-OSRandomSource.lo CXX > > Source/WTF/wtf/libWTF_la-PageAllocationAligned.lo CXX > > Source/WTF/wtf/libWTF_la-PageBlock.lo CXX > > Source/WTF/wtf/libWTF_la-ParallelJobsGeneric.lo CXX > > Source/WTF/wtf/libWTF_la-PrintStream.lo CXX > > Source/WTF/wtf/libWTF_la-RandomNumber.lo CXX > > Source/WTF/wtf/libWTF_la-RefCountedLeakCounter.lo CXX > > Source/WTF/wtf/libWTF_la-RunLoop.lo CXX > > Source/WTF/wtf/libWTF_la-SHA1.lo CXX > > Source/WTF/wtf/libWTF_la-SixCharacterHash.lo CXX > > Source/WTF/wtf/libWTF_la-StackBounds.lo CXX > > Source/WTF/wtf/libWTF_la-StringPrintStream.lo CXX > > Source/WTF/wtf/libWTF_la-TCSystemAlloc.lo CXX > > Source/WTF/wtf/libWTF_la-ThreadIdentifierDataPthreads.lo CXX > > Source/WTF/wtf/libWTF_la-ThreadSpecificWin.lo CXX > > Source/WTF/wtf/libWTF_la-Threading.lo CXX > > Source/WTF/wtf/libWTF_la-ThreadingPthreads.lo CXX > > Source/WTF/wtf/libWTF_la-ThreadingWin.lo CXX > > Source/WTF/wtf/libWTF_la-WTFThreadData.lo CXX > > Source/WTF/wtf/libWTF_la-dtoa.lo CXX > > Source/WTF/wtf/dtoa/libWTF_la-bignum-dtoa.lo CXX > > Source/WTF/wtf/dtoa/libWTF_la-bignum.lo CXX > > Source/WTF/wtf/dtoa/libWTF_la-cached-powers.lo CXX > > Source/WTF/wtf/dtoa/libWTF_la-diy-fp.lo CXX > > Source/WTF/wtf/dtoa/libWTF_la-double-conversion.lo CXX > > Source/WTF/wtf/dtoa/libWTF_la-fast-dtoa.lo CXX > > Source/WTF/wtf/dtoa/libWTF_la-fixed-dtoa.lo CXX > > Source/WTF/wtf/dtoa/libWTF_la-strtod.lo CXX > > Source/WTF/wtf/gobject/libWTF_la-GRefPtr.lo CXX > > Source/WTF/wtf/gobject/libWTF_la-GlibUtilities.lo CXX > > Source/WTF/wtf/gtk/libWTF_la-MainThreadGtk.lo CXX > > Source/WTF/wtf/gtk/libWTF_la-RunLoopGtk.lo CXX > > Source/WTF/wtf/text/libWTF_la-AtomicString.lo CXX > > Source/WTF/wtf/text/libWTF_la-AtomicStringTable.lo CXX > > Source/WTF/wtf/text/libWTF_la-Base64.lo CXXconfigure: error: Compiler G= CC > > >=3D 4.7 or Clang >=3D 3.3 is required for C++ compilation configure: error: Compiler GCC >=3D 4.7 or Clang >=3D 3.3 is required for C= ++ compilation F/wtf/text/libWTF_la-CStrFreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > > Source/WTF/wtf/text/libWTF_la-StringBuilder.lo CXX > > Source/WTF/wtf/text/libWTF_la-StringImpl.lo CXX > > Source/WTF/wtf/text/libWTF_la-StringStatics.lo CXX > > Source/WTF/wtf/text/libWTF_la-WTFString.lo CXX > > Source/WTF/wtf/threads/libWTF_la-BinarySemaphore.lo CXX > > Source/WTF/wtf/unicode/libWTF_la-CollatorDefault.lo CXX > > Source/WTF/wtf/unicode/libWTF_la-UTF8.lo CXX > > Source/WTF/wtf/unicode/icu/libWTF_la-CollatorICU.lo CXXLD libWTF.la > > CXXLD Programs/LLIntOffsetsExtractor > > /usr/bin/ld:./.libs/libWTF.a: file format not recognized=3B treating as > > linker script /usr/bin/ld:./.libs/libWTF.a:1: syntax error > > c++: error: linker command failed with exit code 1 (use -v to see > > invocation) GNUmakefile:40539: recipe for target > > 'Programs/LLIntOffsetsExtractor' failed gmake[1]: *** > > [Programs/LLIntOffsetsExtractor] Error 1 gmake[1]: Leaving directory > > '/usr/ports/www/webkit-gtk2/work/webkitgtk-2.4.8' *** Error code 1 > >=20 > > Stop. > > make: stopped in /usr/ports/www/webkit-gtk2 > >=20 > > Does anyone have any idea what the problem is? > >=20 > > Thanks! >=20 > If memory serves me correct=2C I had to create a Makefile.local=20 > containing: >=20 > USE_GCC=3Dany OKay=2C that fails too. configure: error: Compiler GCC >=3D 4.7 or Clang >=3D 3.3 is required for C= ++ compilation I have the following installed: FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 gcc-4.8.4_3 This problem is making my MUA=2C claws-mail=2C unusable with HTML mail. I h= ave no idea how many other problems are going to start popping up soon either. From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 13:01:55 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5B5C7CCE for ; Tue, 28 Apr 2015 13:01:55 +0000 (UTC) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (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 C8F861A76 for ; Tue, 28 Apr 2015 13:01:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id t3SCXBLl079787; Tue, 28 Apr 2015 22:33:14 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Tue, 28 Apr 2015 22:33:11 +1000 (EST) From: Ian Smith To: Victor Sudakov cc: freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP In-Reply-To: Message-ID: <20150428222328.E27406@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 13:01:55 -0000 In freebsd-questions Digest, Vol 569, Issue 1, Message: 10 On Mon, 27 Apr 2015 15:33:55 +0600 Victor Sudakov wrote: > Victor Sudakov wrote: > > Nikos Vassiliadis wrote: > > > > > > > > Could you advise a solution for tunneling L2 (Ethernet) traffic over IP? > > > > > > > > There is a solution in bridge(4) using the EtherIP protocol, but it > > > > works with untagged frames only. I need to tunnel 802.1q tagged frames > > > > as well. > > > > > > > > Any ideas? > > > > > > > > > > > You can do this with netgraph. Check this post: > > > > > > http://lists.freebsd.org/pipermail/freebsd-net/2005-October/008861.html > > > > > > > It's a modification of the /usr/share/examples/netgraph/ether.bridge > > script. How do you know that it would pass 802.1q tagged frames? It > > references a "fxp0" interface which passes untagged traffic unless a > > vlan(4) interface is configured on top thereof. > > The script does not work. It prints error messages like > > + LINKNUM=1 > + ngctl mkpeer bnet0: ksocket link1 inet/dgram/udp > + ngctl msg ng0:inet bind inet/10.14.143.136:4028 > ngctl: send msg: No such file or directory > + ngctl msg ng0:inet connect inet/10.14.140.125:4028 > ngctl: send msg: No such file or directory > + expr 1 + 1 > + LINKNUM=2 > > and does not generate any traffic. Perhaps it needs some debugging. I > am still looking for a solution, thanks in advance to all who has > anything to say. > > In the meanwhile, I have tried bridging ethernet NICs and tap(4), and > connected two tap(4) devices with net/vtun. It works, but again, only > for untagged frames. I suggest posting these questions to freebsd-net@ where all the hardcore netheads hang out, most of whom would have no time to follow questions@. Certainly that's where the netgraph guy(s?) may be found. cheers, Ian From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 13:19:09 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 385032E2 for ; Tue, 28 Apr 2015 13:19:09 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A13D11C23 for ; Tue, 28 Apr 2015 13:19:08 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.9/8.14.9) with ESMTP id t3SDJ20X062008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 28 Apr 2015 15:19:02 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.9/8.14.9/Submit) with ESMTP id t3SDJ095062005; Tue, 28 Apr 2015 15:19:01 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 28 Apr 2015 15:19:00 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Carmel NY cc: FreeBSD FreeBSD Subject: Re: unable to build www/webkit-gtk2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 13:19:09 -0000 On Tue, 28 Apr 2015 07:04-0400, Carmel NY wrote: > On Tue, 28 Apr 2015 09:15:03 +0200 (CEST), Trond Endrestøl stated: > > > If memory serves me correct, I had to create a Makefile.local > > containing: > > > > USE_GCC=any > > I am sorry, but I do not understand what that means. In simple terms, it means create a file named Makefile.local in the /usr/ports/www/webkit-gtk2 directory where USE_GCC=any is the file's sole line of text. E.g.: echo USE_GCC=any > /usr/ports/www/webkit-gtk2/Makefile.local At home I have a bunch of virtual machines, and on some of them I, until recently, forced clang as the C and C++ compiler using the proper directives in /etc/make.conf. clang doesn't understand the library format used for some of the libraries belonging to www/webkit-gtk2, thus the need to force the www/webkit-gtk2 port to use the GCC compiler. I stopped forcing clang as the compiler in /etc/make.conf, and moved those incatations to /etc/src.conf for my stable/10 and head VMs. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 13:20:21 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0B5F45C for ; Tue, 28 Apr 2015 13:20:21 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 62E141C3A for ; Tue, 28 Apr 2015 13:20:21 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.9/8.14.9) with ESMTP id t3SDKD2P062031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 28 Apr 2015 15:20:13 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.9/8.14.9/Submit) with ESMTP id t3SDKDgv062028; Tue, 28 Apr 2015 15:20:13 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 28 Apr 2015 15:20:13 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Carmel NY cc: FreeBSD FreeBSD Subject: Re: unable to build www/webkit-gtk2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 13:20:22 -0000 On Tue, 28 Apr 2015 07:31-0400, Carmel NY wrote: > On Tue, 28 Apr 2015 09:15:03 +0200 (CEST), Trond Endrestøl stated: > > > On Mon, 27 Apr 2015 23:07-0400, Carmel NY wrote: > > > > > I have been unable to build th "www/webkit-gtk2" port. It always ends with > > > this error message: > > > > > > CXX > > > Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o > > > CXX Source/WTF/wtf/libWTF_la-Assertions.lo CXX > > > Source/WTF/wtf/libWTF_la-Atomics.lo CXX > > > Source/WTF/wtf/libWTF_la-BitVector.lo CXX > > > Source/WTF/wtf/libWTF_la-CompilationThread.lo CXX > > > Source/WTF/wtf/libWTF_la-Compression.lo CXX > > > Source/WTF/wtf/libWTF_la-CryptographicallyRandomNumber.lo CXX > > > Source/WTF/wtf/libWTF_la-CurrentTime.lo CXX > > > Source/WTF/wtf/libWTF_la-DataLog.lo CXX > > > Source/WTF/wtf/libWTF_la-DateMath.lo CXX > > > Source/WTF/wtf/libWTF_la-DecimalNumber.lo CXX > > > Source/WTF/wtf/libWTF_la-DynamicAnnotations.lo CXX > > > Source/WTF/wtf/libWTF_la-FastBitVector.lo CXX > > > Source/WTF/wtf/libWTF_la-FastMalloc.lo CXX > > > Source/WTF/wtf/libWTF_la-FilePrintStream.lo CXX > > > Source/WTF/wtf/libWTF_la-FunctionDispatcher.lo CXX > > > Source/WTF/wtf/libWTF_la-GregorianDateTime.lo CXX > > > Source/WTF/wtf/libWTF_la-HashTable.lo CXX > > > Source/WTF/wtf/libWTF_la-MD5.lo CXX > > > Source/WTF/wtf/libWTF_la-MainThread.lo CXX > > > Source/WTF/wtf/libWTF_la-MediaTime.lo CXX > > > Source/WTF/wtf/libWTF_la-MetaAllocator.lo CXX > > > Source/WTF/wtf/libWTF_la-NumberOfCores.lo CXX > > > Source/WTF/wtf/libWTF_la-RAMSize.lo CXX > > > Source/WTF/wtf/libWTF_la-OSAllocatorPosix.lo CXX > > > Source/WTF/wtf/libWTF_la-OSAllocatorWin.lo CXX > > > Source/WTF/wtf/libWTF_la-OSRandomSource.lo CXX > > > Source/WTF/wtf/libWTF_la-PageAllocationAligned.lo CXX > > > Source/WTF/wtf/libWTF_la-PageBlock.lo CXX > > > Source/WTF/wtf/libWTF_la-ParallelJobsGeneric.lo CXX > > > Source/WTF/wtf/libWTF_la-PrintStream.lo CXX > > > Source/WTF/wtf/libWTF_la-RandomNumber.lo CXX > > > Source/WTF/wtf/libWTF_la-RefCountedLeakCounter.lo CXX > > > Source/WTF/wtf/libWTF_la-RunLoop.lo CXX > > > Source/WTF/wtf/libWTF_la-SHA1.lo CXX > > > Source/WTF/wtf/libWTF_la-SixCharacterHash.lo CXX > > > Source/WTF/wtf/libWTF_la-StackBounds.lo CXX > > > Source/WTF/wtf/libWTF_la-StringPrintStream.lo CXX > > > Source/WTF/wtf/libWTF_la-TCSystemAlloc.lo CXX > > > Source/WTF/wtf/libWTF_la-ThreadIdentifierDataPthreads.lo CXX > > > Source/WTF/wtf/libWTF_la-ThreadSpecificWin.lo CXX > > > Source/WTF/wtf/libWTF_la-Threading.lo CXX > > > Source/WTF/wtf/libWTF_la-ThreadingPthreads.lo CXX > > > Source/WTF/wtf/libWTF_la-ThreadingWin.lo CXX > > > Source/WTF/wtf/libWTF_la-WTFThreadData.lo CXX > > > Source/WTF/wtf/libWTF_la-dtoa.lo CXX > > > Source/WTF/wtf/dtoa/libWTF_la-bignum-dtoa.lo CXX > > > Source/WTF/wtf/dtoa/libWTF_la-bignum.lo CXX > > > Source/WTF/wtf/dtoa/libWTF_la-cached-powers.lo CXX > > > Source/WTF/wtf/dtoa/libWTF_la-diy-fp.lo CXX > > > Source/WTF/wtf/dtoa/libWTF_la-double-conversion.lo CXX > > > Source/WTF/wtf/dtoa/libWTF_la-fast-dtoa.lo CXX > > > Source/WTF/wtf/dtoa/libWTF_la-fixed-dtoa.lo CXX > > > Source/WTF/wtf/dtoa/libWTF_la-strtod.lo CXX > > > Source/WTF/wtf/gobject/libWTF_la-GRefPtr.lo CXX > > > Source/WTF/wtf/gobject/libWTF_la-GlibUtilities.lo CXX > > > Source/WTF/wtf/gtk/libWTF_la-MainThreadGtk.lo CXX > > > Source/WTF/wtf/gtk/libWTF_la-RunLoopGtk.lo CXX > > > Source/WTF/wtf/text/libWTF_la-AtomicString.lo CXX > > > Source/WTF/wtf/text/libWTF_la-AtomicStringTable.lo CXX > > > Source/WTF/wtf/text/libWTF_la-Base64.lo CXXconfigure: error: Compiler GCC > > > >= 4.7 or Clang >= 3.3 is required for C++ compilation > configure: error: Compiler GCC >= 4.7 or Clang >= 3.3 is required for C++ compilation > F/wtf/text/libWTF_la-CStrFreeBSD clang version 3.4.1 > (tags/RELEASE_34/dot1-final 208032) 20140512 > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > > > > Source/WTF/wtf/text/libWTF_la-StringBuilder.lo CXX > > > Source/WTF/wtf/text/libWTF_la-StringImpl.lo CXX > > > Source/WTF/wtf/text/libWTF_la-StringStatics.lo CXX > > > Source/WTF/wtf/text/libWTF_la-WTFString.lo CXX > > > Source/WTF/wtf/threads/libWTF_la-BinarySemaphore.lo CXX > > > Source/WTF/wtf/unicode/libWTF_la-CollatorDefault.lo CXX > > > Source/WTF/wtf/unicode/libWTF_la-UTF8.lo CXX > > > Source/WTF/wtf/unicode/icu/libWTF_la-CollatorICU.lo CXXLD libWTF.la > > > CXXLD Programs/LLIntOffsetsExtractor > > > /usr/bin/ld:./.libs/libWTF.a: file format not recognized; treating as > > > linker script /usr/bin/ld:./.libs/libWTF.a:1: syntax error > > > c++: error: linker command failed with exit code 1 (use -v to see > > > invocation) GNUmakefile:40539: recipe for target > > > 'Programs/LLIntOffsetsExtractor' failed gmake[1]: *** > > > [Programs/LLIntOffsetsExtractor] Error 1 gmake[1]: Leaving directory > > > '/usr/ports/www/webkit-gtk2/work/webkitgtk-2.4.8' *** Error code 1 > > > > > > Stop. > > > make: stopped in /usr/ports/www/webkit-gtk2 > > > > > > Does anyone have any idea what the problem is? > > > > > > Thanks! > > > > If memory serves me correct, I had to create a Makefile.local > > containing: > > > > USE_GCC=any > > OKay, that fails too. Right, my memory failed me again. Try: USE_GCC=4.8+ > configure: error: Compiler GCC >= 4.7 or Clang >= 3.3 is required for C++ compilation > > I have the following installed: > > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > > gcc-4.8.4_3 > > This problem is making my MUA, claws-mail, unusable with HTML mail. I have no > idea how many other problems are going to start popping up soon either. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 13:24:09 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4AD0626 for ; Tue, 28 Apr 2015 13:24:09 +0000 (UTC) Received: from serving.schmi.tt (serving.schmi.tt [217.197.83.196]) by mx1.freebsd.org (Postfix) with ESMTP id 8B5AD1D3C for ; Tue, 28 Apr 2015 13:24:09 +0000 (UTC) Received: by serving.schmi.tt (Postfix, from userid 1001) id 5BCBF5965C; Tue, 28 Apr 2015 15:23:04 +0200 (CEST) Date: Tue, 28 Apr 2015 15:23:04 +0200 From: Moritz Schmitt To: freebsd-questions@freebsd.org Subject: Compiling port fails: header file cannot be found Message-ID: <20150428132304.GA58055@serving.schmi.tt> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 13:24:09 -0000 Hello, I am trying to install /usr/ports/math/sage by executing 'make install clean'. This fails with the following error message: ----- Error building Sage. The following package(s) may have failed to build: package: zeromq-4.0.5 log file: /usr/ports/math/sage/work/sage-6.6/logs/pkgs/zeromq-4.0.5.log ----- And zeromq-4.0.5.log contains additional information: ----- (...) ctx.cpp:39:20: fatal error: sodium.h: No such file or directory #include ^ compilation terminated. ----- This means the header file sodium.h cannot be found. However, my system has it in /usr/local/include. So it seems that the compiler needs to be told to look for header files also in this directory. Is there a standard way to do this when installing a port? Thanks, Moritz From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 14:03:26 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7B30429E for ; Tue, 28 Apr 2015 14:03:26 +0000 (UTC) Received: from BLU004-OMC4S26.hotmail.com (blu004-omc4s26.hotmail.com [65.55.111.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A7ED11DD for ; Tue, 28 Apr 2015 14:03:25 +0000 (UTC) Received: from BLU436-SMTP66 ([65.55.111.137]) by BLU004-OMC4S26.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 28 Apr 2015 07:02:17 -0700 X-TMN: [1Cne0F5p+j/xq5cv/hRfidnnKSqmVFXd] X-Originating-Email: [carmel_ny@outlook.com] Message-ID: Date: Tue, 28 Apr 2015 10:02:16 -0400 From: Carmel NY To: FreeBSD FreeBSD Subject: Re: unable to build www/webkit-gtk2 In-Reply-To: References: Organization: seibercom NET X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 28 Apr 2015 14:02:17.0315 (UTC) FILETIME=[EFA48B30:01D081BB] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 14:03:26 -0000 On Tue=2C 28 Apr 2015 15:20:13 +0200 (CEST)=2C Trond Endrest=C3=B8l stated: > Right=2C my memory failed me again. >=20 > Try: >=20 > USE_GCC=3D4.8+ Still fails wit the same message regarding versions. From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 14:04:58 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2044136F for ; Tue, 28 Apr 2015 14:04:58 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 89D2611F7 for ; Tue, 28 Apr 2015 14:04:57 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.9/8.14.9) with ESMTP id t3SE4r6X062302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 28 Apr 2015 16:04:53 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.9/8.14.9/Submit) with ESMTP id t3SE4rg9062299; Tue, 28 Apr 2015 16:04:53 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 28 Apr 2015 16:04:53 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Carmel NY cc: FreeBSD FreeBSD Subject: Re: unable to build www/webkit-gtk2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 14:04:58 -0000 On Tue, 28 Apr 2015 10:02-0400, Carmel NY wrote: > On Tue, 28 Apr 2015 15:20:13 +0200 (CEST), Trond Endrestøl stated: > > > Right, my memory failed me again. > > > > Try: > > > > USE_GCC=4.8+ > > Still fails wit the same message regarding versions. Unless you solve it, we have to wait until I can get home and check my VMs. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 15:45:48 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 52E548B6 for ; Tue, 28 Apr 2015 15:45:48 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D49891EEF for ; Tue, 28 Apr 2015 15:45:47 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.9/8.14.9) with ESMTP id t3SFjgiO062799 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 28 Apr 2015 17:45:42 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.9/8.14.9/Submit) with ESMTP id t3SFjfFd062796; Tue, 28 Apr 2015 17:45:41 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 28 Apr 2015 17:45:41 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Carmel NY cc: FreeBSD FreeBSD Subject: Re: unable to build www/webkit-gtk2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 15:45:48 -0000 On Tue, 28 Apr 2015 16:04+0200, Trond Endrestøl wrote: > On Tue, 28 Apr 2015 10:02-0400, Carmel NY wrote: > > > On Tue, 28 Apr 2015 15:20:13 +0200 (CEST), Trond Endrestøl stated: > > > > > Right, my memory failed me again. > > > > > > Try: > > > > > > USE_GCC=4.8+ > > > > Still fails wit the same message regarding versions. My Makefile.local is a bit verbose as I have a common ports tree for all my VMs. Anyway, here's the contents of my www/webkit-gtk2/Makefile.local file: # www/webkit-gtk2/Makefile.local # amd64 stable/10 needs g++48, 'cos clang doesn't understand the file format of libWTF.a generated as part of the build __BRANCH!= uname -r | awk '{split($$0, b, "-"); print tolower(b[2])}' __VERSION!= uname -r | awk '{split($$0, v, "."); print v[1]}' __ARCH!= uname -p __BRANCH_VERSION_ARCH= ${__BRANCH}-${__VERSION}-${__ARCH} .if ${__ARCH} == "amd64" .if ${__BRANCH} == "stable" .if ${__VERSION} == "10" USE_GCC= 4.8+ .endif .endif .endif .undef __BRANCH .undef __VERSION .undef __ARCH .undef __BRANCH_VERSION_ARCH # EOF -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 16:17:31 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB0C7A43 for ; Tue, 28 Apr 2015 16:17:31 +0000 (UTC) Received: from BLU004-OMC4S12.hotmail.com (blu004-omc4s12.hotmail.com [65.55.111.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A4D441330 for ; Tue, 28 Apr 2015 16:17:31 +0000 (UTC) Received: from BLU437-SMTP9 ([65.55.111.136]) by BLU004-OMC4S12.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 28 Apr 2015 09:16:24 -0700 X-TMN: [9UMtqB11N1xgJt8K8Q4WjAS2N/8Y4r0g] X-Originating-Email: [carmel_ny@outlook.com] Message-ID: Date: Tue, 28 Apr 2015 12:16:22 -0400 From: Carmel NY To: FreeBSD FreeBSD Subject: Re: unable to build www/webkit-gtk2 In-Reply-To: References: Organization: seibercom NET X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 28 Apr 2015 16:16:23.0862 (UTC) FILETIME=[ABC22D60:01D081CE] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 16:17:32 -0000 On Tue=2C 28 Apr 2015 16:04:53 +0200 (CEST)=2C Trond Endrest=C3=B8l stated: > On Tue=2C 28 Apr 2015 10:02-0400=2C Carmel NY wrote: >=20 > > On Tue=2C 28 Apr 2015 15:20:13 +0200 (CEST)=2C Trond Endrest=C3=B8l sta= ted: > >=20 > > > Right=2C my memory failed me again. > > >=20 > > > Try: > > >=20 > > > USE_GCC=3D4.8+ > >=20 > > Still fails wit the same message regarding versions. >=20 > Unless you solve it=2C we have to wait until I can get home and check my= =20 > VMs. It fails with webkit-gtk3 also. I tried completely removing "webkit-gtk2" a= nd then building it to see if it made any difference. It didn't. "gnome" is th= e maintainer of the port=2C so I am never going to get any support from there= . I would love to see proof that whoever submitted this port actually tried t= o build it first. From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 19:05:58 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1018F751 for ; Tue, 28 Apr 2015 19:05:58 +0000 (UTC) Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010:c04::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 975E11924 for ; Tue, 28 Apr 2015 19:05:57 +0000 (UTC) Received: by lbbzk7 with SMTP id zk7so3552308lbb.0 for ; Tue, 28 Apr 2015 12:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hqoH2EG2G0DqADr3hznJy9gCRRC/L4Mny3W0P/kQraU=; b=xVFPNo8IUgjsvbXe9KWJbh7QGCUen5xO713597qhBZTvtXnDxKTMoT/Ze5lJG3tNJa G5zQBDlruRmGD3jULyqjO0mtvmna7bapp/RnmEW5qacwnXUC/23yjEAwptvdE5QQcu8G FWjEvQHRD+ZThAmOTYcfRK9ZY0lZU54EwzuUIATAhqUPjaXYeGSsrCuBAnz5O0tBOCck Fz4vYvMcH/t2eEdyGXE2hK93/KizUF9pfaxntZog3in9eG9I1bxaNpS/iQ+bFyR0BlsQ u9oy8YBOKqRpmRoGvoRtTtB1tuXxY8l3zvy8t834lAZKvb17uhlqbNyYReZYXoqtwmkt E0vg== MIME-Version: 1.0 X-Received: by 10.152.206.75 with SMTP id lm11mr15533347lac.41.1430247955763; Tue, 28 Apr 2015 12:05:55 -0700 (PDT) Received: by 10.25.42.146 with HTTP; Tue, 28 Apr 2015 12:05:55 -0700 (PDT) Date: Tue, 28 Apr 2015 12:05:55 -0700 Message-ID: Subject: Using pam_radius in /etc/pam.d/sshd From: Chris Stankevitz To: freebsd-questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 19:05:58 -0000 Hello, 1. After I supply an incorrect radius password three time, I am not afforded an opportunity to supply my pam_unix password. Why am I not afforded this opportunity? (pam.d/sshd below) 2. Is there a way to reduce the number of times a user can attempt to login with pam_radius from 3 to 1? 'man pam_radius' suggests no options that might accomplish this. I wonder if there are 'secret' options at a higher level to control this. My goal: users can log in with pam_radius or pam_unix, whichever they choose. I figured I would accomplish this with the following /etc/pam.d/sshd auth and by telling users "just press enter when prompted for the radius pw, then you will be prompted for your passwd": auth sufficient pam_opie.so no_warn no_fake_prompts auth requisite pam_opieaccess.so no_warn allow_local auth sufficient pam_radius.so auth required pam_unix.so no_warn try_first_pass Thank you, Chris From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 20:01:20 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C21E699 for ; Tue, 28 Apr 2015 20:01:20 +0000 (UTC) Received: from wp376.webpack.hosteurope.de (wp376.webpack.hosteurope.de [80.237.133.145]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1E7751FDD for ; Tue, 28 Apr 2015 20:01:19 +0000 (UTC) Received: from p548fc842.dip0.t-ipconnect.de ([84.143.200.66] helo=[192.168.178.149]); authenticated by wp376.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1YnBPk-0002QU-Ef; Tue, 28 Apr 2015 21:43:28 +0200 Message-ID: <1430250205.4162.1.camel@mccarthy> Subject: can pf load-balance UDP? From: "Christopher J. Ruwe" To: freebsd-questions@freebsd.org Date: Tue, 28 Apr 2015 21:43:25 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;cjr@cruwe.de;1430251280;24f2a09f; X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 20:01:20 -0000 Hi, I am sorry, I do not have a FreeBSD machine around at the moment, otherwise I would have checked myself. I am looking at options to load-balance log messages sent to a central logserver (at the moment, we are favouring the ever present logstash/elasticsearch stack). Examining the "shipment" of logs from the producer to logstash, we try to keep the footprint of the shipping mechanism low and standard. Eventually, we will need to load balance the log messages, which has led me to question how to load balance UDP. I know OpenBSD and FreeBSD pf can load balance TCP. # RDR ROUND ROBIN # Translate incoming web server connections to a group of web servers on # the internal network. rdr on $ext_if proto tcp from any to any port 80 \ -> { 10.1.2.155, 10.1.2.160, 10.1.2.161 } round-robin Does anybody know about UDP for that matter or is load balancing UDP done differently? Many thanks, cheers, -- Christopher From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 09:18:36 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8B534559 for ; Wed, 29 Apr 2015 09:18:36 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DA3612CE for ; Wed, 29 Apr 2015 09:18:34 +0000 (UTC) Received: from [192.168.1.96] (host31-51-114-41.range31-51.btcentralplus.com [31.51.114.41]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id t3T9I4NR097128 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Wed, 29 Apr 2015 10:18:08 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <5540A1CA.3090009@fjl.co.uk> Date: Wed, 29 Apr 2015 10:18:02 +0100 From: Frank Leonhardt Reply-To: frank2@fjl.co.uk Organization: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: dig command ? References: <552001C0.6040304@gmail.com> <553EA687.2040602@fjl.co.uk> <553F6219.40701@qeng-ho.org> <553F6757.50801@freebsd.org> In-Reply-To: <553F6757.50801@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 09:18:36 -0000 On 28/04/2015 11:56, Matthew Seaman wrote: > On 04/28/15 11:34, Arthur Chance wrote: >> It didn't. What we've got now is a clone of host supplied by the unbound >> software. >> >> No, I've no idea why they didn't clone nslookup and dig as well. :-( > Because cloning host(1) is easy. Cloning nslookup(1) -- replicating its > peculiar behaviour with the reasonably sane tools bundled with > unbound(8) -- is hard, and not worth it for a program that is in any > case deprecated. > Actually, nslookup is NOT deprecated. It was deprecated by ISC for a period in 2004(!) but was un-deprecated again in the BIND 9.3 documentation. ISC woke up and realised it was important ten years ago. As for peculiar behaviour, all UNIX utilities have peculiar behaviour. We've had 30 years to get used to what nslookup can and can't do; removing it from the base system after 30 years and breaking scripts all over the place is a lot worse than being peculiar. And suppose you want do debug a resolver issue? dig (and host?) are going to give exactly the same results as the local resolver would because they simply call it - nslookup won't. Okay, if you're working on resolvers you'll probably install the bind-tools port anyway, but that's not the point. The "find" command can be pretty odd - should that be removed in favour of something that's theoretically more predictable? Or how about dd, which is so old its arguments use a syntax that's incompatible with everything else since? BIND (including dig, host and nslookup) was provided as contributed software to the base system. I don't see any reason to "clone" it (perhaps there is; I just don't see one), so the difficulty or or otherwise of creating a work-alike shouldn't matter, should it? From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 09:31:33 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 358517C2 for ; Wed, 29 Apr 2015 09:31:33 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AE0D114F3 for ; Wed, 29 Apr 2015 09:31:32 +0000 (UTC) Received: from [192.168.1.96] (host31-51-114-41.range31-51.btcentralplus.com [31.51.114.41]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id t3T9V5vK000635 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Wed, 29 Apr 2015 10:31:11 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <5540A4D9.7010904@fjl.co.uk> Date: Wed, 29 Apr 2015 10:31:05 +0100 From: Frank Leonhardt Reply-To: frank2@fjl.co.uk Organization: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: /cd0 held open but no files reported References: <553A9593.30500@dreamchaser.org> In-Reply-To: <553A9593.30500@dreamchaser.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 09:31:33 -0000 On 24/04/2015 20:12, Gary Aitken wrote: > I have a situation I'd like some insights on... > > running 9.2 release on an AMD 64, X with xfce4 > > I mounted a CD from root: > #mount -t cd9660 /dev/cd0 /cd0 > Accessed some files on the CD using gimp. > Exited gimp > > When I try to umount, I get the message: > #umount /cd0 > umount: unmount of /cd0 failed: Device busy > > How about using gvfs-mount -u instead? I've not had the pleasure of using Gnome on FreeBSD specifically, but as no one else has answered and given what gvfs mounting deamons seem to get up to, I'd be surprised if a kernel umount was ever going to work. From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 11:08:07 2015 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67E07EE9 for ; Wed, 29 Apr 2015 11:08:07 +0000 (UTC) Received: from kunming.51ershoufang.com (kunming.51ershoufang.com [185.22.172.3]) by mx1.freebsd.org (Postfix) with ESMTP id C55D51F8A for ; Wed, 29 Apr 2015 11:08:06 +0000 (UTC) To: questions@freebsd.org Subject: need pics editing? Message-ID: <54a7eed65838c2d58a723ae3d230e0da@giphy.com> Date: Wed, 29 Apr 2015 10:14:58 +0200 From: "Roy" Reply-To: photoexpert@aliyun.com MIME-Version: 1.0 X-Mailer-LID: 25 X-Mailer-RecptId: 20359189 X-Mailer-SID: 356 X-Mailer-Sent-By: 1 Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 11:08:07 -0000 How are you? Hope all is fine! We mainly do: ecommerce photo editing, jewelry photos retouching, beauty and skin retouching, wedding photo editing, photo cutting out and clipping path/masking. Our advantages: Quality is our first Fast Turnaround Time Guaranteed quality 7/24/365 on service. Our service is good and price is affordable. You may choose to send us a test photo to judge our quality and services. Have a good time! Thank you! Roy Email: ankesom@tom.com You can send address to piaier@aliyun.com for remove From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 11:17:04 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E7162153 for ; Wed, 29 Apr 2015 11:17:04 +0000 (UTC) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (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 4D56210BA for ; Wed, 29 Apr 2015 11:17:03 +0000 (UTC) Received: from kw.news4all.se (localhost [127.0.0.1]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id t3TAwNNJ040576; Wed, 29 Apr 2015 12:58:24 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <5540B94F.4000706@bananmonarki.se> Date: Wed, 29 Apr 2015 12:58:23 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Gary Aitken , FreeBSD Mailing List Subject: Re: /cd0 held open but no files reported References: <553A9593.30500@dreamchaser.org> In-Reply-To: <553A9593.30500@dreamchaser.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 11:17:05 -0000 On 2015-04-24 21:12, Gary Aitken wrote: > I have a situation I'd like some insights on... > > running 9.2 release on an AMD 64, X with xfce4 > > I mounted a CD from root: > #mount -t cd9660 /dev/cd0 /cd0 > Accessed some files on the CD using gimp. > Exited gimp > > When I try to umount, I get the message: > #umount /cd0 > umount: unmount of /cd0 failed: Device busy Just use umount -f /dev/cd0 From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 11:58:49 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3ECB8C44 for ; Wed, 29 Apr 2015 11:58:49 +0000 (UTC) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EAF32154F for ; Wed, 29 Apr 2015 11:58:48 +0000 (UTC) Received: by qkhg7 with SMTP id g7so12973279qkh.2 for ; Wed, 29 Apr 2015 04:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:in-reply-to:references :disposition-notification-to:content-type:date:message-id :mime-version; bh=+D9sH1oYTQlHwA0j30KU6IiAGS3u0+a7aWRdbfP+XoI=; b=RBN54SQtcBz0Sm5I+H3h0nftuPK/a+kA0eQtyWIEJvYmGJoQPXcVLiHtzq54BwSEn4 5btKIGfG4TDJzDaDtBDyHET0cz6aNTRWZjU5mUFZlLRS6R6+IU9fFfZu4t3GfmiiSsO2 JJCf71EobjHRC/v/xZUe7oM+I3Rihb4gg9bUpCrmpVV+mCD3eZf2LkROx0kvjOdDe8Fy ZRJefYPVzl5Auh5m4rbn/pG2L9tUEpmoIL8OgPMn0xQE3wL/TVU0+sZHg7tBQVenr5K5 sUAWQRUBZ+7Hb4xGWehEbcePG5OR/2bZoQVGiPUvP1T/lpIm80hut2gilAQNdIv52ju6 HVtw== X-Received: by 10.55.25.34 with SMTP id k34mr27298961qkh.12.1430308727953; Wed, 29 Apr 2015 04:58:47 -0700 (PDT) Received: from [192.168.6.123] ([179.184.51.72]) by mx.google.com with ESMTPSA id 71sm14491052qht.28.2015.04.29.04.58.46 (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 29 Apr 2015 04:58:47 -0700 (PDT) Subject: Re: /cd0 held open but no files reported From: sergio de Almeida Lenzi To: Bernt Hansson Cc: Gary Aitken , FreeBSD Mailing List In-Reply-To: <5540B94F.4000706@bananmonarki.se> References: <553A9593.30500@dreamchaser.org> <5540B94F.4000706@bananmonarki.se> Date: Wed, 29 Apr 2015 08:58:44 -0300 Message-ID: <1430308724.30640.25.camel@lenzinote.lenzicasa> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 11:58:49 -0000 fstat | grep cd0 will tell you what is the program holding the ope files... probably gvfs daemon... I used gnome 2.32 but move to mate (x11/mate) after some "fixes" it works pretty well and is really fast... You can install all mate (in a fresh environment) by pointing you pkg to: http://www.bsdservers.tk:84 or ..... 1) remove all files from /etc/pkg 2) create a file in /etc/pkg named: MATE MATE64: { url: http://www.bsdservers.tk/${ABI}, enabled: yes } 3) pkg install -y mate installs about 1GB.. this includes gdm, libreoffice, gimp, audacity, firefox, chrome, dvdstyler, brasero, evolution transmission, pcb, librecad .... about 1100 packages.. I run it for about 6 months now and have no complains... From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 15:47:50 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 477B0AE6 for ; Wed, 29 Apr 2015 15:47:50 +0000 (UTC) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (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 118E01007 for ; Wed, 29 Apr 2015 15:47:49 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [192.168.151.122]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id t3TFlYZN050363; Wed, 29 Apr 2015 09:47:35 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <5540FD16.3020302@dreamchaser.org> Date: Wed, 29 Apr 2015 09:47:34 -0600 From: Gary Aitken Reply-To: freebsd@dreamchaser.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: frank2@fjl.co.uk, freebsd-questions@freebsd.org, lenzi.sergio@gmail.com Subject: Re: /cd0 held open but no files reported References: <553A9593.30500@dreamchaser.org> <5540A4D9.7010904@fjl.co.uk> In-Reply-To: <5540A4D9.7010904@fjl.co.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [192.168.151.101]); Wed, 29 Apr 2015 09:47:35 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 15:47:50 -0000 On 04/29/15 03:31, Frank Leonhardt wrote: > On 24/04/2015 20:12, Gary Aitken wrote: >> I have a situation I'd like some insights on... >> >> running 9.2 release on an AMD 64, X with xfce4 >> >> I mounted a CD from root: #mount -t cd9660 /dev/cd0 /cd0 Accessed >> some files on the CD using gimp. Exited gimp >> >> When I try to umount, I get the message: #umount /cd0 umount: >> unmount of /cd0 failed: Device busy > > How about using gvfs-mount -u instead? Unfortunately, that doesn't work as expected: # gvfs-mount -u /cd0 Error finding enclosing mount: Containing mount does not exist looks like umount -f will have to do. > I've not had the pleasure of using Gnome on FreeBSD specifically, but > as no one else has answered and given what gvfs mounting deamons seem > to get up to, I'd be surprised if a kernel umount was ever going to > work. yeah, that appears to be the case. On 04/29/15 05:58, sergio de Almeida Lenzi wrote: > fstat | grep cd0 > will tell you what is the program holding the ope files... > probably gvfs daemon... Thanks, that shed some light; Turns out it is gvfsd-trash I suspect the home, file system, and trash concepts in xfce4 force gvfsd-trash to run, as they activate file system browsers which allow dragging to a trash-bin. But why the trash-bin holds /cd0 open is a mystery, especially if it is read-only media. thanks for the reply. Gary From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 17:54:30 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 34ADA8FE for ; Wed, 29 Apr 2015 17:54:30 +0000 (UTC) Received: from mail-vn0-x22e.google.com (mail-vn0-x22e.google.com [IPv6:2607:f8b0:400c:c0f::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E71D3111D for ; Wed, 29 Apr 2015 17:54:29 +0000 (UTC) Received: by vnbf62 with SMTP id f62so4289451vnb.3 for ; Wed, 29 Apr 2015 10:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=f7hHBgcyvvWlVBlOCLYMptcopM8C4B6TvjIqxV73Kj0=; b=eWeTVrTKNfYLhweh7Q2mmOmyjxmM/IvTYQqWOpDB1NfpBXBzmYLE/49A+Qo0RaxLMm tfWMjdAuMqDq4IPfyVzC6I8h54yhT1tKRSvjclV2O/t9WZQXE4yPZbgimVw9GDC9cjDA 0eLPbrP8VUbqzhvCaOmO9yRCL+LDmcBtQWsCkJRT3PwqY/ukFgD1kZZqO/PaQl/uIX9l WuwIHEvra6j2x/wiikzyH/c1QVbe5JIqmVMor351No26+qrzcSriEJSiDu3WQqPytlPY 4GV0Ne+UySd02WbtZDocwG8HmOZxdZlE0MppnFAREFtFMM2Mptd2cFfUfd23dNP32K6M UkEg== MIME-Version: 1.0 X-Received: by 10.52.64.179 with SMTP id p19mr411308vds.55.1430330068920; Wed, 29 Apr 2015 10:54:28 -0700 (PDT) Received: by 10.52.129.34 with HTTP; Wed, 29 Apr 2015 10:54:28 -0700 (PDT) Date: Wed, 29 Apr 2015 20:54:28 +0300 Message-ID: Subject: ipvs (lvs) analog From: Pavel Timofeev To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 17:54:30 -0000 Hi! Is there any ipvs analog under FreeBSD? I know about haproxy, pen, nginx and whatever which works in user mode. I'd like to know about something in kernel mode. For example, for load balancing two web servers or db servers. pf? of maybe something netgraph related? From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 23:57:33 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0B5919E3 for ; Wed, 29 Apr 2015 23:57:33 +0000 (UTC) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C8D8319B7 for ; Wed, 29 Apr 2015 23:57:32 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so1039856igb.0 for ; Wed, 29 Apr 2015 16:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=pQqkcmmgz9vXZusUZV4cSkcUTsU0RIE+2bIzZDKUl0M=; b=qIMqnlsVxJ9uhjn8Vp3y2TO+pfQT/RlRU3zWYVThomubShC4LuBazdMlAVwcH66RR/ IZBCEkio//0wP0sdapJbApkFDpCvrvgxaq/E73SzDrGD6JWMIdee9JG3ti6Bh4GUModG BNq+ZCq56zlBf8LSYGAgzM+c87yrOrLjc94dHrbV93DVEhEjVBdhAbg3WsEtEEkQE1yy nbWuiRadKM422SmQUiVbO2jrFPSDiXNNv/26ZCqDQAhp6q9hzZSZWQM4Km4tWrlQJWni hItLc12axK0f9FiclGxhjGt0GwfWAJAsUR6gd2yQrm9JAcPamMG8DS+iihCWxwUlE+aS OhXA== X-Received: by 10.42.206.9 with SMTP id fs9mr6176248icb.19.1430351852128; Wed, 29 Apr 2015 16:57:32 -0700 (PDT) Received: from [10.0.10.5] (cpe-76-190-244-6.neo.res.rr.com. [76.190.244.6]) by mx.google.com with ESMTPSA id r1sm661117igp.20.2015.04.29.16.57.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Apr 2015 16:57:31 -0700 (PDT) Message-ID: <55416FEB.3020101@gmail.com> Date: Wed, 29 Apr 2015 19:57:31 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: FreeBSD Questions Subject: using pkg for postfix/spamassassin install Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 23:57:33 -0000 Hello list. For many years been using postfix/qpopper for email service on my lan with no problems. Now I want to add spamassassin in preperation so I can also admin my public domain name on my own computer instead of having my domain hoster do it for me. This is a list of my goals, make email password required to send/receive email. have email tagged with word "spam" in email subject line. have spam email list all the spamassassin tests with scores in the header so they can be seen. don't have postfix duplicate any test that spamassassion is doing. Use the pkg version of postfix & spamassassin. Don't use any custom scripts Can NOT be used as a relay email server by the public. Auto-forward some old unused email address to a current email address. use port 5225 instead of port 25. Now I have read many postfix spamassassin config howtos, but they are all out dated, using previous versions of freebsd or old versions of postfix and or spamassassin. And for sure none of them talk about using the new pkg versions. I have based my config on this howto http://www.freebsdonline.com/content/view/556/506/ When I run with the following config files I get this error over and over again until I postfix stop. Any help would be greatly appreciated. Apr 29 17:58:25 powerman sendmail[1915]: t3TLwPYV001915: SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via localhost, to bob@powerman.com Apr 29 17:58:40 powerman sendmail[1941]: t3TLweS4001941: SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via localhost, to MAILER-DAEMON@powerman.com /usr/local/etc/postfix/master.cf # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.postfix.org/master.5.html). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (no) (never) (100) # ========================================================================== smtp inet n - n - - smtpd -o content_filter=spamassassin #smtp inet n - n - 1 postscreen #smtpd pass - - n - - smtpd #dnsblog unix - - n - 0 dnsblog #tlsproxy unix - - n - 0 tlsproxy #submission inet n - n - - smtpd # -o syslog_name=postfix/submission # -o smtpd_tls_security_level=encrypt # -o smtpd_sasl_auth_enable=yes # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #smtps inet n - n - - smtpd # -o syslog_name=postfix/smtps # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #628 inet n - n - - qmqpd pickup unix n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr unix n - n 300 1 qmgr #qmgr unix n - n 300 1 oqmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - n - - smtp relay unix - - n - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error retry unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. # spamassassin unix - n n - - pipe user=spamd argv=/usr/local/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} /usr/local/etc/postfix/main.cf biff = no syslog_facility = local5 disable_dns_lookups = yes mailbox_size_limit = 100000000 message_size_limit = 100000000 ## 9999 value disables compatibility function compatibility_level = 9999 smtputf8_enable = no /usr/local/etc/mail/spamassassin/local.cf # This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # Only a small subset of options are listed below # ########################################################################### # Add *****SPAM***** to the Subject header of spam e-mails # rewrite_header Subject *****SPAM***** # Save spam messages as a message/rfc822 MIME attachment instead of # modifying the original message (0: off, 2: use text/plain instead) # report_safe 1 # Set which networks or hosts are considered 'trusted' by your mail # server (i.e. not spammers) # # trusted_networks 212.17.35. # Set file-locking method (flock is not safe over NFS, but is faster) # # lock_method flock # Set the threshold at which a message is considered spam (default: 5.0) # # required_score 5.0 # Use Bayesian classifier (default: 1) # # use_bayes 1 # Bayesian classifier auto-learning (default: 1) # # bayes_auto_learn 1 # Set headers which may provide inappropriate cues to the Bayesian # classifier # # bayes_ignore_header X-Bogosity # bayes_ignore_header X-Spam-Flag # bayes_ignore_header X-Spam-Status # Some shortcircuiting, if the plugin is enabled # ifplugin Mail::SpamAssassin::Plugin::Shortcircuit # # default: strongly-whitelisted mails are *really* whitelisted now, if the # shortcircuiting plugin is active, causing early exit to save CPU load. # Uncomment to turn this on # # shortcircuit USER_IN_WHITELIST on # shortcircuit USER_IN_DEF_WHITELIST on # shortcircuit USER_IN_ALL_SPAM_TO on # shortcircuit SUBJECT_IN_WHITELIST on # the opposite; blacklisted mails can also save CPU # # shortcircuit USER_IN_BLACKLIST on # shortcircuit USER_IN_BLACKLIST_TO on # shortcircuit SUBJECT_IN_BLACKLIST on # if you have taken the time to correctly specify your "trusted_networks", # this is another good way to save CPU # # shortcircuit ALL_TRUSTED on # and a well-trained bayes DB can save running rules, too # # shortcircuit BAYES_99 spam # shortcircuit BAYES_00 ham endif # Mail::SpamAssassin::Plugin::Shortcircuit From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 02:05:44 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 08CC0BDA for ; Thu, 30 Apr 2015 02:05:44 +0000 (UTC) Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B6FD618ED for ; Thu, 30 Apr 2015 02:05:43 +0000 (UTC) Received: by qku63 with SMTP id 63so25996994qku.3 for ; Wed, 29 Apr 2015 19:05:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ixOyl4OTvulxPzxoAfR9vQIx+gY/KTTWnmjTPtzPsJE=; b=kmuf5ppnEQTd7VxJWPBOPEipVgKxTYvZMDETXddr720Qy7Ok70Rjw6VbjeH0lVeVbn ZBaKnrtkO5IcsPGG3gwfIdWbhy/xCn5P3DIL5pkAKNaDotOsyNYgWJMGlsXDb/nkTO3Q T9yOWsW+H9/IAmvtmk+E2Q7ZezlMCaZK66fwf2mm7BVtjRGvV3UqpmLRMHTFNL2pDcm3 qO3cQjndzevZ1vsFRh8wQz76n7lCuoNYau9PQSiH2fSnWHXw8mZtRLxgEfbUEEWWGHjU nq+TKQHldDKuvApY7UQxTYEzGmP1vhcvn20mDqWjl3+6INqGfInNOT2sogfuYQggoHDu I0BQ== X-Received: by 10.55.15.129 with SMTP id 1mr3527655qkp.29.1430359542909; Wed, 29 Apr 2015 19:05:42 -0700 (PDT) Received: from [192.168.5.121] (adsl-98-87-130-252.bna.bellsouth.net. [98.87.130.252]) by mx.google.com with ESMTPSA id k71sm15628019qhc.42.2015.04.29.19.05.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Apr 2015 19:05:42 -0700 (PDT) Message-ID: <55418DF3.4000102@gmail.com> Date: Wed, 29 Apr 2015 21:05:39 -0500 From: Noel User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: using pkg for postfix/spamassassin install References: <55416FEB.3020101@gmail.com> In-Reply-To: <55416FEB.3020101@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 02:05:44 -0000 On 4/29/2015 6:57 PM, Ernie Luzar wrote: > Hello list. > > For many years been using postfix/qpopper for email service on my > lan with no problems. Now I want to add spamassassin in > preperation so I can also admin my public domain name on my own > computer instead of having my domain hoster do it for me. > > This is a list of my goals, > make email password required to send/receive email. > have email tagged with word "spam" in email subject line. > have spam email list all the spamassassin tests with scores in the > header so they can be seen. > don't have postfix duplicate any test that spamassassion is doing. > Use the pkg version of postfix & spamassassin. > Don't use any custom scripts > Can NOT be used as a relay email server by the public. > Auto-forward some old unused email address to a current email > address. > use port 5225 instead of port 25. > > > Now I have read many postfix spamassassin config howtos, but they > are all out dated, using previous versions of freebsd or old > versions of postfix and or spamassassin. And for sure none of them > talk about using the new pkg versions. I have based my config on > this howto http://www.freebsdonline.com/content/view/556/506/ > > When I run with the following config files I get this error over > and over again until I postfix stop. Any help would be greatly > appreciated. > > Apr 29 17:58:25 powerman sendmail[1915]: t3TLwPYV001915: > SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via > localhost, to bob@powerman.com > Apr 29 17:58:40 powerman sendmail[1941]: t3TLweS4001941: > SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via > localhost, to MAILER-DAEMON@powerman.com You have the sendmail package installed, along with postfix. Remove or disable sendmail. What's happening is that sendmail submits mail via SMTP back to postfix, which causes a mail loop. > > > /usr/local/etc/postfix/master.cf > # > # Postfix master process configuration file. For details on the > format > # of the file, see the master(5) manual page (command: "man 5 > master" or > # on-line: http://www.postfix.org/master.5.html). > # > # Do not forget to execute "postfix reload" after editing this file. > # > # > ========================================================================== > # service type private unpriv chroot wakeup maxproc command + > args > # (yes) (yes) (no) (never) (100) > # > ========================================================================== > smtp inet n - n - - smtpd > -o content_filter=spamassassin > > #smtp inet n - n - 1 postscreen > #smtpd pass - - n - - smtpd > #dnsblog unix - - n - 0 dnsblog > #tlsproxy unix - - n - 0 tlsproxy > #submission inet n - n - - smtpd > # -o syslog_name=postfix/submission > # -o smtpd_tls_security_level=encrypt > # -o smtpd_sasl_auth_enable=yes > # -o smtpd_reject_unlisted_recipient=no > # -o smtpd_client_restrictions=$mua_client_restrictions > # -o smtpd_helo_restrictions=$mua_helo_restrictions > # -o smtpd_sender_restrictions=$mua_sender_restrictions > # -o smtpd_recipient_restrictions= > # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject > # -o milter_macro_daemon_name=ORIGINATING > #smtps inet n - n - - smtpd > # -o syslog_name=postfix/smtps > # -o smtpd_tls_wrappermode=yes > # -o smtpd_sasl_auth_enable=yes > # -o smtpd_reject_unlisted_recipient=no > # -o smtpd_client_restrictions=$mua_client_restrictions > # -o smtpd_helo_restrictions=$mua_helo_restrictions > # -o smtpd_sender_restrictions=$mua_sender_restrictions > # -o smtpd_recipient_restrictions= > # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject > # -o milter_macro_daemon_name=ORIGINATING > #628 inet n - n - - qmqpd > pickup unix n - n 60 1 pickup > cleanup unix n - n - 0 cleanup > qmgr unix n - n 300 1 qmgr > #qmgr unix n - n 300 1 oqmgr > tlsmgr unix - - n 1000? 1 tlsmgr > rewrite unix - - n - - > trivial-rewrite > bounce unix - - n - 0 bounce > defer unix - - n - 0 bounce > trace unix - - n - 0 bounce > verify unix - - n - 1 verify > flush unix n - n 1000? 0 flush > proxymap unix - - n - - proxymap > proxywrite unix - - n - 1 proxymap > smtp unix - - n - - smtp > relay unix - - n - - smtp > # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 > showq unix n - n - - showq > error unix - - n - - error > retry unix - - n - - error > discard unix - - n - - discard > local unix - n n - - local > virtual unix - n n - - virtual > lmtp unix - - n - - lmtp > anvil unix - - n - 1 anvil > scache unix - - n - 1 scache > # > # > ==================================================================== > # Interfaces to non-Postfix software. > # > spamassassin unix - n n - - pipe > user=spamd argv=/usr/local/bin/spamc -f -e > /usr/sbin/sendmail -oi -f ${sender} ${recipient} > > > > /usr/local/etc/postfix/main.cf > biff = no > syslog_facility = local5 > disable_dns_lookups = yes > mailbox_size_limit = 100000000 > message_size_limit = 100000000 > ## 9999 value disables compatibility function > compatibility_level = 9999 > smtputf8_enable = no > > > > > /usr/local/etc/mail/spamassassin/local.cf > # This is the right place to customize your installation of > SpamAssassin. > # > # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be > # tweaked. > # > # Only a small subset of options are listed below > # > ########################################################################### > > > # Add *****SPAM***** to the Subject header of spam e-mails > # > rewrite_header Subject *****SPAM***** > > > # Save spam messages as a message/rfc822 MIME attachment instead of > # modifying the original message (0: off, 2: use text/plain > instead) > # > report_safe 1 > > > # Set which networks or hosts are considered 'trusted' by your mail > # server (i.e. not spammers) > # > # trusted_networks 212.17.35. > > > # Set file-locking method (flock is not safe over NFS, but is > faster) > # > # lock_method flock > > > # Set the threshold at which a message is considered spam > (default: 5.0) > # > # required_score 5.0 > > > # Use Bayesian classifier (default: 1) > # > # use_bayes 1 > > > # Bayesian classifier auto-learning (default: 1) > # > # bayes_auto_learn 1 > > > # Set headers which may provide inappropriate cues to the Bayesian > # classifier > # > # bayes_ignore_header X-Bogosity > # bayes_ignore_header X-Spam-Flag > # bayes_ignore_header X-Spam-Status > > > # Some shortcircuiting, if the plugin is enabled > # > ifplugin Mail::SpamAssassin::Plugin::Shortcircuit > # > # default: strongly-whitelisted mails are *really* whitelisted > now, if the > # shortcircuiting plugin is active, causing early exit to save > CPU load. > # Uncomment to turn this on > # > # shortcircuit USER_IN_WHITELIST on > # shortcircuit USER_IN_DEF_WHITELIST on > # shortcircuit USER_IN_ALL_SPAM_TO on > # shortcircuit SUBJECT_IN_WHITELIST on > > # the opposite; blacklisted mails can also save CPU > # > # shortcircuit USER_IN_BLACKLIST on > # shortcircuit USER_IN_BLACKLIST_TO on > # shortcircuit SUBJECT_IN_BLACKLIST on > > # if you have taken the time to correctly specify your > "trusted_networks", > # this is another good way to save CPU > # > # shortcircuit ALL_TRUSTED on > > # and a well-trained bayes DB can save running rules, too > # > # shortcircuit BAYES_99 spam > # shortcircuit BAYES_00 ham > > endif # Mail::SpamAssassin::Plugin::Shortcircuit > > > > > > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 03:35:39 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76A871A0 for ; Thu, 30 Apr 2015 03:35:39 +0000 (UTC) Received: from mail-pa0-x235.google.com (mail-pa0-x235.google.com [IPv6:2607:f8b0:400e:c03::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C9B413BA for ; Thu, 30 Apr 2015 03:35:39 +0000 (UTC) Received: by pabsx10 with SMTP id sx10so46606046pab.3 for ; Wed, 29 Apr 2015 20:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=C0Lr+48KQAUaG50jVhNMgbY3Wje6Y2qQka5zWfWvWJI=; b=eoBLMymYjUvuWXrEPlQEA2eIpJgZm9vG4C8RGskDl6QpobXWzSUutYlwiRGgmMIRm+ eKW/BIdyrvHxMU/qLsVtobiqhiEq3f3y3vBoPMo9kAFW7i1yoXFoFBJwFmFsQKffI1zK u6T7flCpVzGEIyvgWQpSZ4tuJtqbG6T+DRRAI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; bh=C0Lr+48KQAUaG50jVhNMgbY3Wje6Y2qQka5zWfWvWJI=; b=G/w6KHe4t9r6wmTVxoN2jkyvMeX2hFKJ8rvGeHpTSCHMNAXlYzv0M2orQEeR1+hapz UvziFhyZ/vB5jzZZRxN460+FDAlyn0gl4Lqpyugk5flImEcBCWYdcArbzi46Kn3vlO6Z VRUvYe0+c7viuagqYV4urx4B4VLr1upasyQymONhMJN32fA9pN+N6u6wfSt3X6fjA97L ziSLVLV4u/4HIXaFbbolebaBCr9ld8LixgvAN1ScDadyKyjTb55PjpwvvUF4sziygjQN iwWKQ5n1+3LB0Glj01SP3LO1u/UvqID0DjE1R3BnldwwjkpnS8afGK4zAZnTOqc7bgKV VHpA== X-Gm-Message-State: ALoCoQmRoMxL9v+Kox/teHrkl66DoCoKI3cz7OXDxjVEU8f0CrKuQtHBf3GYSio1g0MaXBx2J/Cy X-Received: by 10.68.130.98 with SMTP id od2mr4310807pbb.54.1430364938504; Wed, 29 Apr 2015 20:35:38 -0700 (PDT) Received: from imac.diggler.dvniven.com (c-107-3-170-95.hsd1.ca.comcast.net. [107.3.170.95]) by mx.google.com with ESMTPSA id om4sm595465pdb.68.2015.04.29.20.35.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Apr 2015 20:35:37 -0700 (PDT) From: Doug Niven Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: PF not loading at boot time Message-Id: <7B5CA749-D7EF-4A2F-9FA0-E3ADF3E5ADDF@ucsc.edu> Date: Wed, 29 Apr 2015 20:35:35 -0700 To: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 03:35:39 -0000 I've got a PF anchor referenced in my /etc/pf.conf file here: table { 111.222.0.0/16, 222.222.0.0/16 } block in proto tcp from any to any port 22 pass in on en0 proto tcp from to en0 port 22 flags S/SA = keep state But while the /etc/pf.conf file loads fine manually, it does not load at = boot, generating the following error in my log: no IP address found for en0 /etc/pf.anchors/my-anchor:6: could not parse host specification pfctl: Syntax error in config file: pf rules not loaded I suspect this is because at the time PF loads at boot, en0 doesn't yet = have an IP address or network state. Is there any other way I might be able to write this rule to avoid this = problem? Thanks in advance, Doug From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 06:08:43 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B0FC4A68 for ; Thu, 30 Apr 2015 06:08:43 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 1DF8F1334 for ; Thu, 30 Apr 2015 06:08:42 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38664050; Thu, 30 Apr 2015 12:08:38 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3U68ZNA072769; Thu, 30 Apr 2015 12:08:38 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3U68ZVP072768; Thu, 30 Apr 2015 12:08:35 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Thu, 30 Apr 2015 12:08:35 +0600 From: Victor Sudakov To: Nikos Vassiliadis , freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP Message-ID: <20150430060835.GA72072@admin.sibptus.tomsk.ru> References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> <20150427093355.GA86151@admin.sibptus.tomsk.ru> <553E400F.2040906@gmx.com> <20150427143952.GA94033@admin.sibptus.tomsk.ru> <553E9A07.1020900@gmx.com> <20150428034047.GA4874@admin.sibptus.tomsk.ru> <553F699C.9030409@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <553F699C.9030409@gmx.com> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 06:08:43 -0000 Nikos Vassiliadis wrote: > > On 04/28/15 05:40, Victor Sudakov wrote: > > Fine. Maybe there are other ways to tunnel Ethernet without relying on > > if_bridge ? > > Then there is netgraph bridging, netgraph bridging AFAIK doesn't have > this feature, it doesn't filter out special MACs. > > You can ask at net@ for a script/help I believe. I definitely will because I have found a strange thing. The re0 NIC receives both tagged and untagged frames from a switch. When I monitor the incoming traffic with "nghook -a re0: lower", I see that both tagged and untagged frames are merged into one untagged stream, i.e. ng_ether somehow strips the vlan tag from frames. If I only knew how to obtain unmodified frames for further processing within the netgraph system, I would know how to build my transparent tunnel. I have not found any relevant messages or options I could set for ng_ether (like NGM_ETHER_SET_DONT_TOUCH_ANYTHING_DAMN_YOU maybe). -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 09:20:39 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C08BE2B for ; Thu, 30 Apr 2015 09:20:39 +0000 (UTC) Received: from testsoekris.hotsoft.nl (unknown [IPv6:2001:888:1227:0:200:24ff:fec9:5934]) (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 DD6051886 for ; Thu, 30 Apr 2015 09:20:38 +0000 (UTC) Received: from beastie.hotsoft.nl (beastie.hotsoft.nl [IPv6:2001:888:1227:0:219:d1ff:fee8:91eb]) by testsoekris.hotsoft.nl (8.14.7/8.14.7) with ESMTP id t3U9KW6N008166; Thu, 30 Apr 2015 11:20:32 +0200 (CEST) (envelope-from hans@beastielabs.net) Message-ID: <5541F3E0.1070602@beastielabs.net> Date: Thu, 30 Apr 2015 11:20:32 +0200 From: Hans Ottevanger User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Doug Niven , freebsd-questions@freebsd.org Subject: Re: PF not loading at boot time References: <7B5CA749-D7EF-4A2F-9FA0-E3ADF3E5ADDF@ucsc.edu> In-Reply-To: <7B5CA749-D7EF-4A2F-9FA0-E3ADF3E5ADDF@ucsc.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 09:20:39 -0000 On 04/30/15 05:35, Doug Niven wrote: > I've got a PF anchor referenced in my /etc/pf.conf file here: > > table { 111.222.0.0/16, 222.222.0.0/16 } > block in proto tcp from any to any port 22 > pass in on en0 proto tcp from to en0 port 22 flags S/SA keep state > > But while the /etc/pf.conf file loads fine manually, it does not load at boot, generating the following error in my log: > > no IP address found for en0 > /etc/pf.anchors/my-anchor:6: could not parse host specification > pfctl: Syntax error in config file: pf rules not loaded > > I suspect this is because at the time PF loads at boot, en0 doesn't yet have an IP address or network state. > > Is there any other way I might be able to write this rule to avoid this problem? > Put parentheses around en0 in every place where an IP address is expected. That will postpone the usage of the IP address of en0 until the actual evaluation of the rule (when a packet is processed). So in your case: pass in on en0 proto tcp from to (en0) port 22 flags S/SA keep state > Thanks in advance, > > Doug > Kind regards, Hans From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 11:28:30 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 814EEA28 for ; Thu, 30 Apr 2015 11:28:30 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49AF516F6 for ; Thu, 30 Apr 2015 11:28:30 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so9001042igb.0 for ; Thu, 30 Apr 2015 04:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=3lcoRUN//qrXwzFf5CVR0AZA2yXqIQxg69HDPBAE+28=; b=mrxxXuOMCIH+Mggazl9OS3W5YCEW7lbiqAxTbSAlXuhFYzpZbJzEy/1sMb27pXnKbF aOniWk8+n8qW5R2jFSg3hh/ozBQnY95yzt6fx5OTe5yUudFT8JPaJY6kK2Bjdl1qsfrX M9e+gICmZ63jLGfenCTD9qKQkYzpJ3l71BZytarsbLR+Jbwu23d/6lYfDnLSISf/VO7j 7H1A+8yxmakmXFHb+71BTkY6PG+ZHBx7W8ETIuzxoA4OxGG3IUxIHCsWzBu7IXANLioc aWm03zyX46HQC9tofb4DCucwIoLQ1TiM2VjbWgk7jhhXKl13zWnt0sCEzoF3BFw95MG/ EYZA== X-Received: by 10.50.77.13 with SMTP id o13mr2828547igw.39.1430393309381; Thu, 30 Apr 2015 04:28:29 -0700 (PDT) Received: from [10.0.10.5] (cpe-76-190-244-6.neo.res.rr.com. [76.190.244.6]) by mx.google.com with ESMTPSA id p87sm1320635ioi.42.2015.04.30.04.28.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Apr 2015 04:28:28 -0700 (PDT) Message-ID: <554211DC.8030502@gmail.com> Date: Thu, 30 Apr 2015 07:28:28 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Noel CC: freebsd-questions@freebsd.org Subject: Re: using pkg for postfix/spamassassin install References: <55416FEB.3020101@gmail.com> <55418DF3.4000102@gmail.com> In-Reply-To: <55418DF3.4000102@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 11:28:30 -0000 Noel wrote: > On 4/29/2015 6:57 PM, Ernie Luzar wrote: >> Hello list. >> >> For many years been using postfix/qpopper for email service on my >> lan with no problems. Now I want to add spamassassin in >> preperation so I can also admin my public domain name on my own >> computer instead of having my domain hoster do it for me. >> >> This is a list of my goals, >> make email password required to send/receive email. >> have email tagged with word "spam" in email subject line. >> have spam email list all the spamassassin tests with scores in the >> header so they can be seen. >> don't have postfix duplicate any test that spamassassion is doing. >> Use the pkg version of postfix & spamassassin. >> Don't use any custom scripts >> Can NOT be used as a relay email server by the public. >> Auto-forward some old unused email address to a current email >> address. >> use port 5225 instead of port 25. >> >> >> Now I have read many postfix spamassassin config howtos, but they >> are all out dated, using previous versions of freebsd or old >> versions of postfix and or spamassassin. And for sure none of them >> talk about using the new pkg versions. I have based my config on >> this howto http://www.freebsdonline.com/content/view/556/506/ >> >> When I run with the following config files I get this error over >> and over again until I postfix stop. Any help would be greatly >> appreciated. >> >> Apr 29 17:58:25 powerman sendmail[1915]: t3TLwPYV001915: >> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >> localhost, to bob@powerman.com >> Apr 29 17:58:40 powerman sendmail[1941]: t3TLweS4001941: >> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >> localhost, to MAILER-DAEMON@powerman.com >> >> /usr/local/etc/postfix/master.cf >> # >> # Postfix master process configuration file. For details on the >> format >> # of the file, see the master(5) manual page (command: "man 5 >> master" or >> # on-line: http://www.postfix.org/master.5.html). >> # >> # Do not forget to execute "postfix reload" after editing this file. >> # >> # >> ========================================================================== >> # service type private unpriv chroot wakeup maxproc command + >> args >> # (yes) (yes) (no) (never) (100) >> # >> ========================================================================== >> smtp inet n - n - - smtpd >> -o content_filter=spamassassin >> >> #smtp inet n - n - 1 postscreen >> #smtpd pass - - n - - smtpd >> #dnsblog unix - - n - 0 dnsblog >> #tlsproxy unix - - n - 0 tlsproxy >> #submission inet n - n - - smtpd >> # -o syslog_name=postfix/submission >> # -o smtpd_tls_security_level=encrypt >> # -o smtpd_sasl_auth_enable=yes >> # -o smtpd_reject_unlisted_recipient=no >> # -o smtpd_client_restrictions=$mua_client_restrictions >> # -o smtpd_helo_restrictions=$mua_helo_restrictions >> # -o smtpd_sender_restrictions=$mua_sender_restrictions >> # -o smtpd_recipient_restrictions= >> # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject >> # -o milter_macro_daemon_name=ORIGINATING >> #smtps inet n - n - - smtpd >> # -o syslog_name=postfix/smtps >> # -o smtpd_tls_wrappermode=yes >> # -o smtpd_sasl_auth_enable=yes >> # -o smtpd_reject_unlisted_recipient=no >> # -o smtpd_client_restrictions=$mua_client_restrictions >> # -o smtpd_helo_restrictions=$mua_helo_restrictions >> # -o smtpd_sender_restrictions=$mua_sender_restrictions >> # -o smtpd_recipient_restrictions= >> # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject >> # -o milter_macro_daemon_name=ORIGINATING >> #628 inet n - n - - qmqpd >> pickup unix n - n 60 1 pickup >> cleanup unix n - n - 0 cleanup >> qmgr unix n - n 300 1 qmgr >> #qmgr unix n - n 300 1 oqmgr >> tlsmgr unix - - n 1000? 1 tlsmgr >> rewrite unix - - n - - >> trivial-rewrite >> bounce unix - - n - 0 bounce >> defer unix - - n - 0 bounce >> trace unix - - n - 0 bounce >> verify unix - - n - 1 verify >> flush unix n - n 1000? 0 flush >> proxymap unix - - n - - proxymap >> proxywrite unix - - n - 1 proxymap >> smtp unix - - n - - smtp >> relay unix - - n - - smtp >> # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 >> showq unix n - n - - showq >> error unix - - n - - error >> retry unix - - n - - error >> discard unix - - n - - discard >> local unix - n n - - local >> virtual unix - n n - - virtual >> lmtp unix - - n - - lmtp >> anvil unix - - n - 1 anvil >> scache unix - - n - 1 scache >> # >> # >> ==================================================================== >> # Interfaces to non-Postfix software. >> # >> spamassassin unix - n n - - pipe >> user=spamd argv=/usr/local/bin/spamc -f -e >> /usr/sbin/sendmail -oi -f ${sender} ${recipient} >> >> >> >> /usr/local/etc/postfix/main.cf >> biff = no >> syslog_facility = local5 >> disable_dns_lookups = yes >> mailbox_size_limit = 100000000 >> message_size_limit = 100000000 >> ## 9999 value disables compatibility function >> compatibility_level = 9999 >> smtputf8_enable = no >> >> >> >> >> /usr/local/etc/mail/spamassassin/local.cf >> # This is the right place to customize your installation of >> SpamAssassin. >> # >> # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be >> # tweaked. >> # >> # Only a small subset of options are listed below >> # >> ########################################################################### >> >> >> # Add *****SPAM***** to the Subject header of spam e-mails >> # >> rewrite_header Subject *****SPAM***** >> >> >> # Save spam messages as a message/rfc822 MIME attachment instead of >> # modifying the original message (0: off, 2: use text/plain >> instead) >> # >> report_safe 1 >> >> >> # Set which networks or hosts are considered 'trusted' by your mail >> # server (i.e. not spammers) >> # >> # trusted_networks 212.17.35. >> >> >> # Set file-locking method (flock is not safe over NFS, but is >> faster) >> # >> # lock_method flock >> >> >> # Set the threshold at which a message is considered spam >> (default: 5.0) >> # >> # required_score 5.0 >> >> >> # Use Bayesian classifier (default: 1) >> # >> # use_bayes 1 >> >> >> # Bayesian classifier auto-learning (default: 1) >> # >> # bayes_auto_learn 1 >> >> >> # Set headers which may provide inappropriate cues to the Bayesian >> # classifier >> # >> # bayes_ignore_header X-Bogosity >> # bayes_ignore_header X-Spam-Flag >> # bayes_ignore_header X-Spam-Status >> >> >> # Some shortcircuiting, if the plugin is enabled >> # >> ifplugin Mail::SpamAssassin::Plugin::Shortcircuit >> # >> # default: strongly-whitelisted mails are *really* whitelisted >> now, if the >> # shortcircuiting plugin is active, causing early exit to save >> CPU load. >> # Uncomment to turn this on >> # >> # shortcircuit USER_IN_WHITELIST on >> # shortcircuit USER_IN_DEF_WHITELIST on >> # shortcircuit USER_IN_ALL_SPAM_TO on >> # shortcircuit SUBJECT_IN_WHITELIST on >> >> # the opposite; blacklisted mails can also save CPU >> # >> # shortcircuit USER_IN_BLACKLIST on >> # shortcircuit USER_IN_BLACKLIST_TO on >> # shortcircuit SUBJECT_IN_BLACKLIST on >> >> # if you have taken the time to correctly specify your >> "trusted_networks", >> # this is another good way to save CPU >> # >> # shortcircuit ALL_TRUSTED on >> >> # and a well-trained bayes DB can save running rules, too >> # >> # shortcircuit BAYES_99 spam >> # shortcircuit BAYES_00 ham >> >> endif # Mail::SpamAssassin::Plugin::Shortcircuit >> >> >> > > You have the sendmail package installed, along with postfix. Remove > or disable sendmail. > > What's happening is that sendmail submits mail via SMTP back to > postfix, which causes a mail loop. > sendmail is what comes with the basic freebsd install IE, no package. sendmail is disabled in rc.conf so that is not the problem. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 12:43:26 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D89EB676 for ; Thu, 30 Apr 2015 12:43:26 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 A301E1370 for ; Thu, 30 Apr 2015 12:43:26 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-245.adsl.hiwaay.net [216.180.76.245]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t3UChImP020306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 30 Apr 2015 07:43:18 -0500 Message-ID: <55422366.8060000@hiwaay.net> Date: Thu, 30 Apr 2015 07:49:33 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "FreeBSD Questions !!!!" , NetBSD ARM port Subject: minor syslog issue Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 12:43:26 -0000 I have a small LAN w/ a Raspberry Pi B+ as my time server & a FreeBSD 9.3Rp13 machine (this box, as it happens), among others. The FBSD box is my daily driver, & I want to get the RPi to syslog messages to the FBSD box for convenience, & possibly reduced write fatigue of the microSDHC 'HDD' on the RPi. I (think I) configured the RPi to log to the FreeBSD box, named 'kabini1': rpi # cat syslog.conf # $NetBSD: syslog.conf,v 1.9 2004/07/23 03:45:42 mycroft Exp $ *.err;kern.*;auth.notice;authpriv.none;mail.crit /dev/console *.err;kern.*;auth.notice;authpriv.none;mail.crit /var/log/messages *.err;kern.*;auth.notice;authpriv.none;mail.crit @kabini1 *.info;auth,authpriv,cron,ftp,kern,lpr,mail.none /var/log/messages kern.debug /var/log/messages *.info;auth,authpriv,cron,ftp,kern,lpr,mail.none @kabini1 kern.debug @kabini1 # The authpriv log file should be restricted access; these # messages shouldn't go to terminals or publically-readable # files. auth,authpriv.info /var/log/authlog cron.info /var/log/cron ftp.info /var/log/xferlog lpr.info /var/log/lpd-errs mail.info /var/log/maillog #uucp.info /var/spool/uucp/ERRORS *.emerg * *.emerg @kabini1 #*.notice root rpi # uname -a NetBSD rpi 7.0_BETA NetBSD 7.0_BETA (RPI.201503272230Z) evbarm rpi # I also told the syslogd on kabini1 to accept log traffic from everything on my LAN: [root@kabini1, /etc, 10:31:19am] 462 % ps -aux | grep syslog root 743 0.0 0.0 12096 1772 ?? Ss 14Apr15 0:03.63 /usr/sbin/syslogd -a 192.168.0.0/16 -C -T root 783 0.0 0.1 24344 20352 ?? Ss 14Apr15 0:37.61 /usr/sbin/amd -p -a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map root 66565 0.0 0.0 16336 2028 7 S+ 7:36AM 0:00.00 grep syslog You have new mail. [root@kabini1, /etc, 7:36:09am] 463 % uname -a FreeBSD kabini1.local 9.3-RELEASE-p13 FreeBSD 9.3-RELEASE-p13 #0: Tue Apr 7 03:01:12 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [root@kabini1, /etc, 7:47:19am] 464 % So far after a day or 2, nothing appears from the RPi on kabini1, including nothing in /var/log/security (possibly indicating firewall impeding traffic). Almost certainly pilot error, any help appreciated :-) .... TIA & have a good one. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 13:11:05 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 966332F7 for ; Thu, 30 Apr 2015 13:11:05 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B87017E6 for ; Thu, 30 Apr 2015 13:11:05 +0000 (UTC) Received: from zero-gravitas.local (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t3UDAq25070955 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 14:10:54 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t3UDAq25070955 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1430399454; bh=Rwh5nIjL9/omnRrjwhLaK99Ha5ObqQnp9Ay/cTUCjMI=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Thu,=2030=20Apr=202015=2014:10:38=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20minor=20syslog=20issue|References :=20<55422366.8060000@hiwaay.net>|In-Reply-To:=20<55422366.8060000 @hiwaay.net>; b=b3Z7TwNPj6zMhwWpxXlCkz0KFMOIEiuidJUvDpgLIsjSdQfWZWfF2CkI4HxjfYzxT VHdOqphM3noFkCQWxdCQ6EVUWnLOhDcJbZE4hRMhKlr5nQo8ba0dTufad4u06gkFMa uFB+9F3HzHUGaLAWf8Flym8uH+/dTdEO+F3u3lr4= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be zero-gravitas.local Message-ID: <554229CE.30009@infracaninophile.co.uk> Date: Thu, 30 Apr 2015 14:10:38 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> In-Reply-To: <55422366.8060000@hiwaay.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PX6pOuTLWgjgeunqmddm1gwMGXpsO8c9h" X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 13:11:05 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PX6pOuTLWgjgeunqmddm1gwMGXpsO8c9h Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/04/30 13:42, William A. Mahaffey III wrote: > So far after a day or 2, nothing appears from the RPi on kabini1, > including nothing in /var/log/security (possibly indicating firewall > impeding traffic). Almost certainly pilot error, any help appreciated > :-) .... TIA & have a good one. You need to tell the receiving syslogd what port numbers to accept traffic from, as well as the IP numbers. In /etc/rc.conf: syslogd_flags=3D"-a 192.168.0.0/16:514 -C -T" assuming you're using the default logging port for traffic from your RPi+. If not, then 192.168.0.0/16:* will allow traffic from any port number, although personally I'd spend some quality time with tcpdump and/or wireshark looking at what network ports were actually used. Cheers, Matthew --PX6pOuTLWgjgeunqmddm1gwMGXpsO8c9h Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJVQinVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnCY0P/1KOh8dsX0hFOW2347AJ3kt6 PlnHDnokro8f/5BvFoWQ1YisBtwxfzmWZVC6ftm/p3wTwdeen/2B7oS15u/g42ln b/I3KFY0uo1zV8OEXbgozFyZBl+AtJvQhLAZHMnfBCdXuBvXL5jWzILYhrzy9M/L tHjkkiVhs+db8nuoNAHGVTCMXh4dxABUlo8XUWdg1cWLmQU/hNNZnQVVYqnq4mMO 2msCQjd5TwKLLpcvzOj2W5YTZ9p0I3eNA1OxymV339jGXkxTei7NEQoFQLpy9v2V rx2Zlpa5Tu6vI3epMb/Y2h/bv+Y3hybVircgI6H1Qclyd+y9XaQLhVStr3LejhGn BDxl1Kf6zwtCDfU8q8W6rQW4NLk7k6psaG/kJ5yP9gnmxoCPwmp3XAkFDBQQgUl8 gDjJ8D+hiVPUDEOJX0NhQPkQtJ/ZhGPAVd37aGT16HnDvCzLHW3URLSZeeBoJU7b nZXeEaX6uQFEYkxIxv6Ee459nAv8v1+b+QjNRvgZW/cXCglylBcXrBX+10Q2Y+O/ Id9aWZhD6fuxBO0+voLAIfmDkGlCLXgIkDaJp3ti1MXsG1pUJE/8uJDnYjr6XD8+ wT3rhUHvAXuMIJe4oGF8uTdHx8V5i/vOqJKM6ifvO/Qp7Rq955QLOQ8VLszPq3A3 ZPt5/WSlajMrvZDgm6Qm =RglU -----END PGP SIGNATURE----- --PX6pOuTLWgjgeunqmddm1gwMGXpsO8c9h-- From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 13:28:08 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 280BD7AF for ; Thu, 30 Apr 2015 13:28:08 +0000 (UTC) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D2FA9195E for ; Thu, 30 Apr 2015 13:28:07 +0000 (UTC) Received: by qcbii10 with SMTP id ii10so28667795qcb.2 for ; Thu, 30 Apr 2015 06:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=IfCSGwUvytZmfjWGC2LtivIO7G1DJlSygPKWqhM2FUw=; b=i12KQ07LOOW7SsOrEUsB/nvxI2jVTsLbu9jUTFhY9A6bFTzuW0tN6wE1oZN9yYrGJJ crlQbKK/3QaKKti/bgZC5Q5fIpDihgo5rKHFOcUKatV5kvUdLW7uejVak6+5v6mDDBRS UpwyGRBPjJR7hVfV0PJPqroNhsKiK8ZkaGNzCuiFBVGDBJB8LGF4cIFUd5z8yxyhkMKI 1VlveDhZwwCBz5LuAaY2F91lOFs/4h4yNK1IbtQS+YoJmZ6irq6Pv/Du3KbPDrnj9POT QBPp8mR2N+o1WUwV7bUsJfiI6u/CUIvZw8q6AOuEnCWtBYrkmc+6iDrwXV0fa9uVqVm1 Y18g== X-Received: by 10.140.231.210 with SMTP id b201mr4594966qhc.82.1430400486961; Thu, 30 Apr 2015 06:28:06 -0700 (PDT) Received: from [192.168.70.205] (50-200-12-74-static.hfc.comcastbusiness.net. [50.200.12.74]) by mx.google.com with ESMTPSA id r198sm16326162qha.2.2015.04.30.06.28.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 06:28:06 -0700 (PDT) Message-ID: <55422DE7.2010506@gmail.com> Date: Thu, 30 Apr 2015 08:28:07 -0500 From: Noel User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Ernie Luzar CC: freebsd-questions@freebsd.org Subject: Re: using pkg for postfix/spamassassin install References: <55416FEB.3020101@gmail.com> <55418DF3.4000102@gmail.com> <554211DC.8030502@gmail.com> In-Reply-To: <554211DC.8030502@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 13:28:08 -0000 On 4/30/2015 6:28 AM, Ernie Luzar wrote: > Noel wrote: >> On 4/29/2015 6:57 PM, Ernie Luzar wrote: >>> Hello list. >>> >>> For many years been using postfix/qpopper for email service on my >>> lan with no problems. Now I want to add spamassassin in >>> preperation so I can also admin my public domain name on my own >>> computer instead of having my domain hoster do it for me. >>> >>> This is a list of my goals, >>> make email password required to send/receive email. >>> have email tagged with word "spam" in email subject line. >>> have spam email list all the spamassassin tests with scores in >>> the >>> header so they can be seen. >>> don't have postfix duplicate any test that spamassassion is >>> doing. >>> Use the pkg version of postfix & spamassassin. >>> Don't use any custom scripts >>> Can NOT be used as a relay email server by the public. >>> Auto-forward some old unused email address to a current email >>> address. >>> use port 5225 instead of port 25. >>> >>> >>> Now I have read many postfix spamassassin config howtos, but they >>> are all out dated, using previous versions of freebsd or old >>> versions of postfix and or spamassassin. And for sure none of them >>> talk about using the new pkg versions. I have based my config on >>> this howto http://www.freebsdonline.com/content/view/556/506/ >>> >>> When I run with the following config files I get this error over >>> and over again until I postfix stop. Any help would be greatly >>> appreciated. >>> >>> Apr 29 17:58:25 powerman sendmail[1915]: t3TLwPYV001915: >>> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >>> localhost, to bob@powerman.com >>> Apr 29 17:58:40 powerman sendmail[1941]: t3TLweS4001941: >>> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >>> localhost, to MAILER-DAEMON@powerman.com >>> >>> /usr/local/etc/postfix/master.cf >>> # >>> # Postfix master process configuration file. For details on the >>> format >>> # of the file, see the master(5) manual page (command: "man 5 >>> master" or >>> # on-line: http://www.postfix.org/master.5.html). >>> # >>> # Do not forget to execute "postfix reload" after editing this >>> file. >>> # >>> # >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >>> >>> # service type private unpriv chroot wakeup maxproc command + >>> args >>> # (yes) (yes) (no) (never) (100) >>> # >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >>> >>> smtp inet n - n - - smtpd >>> -o content_filter=3Dspamassassin >>> >>> #smtp inet n - n - 1 postscreen >>> #smtpd pass - - n - - smtpd >>> #dnsblog unix - - n - 0 dnsblog >>> #tlsproxy unix - - n - 0 tlsproxy >>> #submission inet n - n - - smtpd >>> # -o syslog_name=3Dpostfix/submission >>> # -o smtpd_tls_security_level=3Dencrypt >>> # -o smtpd_sasl_auth_enable=3Dyes >>> # -o smtpd_reject_unlisted_recipient=3Dno >>> # -o smtpd_client_restrictions=3D$mua_client_restrictions >>> # -o smtpd_helo_restrictions=3D$mua_helo_restrictions >>> # -o smtpd_sender_restrictions=3D$mua_sender_restrictions >>> # -o smtpd_recipient_restrictions=3D >>> # -o smtpd_relay_restrictions=3Dpermit_sasl_authenticated,reject >>> # -o milter_macro_daemon_name=3DORIGINATING >>> #smtps inet n - n - - smtpd >>> # -o syslog_name=3Dpostfix/smtps >>> # -o smtpd_tls_wrappermode=3Dyes >>> # -o smtpd_sasl_auth_enable=3Dyes >>> # -o smtpd_reject_unlisted_recipient=3Dno >>> # -o smtpd_client_restrictions=3D$mua_client_restrictions >>> # -o smtpd_helo_restrictions=3D$mua_helo_restrictions >>> # -o smtpd_sender_restrictions=3D$mua_sender_restrictions >>> # -o smtpd_recipient_restrictions=3D >>> # -o smtpd_relay_restrictions=3Dpermit_sasl_authenticated,reject >>> # -o milter_macro_daemon_name=3DORIGINATING >>> #628 inet n - n - - qmqpd >>> pickup unix n - n 60 1 pickup >>> cleanup unix n - n - 0 cleanup >>> qmgr unix n - n 300 1 qmgr >>> #qmgr unix n - n 300 1 oqmgr >>> tlsmgr unix - - n 1000? 1 tlsmgr >>> rewrite unix - - n - - =20 >>> trivial-rewrite >>> bounce unix - - n - 0 bounce >>> defer unix - - n - 0 bounce >>> trace unix - - n - 0 bounce >>> verify unix - - n - 1 verify >>> flush unix n - n 1000? 0 flush >>> proxymap unix - - n - - proxymap >>> proxywrite unix - - n - 1 proxymap >>> smtp unix - - n - - smtp >>> relay unix - - n - - smtp >>> # -o smtp_helo_timeout=3D5 -o smtp_connect_timeout=3D5 >>> showq unix n - n - - showq >>> error unix - - n - - error >>> retry unix - - n - - error >>> discard unix - - n - - discard >>> local unix - n n - - local >>> virtual unix - n n - - virtual >>> lmtp unix - - n - - lmtp >>> anvil unix - - n - 1 anvil >>> scache unix - - n - 1 scache >>> # >>> # >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> >>> # Interfaces to non-Postfix software. >>> # >>> spamassassin unix - n n - - pipe >>> user=3Dspamd argv=3D/usr/local/bin/spamc -f -e >>> /usr/sbin/sendmail -oi -f ${sender} ${recipient} >>> >>> >>> >>> /usr/local/etc/postfix/main.cf >>> biff =3D no >>> syslog_facility =3D local5 >>> disable_dns_lookups =3D yes >>> mailbox_size_limit =3D 100000000 >>> message_size_limit =3D 100000000 >>> ## 9999 value disables compatibility function >>> compatibility_level =3D 9999 >>> smtputf8_enable =3D no >>> >>> >>> >>> >>> /usr/local/etc/mail/spamassassin/local.cf >>> # This is the right place to customize your installation of >>> SpamAssassin. >>> # >>> # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be >>> # tweaked. >>> # >>> # Only a small subset of options are listed below >>> # >>> #####################################################################= ###### >>> >>> >>> >>> # Add *****SPAM***** to the Subject header of spam e-mails >>> # >>> rewrite_header Subject *****SPAM***** >>> >>> >>> # Save spam messages as a message/rfc822 MIME attachment >>> instead of >>> # modifying the original message (0: off, 2: use text/plain >>> instead) >>> # >>> report_safe 1 >>> >>> >>> # Set which networks or hosts are considered 'trusted' by your >>> mail >>> # server (i.e. not spammers) >>> # >>> # trusted_networks 212.17.35. >>> >>> >>> # Set file-locking method (flock is not safe over NFS, but is >>> faster) >>> # >>> # lock_method flock >>> >>> >>> # Set the threshold at which a message is considered spam >>> (default: 5.0) >>> # >>> # required_score 5.0 >>> >>> >>> # Use Bayesian classifier (default: 1) >>> # >>> # use_bayes 1 >>> >>> >>> # Bayesian classifier auto-learning (default: 1) >>> # >>> # bayes_auto_learn 1 >>> >>> >>> # Set headers which may provide inappropriate cues to the >>> Bayesian >>> # classifier >>> # >>> # bayes_ignore_header X-Bogosity >>> # bayes_ignore_header X-Spam-Flag >>> # bayes_ignore_header X-Spam-Status >>> >>> >>> # Some shortcircuiting, if the plugin is enabled >>> # >>> ifplugin Mail::SpamAssassin::Plugin::Shortcircuit >>> # >>> # default: strongly-whitelisted mails are *really* whitelisted >>> now, if the >>> # shortcircuiting plugin is active, causing early exit to save >>> CPU load. >>> # Uncomment to turn this on >>> # >>> # shortcircuit USER_IN_WHITELIST on >>> # shortcircuit USER_IN_DEF_WHITELIST on >>> # shortcircuit USER_IN_ALL_SPAM_TO on >>> # shortcircuit SUBJECT_IN_WHITELIST on >>> >>> # the opposite; blacklisted mails can also save CPU >>> # >>> # shortcircuit USER_IN_BLACKLIST on >>> # shortcircuit USER_IN_BLACKLIST_TO on >>> # shortcircuit SUBJECT_IN_BLACKLIST on >>> >>> # if you have taken the time to correctly specify your >>> "trusted_networks", >>> # this is another good way to save CPU >>> # >>> # shortcircuit ALL_TRUSTED on >>> >>> # and a well-trained bayes DB can save running rules, too >>> # >>> # shortcircuit BAYES_99 spam >>> # shortcircuit BAYES_00 ham >>> >>> endif # Mail::SpamAssassin::Plugin::Shortcircuit >>> >>> >>> > > > > You have the sendmail package installed, along with postfix.=20 > Remove > > or disable sendmail. > > > > What's happening is that sendmail submits mail via SMTP back to > > postfix, which causes a mail loop. > > > > sendmail is what comes with the basic freebsd install IE, no package. > sendmail is disabled in rc.conf so that is not the problem. > > Of course it's the problem. You're using the real sendmail(TM) sendmail command and it's causing a mailer loop. Your logs show the proof. If you were using postfix, it would log as pickup, not sendmail. I suppose you forgot to edit /etc/mail/mailer.conf to enable postfix. https://www.freebsd.org/doc/en/books/handbook/mail-changingmta.html -- Noel Jones From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 13:29:41 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5FE3784E for ; Thu, 30 Apr 2015 13:29:41 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 1F12F1970 for ; Thu, 30 Apr 2015 13:29:40 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-245.adsl.hiwaay.net [216.180.76.245]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t3UDTdKA020256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 08:29:39 -0500 Message-ID: <55422E43.8090206@hiwaay.net> Date: Thu, 30 Apr 2015 08:35:54 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> In-Reply-To: <554229CE.30009@infracaninophile.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 13:29:41 -0000 On 04/30/15 08:16, Matthew Seaman wrote: > On 2015/04/30 13:42, William A. Mahaffey III wrote: >> So far after a day or 2, nothing appears from the RPi on kabini1, >> including nothing in /var/log/security (possibly indicating firewall >> impeding traffic). Almost certainly pilot error, any help appreciated >> :-) .... TIA & have a good one. > You need to tell the receiving syslogd what port numbers to accept > traffic from, as well as the IP numbers. > > In /etc/rc.conf: > > syslogd_flags="-a 192.168.0.0/16:514 -C -T" > > assuming you're using the default logging port for traffic from your > RPi+. If not, then 192.168.0.0/16:* will allow traffic from any port > number, although personally I'd spend some quality time with tcpdump > and/or wireshark looking at what network ports were actually used. > > Cheers, > > Matthew Hmmmm .... I restarted syslogd w/ args as above. Then, 'tcpdump -c 100' shows: 08:23:13.844574 IP q6600.892 > kabini1.local.1023: Flags [F.], seq 77, ack 86, win 46, options [nop,nop,TS val 1691799656 ecr 1344249102], length 0 08:23:13.844599 IP kabini1.local.1023 > q6600.892: Flags [.], ack 78, win 1040, options [nop,nop,TS val 1344249102 ecr 1691799656], length 0 08:23:15.587348 IP kabini1.local.25455 > q6600.ssh: Flags [.], ack 979662038, win 0, length 0 08:23:15.587449 IP kabini1.local.25455 > q6600.ssh: Flags [.], ack 1, win 1040, options [nop,nop,TS val 1344250845 ecr 1691521403], length 0 08:23:15.587470 IP q6600.ssh > kabini1.local.25455: Flags [.], ack 1, win 204, options [nop,nop,TS val 1691801399 ecr 1343970845], length 0 08:23:17.847390 IP kabini1.local.572754 > q6600.nfs: 40 null 08:23:17.847513 IP q6600.nfs > kabini1.local.572754: reply ok 24 null 08:23:25.760879 IP kabini1.local.36468 > RPiB+.ssh: Flags [P.], seq 685496912:685496960, ack 1741963517, win 1040, options [nop,nop,TS val 1344261018 ecr 2649344], length 48 08:23:25.762723 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 1:49, ack 48, win 4197, options [nop,nop,TS val 2649683 ecr 1344261018], length 48 08:23:25.862332 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 49, win 1040, options [nop,nop,TS val 1344261120 ecr 2649683], length 0 08:23:25.968802 IP kabini1.local.36468 > RPiB+.ssh: Flags [P.], seq 48:96, ack 49, win 1040, options [nop,nop,TS val 1344261226 ecr 2649683], length 48 08:23:25.970776 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 49:161, ack 96, win 4197, options [nop,nop,TS val 2649683 ecr 1344261226], length 112 08:23:26.070254 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 161, win 1040, options [nop,nop,TS val 1344261328 ecr 2649683], length 0 08:23:26.200706 IP kabini1.local.36468 > RPiB+.ssh: Flags [P.], seq 96:144, ack 161, win 1040, options [nop,nop,TS val 1344261458 ecr 2649683], length 48 08:23:26.207313 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 161:225, ack 144, win 4197, options [nop,nop,TS val 2649683 ecr 1344261458], length 64 08:23:26.307341 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 225, win 1040, options [nop,nop,TS val 1344261565 ecr 2649683], length 0 08:23:26.400741 IP kabini1.local.36468 > RPiB+.ssh: Flags [P.], seq 144:192, ack 225, win 1040, options [nop,nop,TS val 1344261658 ecr 2649683], length 48 08:23:26.402682 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 225:305, ack 192, win 4197, options [nop,nop,TS val 2649684 ecr 1344261658], length 80 08:23:26.502205 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 305, win 1040, options [nop,nop,TS val 1344261760 ecr 2649684], length 0 08:23:26.576902 IP kabini1.local.36468 > RPiB+.ssh: Flags [P.], seq 192:240, ack 305, win 1040, options [nop,nop,TS val 1344261834 ecr 2649684], length 48 08:23:26.578803 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 305:369, ack 240, win 4197, options [nop,nop,TS val 2649684 ecr 1344261834], length 64 08:23:26.678213 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 369, win 1040, options [nop,nop,TS val 1344261936 ecr 2649684], length 0 08:23:28.232819 IP kabini1.local.36468 > RPiB+.ssh: Flags [P.], seq 240:288, ack 369, win 1040, options [nop,nop,TS val 1344263490 ecr 2649684], length 48 08:23:28.236986 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 369:417, ack 288, win 4197, options [nop,nop,TS val 2649687 ecr 1344263490], length 48 08:23:28.336206 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 417, win 1040, options [nop,nop,TS val 1344263594 ecr 2649687], length 0 08:23:28.494514 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 417:481, ack 288, win 4197, options [nop,nop,TS val 2649688 ecr 1344263594], length 64 08:23:28.496828 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG syslog.error, length: 59 08:23:28.497229 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG syslog.error, length: 59 08:23:28.500310 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 481:545, ack 288, win 4197, options [nop,nop,TS val 2649688 ecr 1344263594], length 64 08:23:28.500405 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 545, win 1039, options [nop,nop,TS val 1344263758 ecr 2649688], length 0 08:23:30.538498 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 545:593, ack 288, win 4197, options [nop,nop,TS val 2649692 ecr 1344263758], length 48 08:23:30.638333 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 593, win 1040, options [nop,nop,TS val 1344265896 ecr 2649692], length 0 08:23:30.723997 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 593:657, ack 288, win 4197, options [nop,nop,TS val 2649692 ecr 1344265896], length 64 08:23:30.823253 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 657, win 1040, options [nop,nop,TS val 1344266081 ecr 2649692], length 0 08:23:30.947285 IP RPiB+.ssh > kabini1.local.36468: Flags [P.], seq 657:705, ack 288, win 4197, options [nop,nop,TS val 2649693 ecr 1344266081], length 48 08:23:30.995288 IP RPiB+.59733 > kabini1.local.syslog: SYSLOG syslog.info, length: 47 08:23:31.047337 IP kabini1.local.36468 > RPiB+.ssh: Flags [.], ack 705, win 1040, options [nop,nop,TS val 1344266305 ecr 2649693], length 0 08:23:47.848393 IP kabini1.local.572770 > q6600.nfs: 40 null 08:23:47.848535 IP q6600.nfs > kabini1.local.572770: reply ok 24 null ^C 74 packets captured 74 packets received by filter 0 packets dropped by kernel [root@kabini1, /etc, 8:30:13am] 476 % tail -15 /var/log/messages ; hwclock -r ; date Apr 23 15:55:03 kabini1 pkg: sssnips-0.05 installed Apr 23 16:01:00 kabini1 pkg-static: gmake-4.1_1 installed Apr 23 16:01:03 kabini1 pkg: sssnips-0.05 deinstalled Apr 23 16:01:03 kabini1 pkg-static: sssnips-0.05 installed Apr 27 08:54:42 kabini1 dbus[847]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out Apr 27 09:08:34 kabini1 dbus[847]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out Apr 27 10:12:49 kabini1 dbus[847]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out Apr 28 09:30:12 kabini1 kernel: Limiting closed port RST response from 276 to 200 packets/sec Apr 28 09:30:13 kabini1 kernel: Limiting closed port RST response from 239 to 200 packets/sec Apr 28 09:30:14 kabini1 kernel: Limiting closed port RST response from 280 to 200 packets/sec Apr 28 09:30:16 kabini1 kernel: Limiting closed port RST response from 319 to 200 packets/sec Apr 30 08:13:49 kabini1 syslogd: exiting on signal 15 Apr 30 08:13:49 kabini1 syslogd: kernel boot file is /boot/kernel/kernel Apr 30 08:16:36 kabini1 kernel: re0: promiscuous mode enabled Apr 30 08:17:53 kabini1 kernel: re0: promiscuous mode disabled hwclock: Command not found. Thu Apr 30 08:30:22 MCDT 2015 [root@kabini1, /etc, 8:30:22am] 477 % i.e. still nothing. When I restarted the syslogd on the RPiB+, @ 8:23:43 local time: rpi # rc.d/syslogd restart Stopping syslogd. Waiting for PIDS: 2779. Starting syslogd. rpi # tail -15 /var/log/messages ; date Apr 26 22:00:00 rpi syslogd[603]: restart Apr 27 22:00:01 rpi syslogd[603]: restart Apr 28 08:00:00 rpi syslogd[603]: restart Apr 28 22:00:00 rpi syslogd[603]: restart Apr 29 14:54:44 rpi syslogd[603]: Exiting on signal 15 Apr 29 10:01:01 rpi syslogd[25366]: restart Apr 29 17:06:15 rpi syslogd[25366]: restart Apr 30 07:28:32 rpi syslogd[25366]: Exiting on signal 15 Apr 30 07:28:34 rpi syslogd[27124]: restart Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 Apr 30 08:20:37 rpi syslogd[2779]: restart Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 Apr 30 08:23:45 rpi syslogd[14885]: restart Thu Apr 30 08:27:37 MCDT 2015 rpi # Any more clues appreciated .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 13:33:13 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9065E93D for ; Thu, 30 Apr 2015 13:33:13 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 6249F1A4F for ; Thu, 30 Apr 2015 13:33:13 +0000 (UTC) Received: by be-well.ilk.org (Postfix, from userid 1147) id BDCE033C24; Thu, 30 Apr 2015 09:33:05 -0400 (EDT) From: Lowell Gilbert To: freebsd-questions@freebsd.org Subject: Re: using pkg for postfix/spamassassin install References: <55416FEB.3020101@gmail.com> <55418DF3.4000102@gmail.com> <554211DC.8030502@gmail.com> Reply-To: freebsd-questions@freebsd.org Date: Thu, 30 Apr 2015 09:33:05 -0400 In-Reply-To: <554211DC.8030502@gmail.com> (Ernie Luzar's message of "Thu, 30 Apr 2015 07:28:28 -0400") Message-ID: <44pp6lpwq6.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 13:33:13 -0000 Ernie Luzar writes: > Noel wrote: >> On 4/29/2015 6:57 PM, Ernie Luzar wrote: >>> Hello list. >>> >>> For many years been using postfix/qpopper for email service on my >>> lan with no problems. Now I want to add spamassassin in >>> preperation so I can also admin my public domain name on my own >>> computer instead of having my domain hoster do it for me. >>> >>> This is a list of my goals, >>> make email password required to send/receive email. >>> have email tagged with word "spam" in email subject line. >>> have spam email list all the spamassassin tests with scores in the >>> header so they can be seen. >>> don't have postfix duplicate any test that spamassassion is doing. >>> Use the pkg version of postfix & spamassassin. >>> Don't use any custom scripts >>> Can NOT be used as a relay email server by the public. >>> Auto-forward some old unused email address to a current email >>> address. >>> use port 5225 instead of port 25. >>> >>> >>> Now I have read many postfix spamassassin config howtos, but they >>> are all out dated, using previous versions of freebsd or old >>> versions of postfix and or spamassassin. And for sure none of them >>> talk about using the new pkg versions. I have based my config on >>> this howto http://www.freebsdonline.com/content/view/556/506/ >>> >>> When I run with the following config files I get this error over >>> and over again until I postfix stop. Any help would be greatly >>> appreciated. >>> >>> Apr 29 17:58:25 powerman sendmail[1915]: t3TLwPYV001915: >>> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >>> localhost, to bob@powerman.com >>> Apr 29 17:58:40 powerman sendmail[1941]: t3TLweS4001941: >>> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >>> localhost, to MAILER-DAEMON@powerman.com >>> >>> /usr/local/etc/postfix/master.cf >>> # >>> # Postfix master process configuration file. For details on the >>> format >>> # of the file, see the master(5) manual page (command: "man 5 >>> master" or >>> # on-line: http://www.postfix.org/master.5.html). >>> # >>> # Do not forget to execute "postfix reload" after editing this file. >>> # >>> # >>> ========================================================================== >>> # service type private unpriv chroot wakeup maxproc command + >>> args >>> # (yes) (yes) (no) (never) (100) >>> # >>> ========================================================================== >>> smtp inet n - n - - smtpd >>> -o content_filter=spamassassin >>> >>> #smtp inet n - n - 1 postscreen >>> #smtpd pass - - n - - smtpd >>> #dnsblog unix - - n - 0 dnsblog >>> #tlsproxy unix - - n - 0 tlsproxy >>> #submission inet n - n - - smtpd >>> # -o syslog_name=postfix/submission >>> # -o smtpd_tls_security_level=encrypt >>> # -o smtpd_sasl_auth_enable=yes >>> # -o smtpd_reject_unlisted_recipient=no >>> # -o smtpd_client_restrictions=$mua_client_restrictions >>> # -o smtpd_helo_restrictions=$mua_helo_restrictions >>> # -o smtpd_sender_restrictions=$mua_sender_restrictions >>> # -o smtpd_recipient_restrictions= >>> # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject >>> # -o milter_macro_daemon_name=ORIGINATING >>> #smtps inet n - n - - smtpd >>> # -o syslog_name=postfix/smtps >>> # -o smtpd_tls_wrappermode=yes >>> # -o smtpd_sasl_auth_enable=yes >>> # -o smtpd_reject_unlisted_recipient=no >>> # -o smtpd_client_restrictions=$mua_client_restrictions >>> # -o smtpd_helo_restrictions=$mua_helo_restrictions >>> # -o smtpd_sender_restrictions=$mua_sender_restrictions >>> # -o smtpd_recipient_restrictions= >>> # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject >>> # -o milter_macro_daemon_name=ORIGINATING >>> #628 inet n - n - - qmqpd >>> pickup unix n - n 60 1 pickup >>> cleanup unix n - n - 0 cleanup >>> qmgr unix n - n 300 1 qmgr >>> #qmgr unix n - n 300 1 oqmgr >>> tlsmgr unix - - n 1000? 1 tlsmgr >>> rewrite unix - - n - - >>> trivial-rewrite >>> bounce unix - - n - 0 bounce >>> defer unix - - n - 0 bounce >>> trace unix - - n - 0 bounce >>> verify unix - - n - 1 verify >>> flush unix n - n 1000? 0 flush >>> proxymap unix - - n - - proxymap >>> proxywrite unix - - n - 1 proxymap >>> smtp unix - - n - - smtp >>> relay unix - - n - - smtp >>> # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 >>> showq unix n - n - - showq >>> error unix - - n - - error >>> retry unix - - n - - error >>> discard unix - - n - - discard >>> local unix - n n - - local >>> virtual unix - n n - - virtual >>> lmtp unix - - n - - lmtp >>> anvil unix - - n - 1 anvil >>> scache unix - - n - 1 scache >>> # >>> # >>> ==================================================================== >>> # Interfaces to non-Postfix software. >>> # >>> spamassassin unix - n n - - pipe >>> user=spamd argv=/usr/local/bin/spamc -f -e >>> /usr/sbin/sendmail -oi -f ${sender} ${recipient} >>> >>> >>> >>> /usr/local/etc/postfix/main.cf >>> biff = no >>> syslog_facility = local5 >>> disable_dns_lookups = yes >>> mailbox_size_limit = 100000000 >>> message_size_limit = 100000000 >>> ## 9999 value disables compatibility function >>> compatibility_level = 9999 >>> smtputf8_enable = no >>> >>> >>> >>> >>> /usr/local/etc/mail/spamassassin/local.cf >>> # This is the right place to customize your installation of >>> SpamAssassin. >>> # >>> # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be >>> # tweaked. >>> # >>> # Only a small subset of options are listed below >>> # >>> ########################################################################### >>> >>> >>> # Add *****SPAM***** to the Subject header of spam e-mails >>> # >>> rewrite_header Subject *****SPAM***** >>> >>> >>> # Save spam messages as a message/rfc822 MIME attachment instead of >>> # modifying the original message (0: off, 2: use text/plain >>> instead) >>> # >>> report_safe 1 >>> >>> >>> # Set which networks or hosts are considered 'trusted' by your mail >>> # server (i.e. not spammers) >>> # >>> # trusted_networks 212.17.35. >>> >>> >>> # Set file-locking method (flock is not safe over NFS, but is >>> faster) >>> # >>> # lock_method flock >>> >>> >>> # Set the threshold at which a message is considered spam >>> (default: 5.0) >>> # >>> # required_score 5.0 >>> >>> >>> # Use Bayesian classifier (default: 1) >>> # >>> # use_bayes 1 >>> >>> >>> # Bayesian classifier auto-learning (default: 1) >>> # >>> # bayes_auto_learn 1 >>> >>> >>> # Set headers which may provide inappropriate cues to the Bayesian >>> # classifier >>> # >>> # bayes_ignore_header X-Bogosity >>> # bayes_ignore_header X-Spam-Flag >>> # bayes_ignore_header X-Spam-Status >>> >>> >>> # Some shortcircuiting, if the plugin is enabled >>> # >>> ifplugin Mail::SpamAssassin::Plugin::Shortcircuit >>> # >>> # default: strongly-whitelisted mails are *really* whitelisted >>> now, if the >>> # shortcircuiting plugin is active, causing early exit to save >>> CPU load. >>> # Uncomment to turn this on >>> # >>> # shortcircuit USER_IN_WHITELIST on >>> # shortcircuit USER_IN_DEF_WHITELIST on >>> # shortcircuit USER_IN_ALL_SPAM_TO on >>> # shortcircuit SUBJECT_IN_WHITELIST on >>> >>> # the opposite; blacklisted mails can also save CPU >>> # >>> # shortcircuit USER_IN_BLACKLIST on >>> # shortcircuit USER_IN_BLACKLIST_TO on >>> # shortcircuit SUBJECT_IN_BLACKLIST on >>> >>> # if you have taken the time to correctly specify your >>> "trusted_networks", >>> # this is another good way to save CPU >>> # >>> # shortcircuit ALL_TRUSTED on >>> >>> # and a well-trained bayes DB can save running rules, too >>> # >>> # shortcircuit BAYES_99 spam >>> # shortcircuit BAYES_00 ham >>> >>> endif # Mail::SpamAssassin::Plugin::Shortcircuit >>> >>> >>> >> >> You have the sendmail package installed, along with postfix. Remove >> or disable sendmail. >> >> What's happening is that sendmail submits mail via SMTP back to >> postfix, which causes a mail loop. >> > > sendmail is what comes with the basic freebsd install IE, no package. > sendmail is disabled in rc.conf so that is not the problem. You may not be running the sendmail daemon, but your postfix configuration tells spamassassin to forward using /usr/sbin/sendmail. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 13:56:59 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC34EE1 for ; Thu, 30 Apr 2015 13:56:58 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 762051CE6 for ; Thu, 30 Apr 2015 13:56:58 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t3UDuUJA072002 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 14:56:51 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t3UDuUJA072002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1430402211; bh=xpOsv2Tog02dc+xO8mksshlmpXghJS2pFNz/36ej5TA=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Thu,=2030=20Apr=202015=2014:56:29=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20minor=20syslog=20issue|References :=20<55422366.8060000@hiwaay.net>=20<554229CE.30009@infracaninophi le.co.uk>=20<55422E43.8090206@hiwaay.net>|In-Reply-To:=20<55422E43 .8090206@hiwaay.net>; b=B9zBsxri3H2FJy2/K34/mzkAwdN0vGD3Z7hMfSR7OqOkstUtazrEgMYMAmO/qnlfs 5G+ydUhHvMciXY0o9zn+SP580ie38f6M88zE5bWDUf+mUgttZ0pI2TdsbWbJtyB1wO 6QR92nINdOsb+qkjvy1jlc5R1HCmjf4+SRRtAx08= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <5542348D.8000109@infracaninophile.co.uk> Date: Thu, 30 Apr 2015 14:56:29 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> In-Reply-To: <55422E43.8090206@hiwaay.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XTTVDOiA9aVJxVguWXCiauvnjcmFIWPed" X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 13:56:59 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XTTVDOiA9aVJxVguWXCiauvnjcmFIWPed Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/30/15 14:28, William A. Mahaffey III wrote: > 08:23:28.496828 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG > syslog.error, length: 59 > 08:23:28.497229 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG > syslog.error, length: 59 This is the only relevant bit out of your tcpdump output -- it usually helps if you filter out as much of the irrelevant stuff that you can[*]. Anyhow, as you can see, your RPiB+ is logging *from* an arbitrary high-numbered port. This time it happens to be using 59735 but that would probably change with each restart of syslogd. Basically use the '-a 192.168.0.0/16:*' form in this case. Cheers, Matthew [*] ie. 'tcpdump port syslog' should work as the packets are being sent to the syslog port on your server. --XTTVDOiA9aVJxVguWXCiauvnjcmFIWPed Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVQjSOXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTn4f0P+gItCShIDGTIC2FxlNP5VGCB 75oBOZFZa3JK0R5jHSpQtE62qtmnkUNKOxfyppC7bkDm/FX4USkeHbYAULF9RG6x R2vWB+6ZvGt0YD7Za5xo3axJF5wrGzzVeIai3dehQVvGFTR/+mjxq8ogPcdxcKeU qNf7EeJCbLc2VtsQfaq00OeZvXdEyn4FAiduT0WTfrB8vXK2e87Dj5Z+nH+FExw4 Qjx4OfMuH1MNwyiIj/hE7d7iP6LhNzKTPcWJUP7jnLh5MMu9YubeE5TfgLRdKE/S ozINnJQFFUTkglRgrODyNBr3XID+JknBhRIaJAhTl0CNyPVviyR+LYb0mFPZNfbW XAmF/YxzUNzPRnMpQ0TmUu5G+rhKP3BCqR+km+pWR7ZjKhkBMQEbzwJmKOfSx51z iyhLTFBC+iU1p0Iulx+mzJ+0rHDSbencvYsFk11Y4fZdAYEGqObpRHADAAiQnw70 h/h63Tths6ElR+f5t2/p6KFayVW8kgmEvJQzXr6N5wGo/0Z0IviHWxOacdVwYcRM mqTh2jM5iGyVom+Rtg7rZQE0NhAApO+uUE+kYH2Uv1Fcq2d20K089zvZB2DDV1bx MukESKq9eYmR4zgOcTjCn4KdADQW0Oq7CtBQcrbfjpOHe4KvFA4fiNnHY1WMN3OG JSGa9F0AOTXI6BZPce7v =GWv+ -----END PGP SIGNATURE----- --XTTVDOiA9aVJxVguWXCiauvnjcmFIWPed-- From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 14:17:50 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72EA65EB for ; Thu, 30 Apr 2015 14:17:50 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 2333C1F2F for ; Thu, 30 Apr 2015 14:17:49 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-245.adsl.hiwaay.net [216.180.76.245]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t3UEHlJC030288 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 09:17:47 -0500 Message-ID: <5542398B.4000405@hiwaay.net> Date: Thu, 30 Apr 2015 09:24:02 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> In-Reply-To: <5542348D.8000109@infracaninophile.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 14:17:50 -0000 On 04/30/15 09:02, Matthew Seaman wrote: > On 04/30/15 14:28, William A. Mahaffey III wrote: >> 08:23:28.496828 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >> syslog.error, length: 59 >> 08:23:28.497229 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >> syslog.error, length: 59 > This is the only relevant bit out of your tcpdump output -- it usually > helps if you filter out as much of the irrelevant stuff that you can[*]. > > Anyhow, as you can see, your RPiB+ is logging *from* an arbitrary > high-numbered port. This time it happens to be using 59735 but that > would probably change with each restart of syslogd. Basically use the > '-a 192.168.0.0/16:*' form in this case. > > Cheers, > > Matthew > > [*] ie. 'tcpdump port syslog' should work as the packets are being sent > to the syslog port on your server. > I missed that (high port #, thought it might be a process #, *new* to tcpdump et al :-/ ) .... Could that be a mal/mis-configuration in the (rather beta) NetBSD ARM port ? I will try the updated syslogd flag & see how that goes. Thanks :-). -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 15:16:32 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C653A8A0 for ; Thu, 30 Apr 2015 15:16:32 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 64A4616CA for ; Thu, 30 Apr 2015 15:16:32 +0000 (UTC) Received: from zero-gravitas.local (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t3UFGGsH074038 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 16:16:20 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t3UFGGsH074038 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1430406980; bh=CdI4RRclNNXaHdBW6LUcWklcAsW/3hOgDHGPKzaQKSg=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Thu,=2030=20Apr=202015=2016:15:33=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20minor=20syslog=20issue|References :=20<55422366.8060000@hiwaay.net>=20<554229CE.30009@infracaninophi le.co.uk>=20<55422E43.8090206@hiwaay.net>=20<5542348D.8000109@infr acaninophile.co.uk>=20<5542398B.4000405@hiwaay.net>|In-Reply-To:=2 0<5542398B.4000405@hiwaay.net>; b=Obl5B1fks1R44VBWhRYXPuuxTyC/J6mIvSbfRK02VcyZR4MJt/G2KuYpJRhLUje38 HLepFbIkWxjRnqYs5VBbQBuuMePuMndWQjvW8/jaGDj6aJu7mfK4efnKaaNHHwz5sP U5bFoGqRQwvtHm19P9JGcw2TbIVtU7kcqDsGVAr4= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be zero-gravitas.local Message-ID: <55424715.3080607@infracaninophile.co.uk> Date: Thu, 30 Apr 2015 16:15:33 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542398B.4000405@hiwaay.net> In-Reply-To: <5542398B.4000405@hiwaay.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eFlSx8DBgQIpoRcX0HkJsWf8DRcbvth1p" X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 15:16:33 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eFlSx8DBgQIpoRcX0HkJsWf8DRcbvth1p Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/04/30 15:17, William A. Mahaffey III wrote: > I missed that (high port #, thought it might be a process #, *new* to > tcpdump et al :-/ ) .... Could that be a mal/mis-configuration in the > (rather beta) NetBSD ARM port ? I will try the updated syslogd flag & > see how that goes. Thanks :-). Dunno. FreeBSD syslogd sends /from/ port 514 as well as to port 514 -- which is the traditional behaviour from way back when... of a lot of UDP based services. NTP still does this, DNS used to do that until Kaminsky, and now it most definitely *doesn't* do that. More recent code tends to just use arbitrary ports on the sending side -- I believe rsyslog (which is the Linux standard) works like that. No idea how NetBSD behaves. Cheers, Matthew --eFlSx8DBgQIpoRcX0HkJsWf8DRcbvth1p Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJVQkcbXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnEIIQAKEBI9/2eDxT9/dj29gjXdMq ael10dwNibxj/GlqCfYahrD3BdvD+2g4qlkRmQzNFYIkj02cTfCdJ5/ISNyFv2bg VsM9Jt5n5D89Gxayg/Rt5kS9oRLG15JKzayJ4UfvHXz+QIgjSQE0Yeqv9wLAm+Dc 2DRPiD0Cj03dlXeT2Qg5/LP6IgxoWX9Bk1RH1dApKpiuhMIGe79CW6xB7EpLCu9m jFtgVX3qf9US7qLmaFvDInGtjw8HW8TYEbqffPan3YNnTJGvMKSGr9vEm8Y14zZ+ OPgOFNYe06yUS1yfekbB34/gG/og91wzCdfd+d5xLoo7xAtxJ0p/C/2I7bZeTULg HTTFGq3P6ST/EZzwInNsPFr0/A2tI3AH6CNmYUXseQ6tBMVfguDZ9IlPHyL5steN 9YeL72UpkvLqY6MUFuuC9uuim9pstrISRhlchb9vLTK49A6PMfW7WhmCrpcRFrjS c2Emgo7KZppfGFzZ3zESsF4S3HSsBVy25q3xx1aljli3pL9fQ7V7kVynH4xa4h9l 9dTEI3IZtwrs6vp+r0728q7+QcCvXlahYCBk2T1fWlNqkQrzVqfSOzM+Xbp4vu8d iamwjoj0gpEw/TiXsyJX7LpK2xuvU4K9n9Bahai08GySU7WBtta4IhT1BakeSea+ 6OWfZHJw2YR3HHGNKZiO =evwv -----END PGP SIGNATURE----- --eFlSx8DBgQIpoRcX0HkJsWf8DRcbvth1p-- From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 16:03:24 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 701BD6D0 for ; Thu, 30 Apr 2015 16:03:24 +0000 (UTC) Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B77D1C93 for ; Thu, 30 Apr 2015 16:03:23 +0000 (UTC) Received: by obfe9 with SMTP id e9so47774656obf.1 for ; Thu, 30 Apr 2015 09:03:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4f//sFNbirALyA7exG0UQM7BdjAOs2KwnTuxGYxoX1w=; b=X5kXgOZsiIn0ybQBCnIwMwSczdJlRZ9O7Rv24hXqB14FRQ9WRtv0XtpQFcAxnU3x9m 7cdT0UZa9RyG0AHpd+gMRee/A+Tc8REkbq6fM3lmKO5SjlA0Hkcy86zNtZKkfm/VG0ku YxsKYk1fKc/B6k5LHUeY+dnZ7ey9LxJ/dZAUmoSWZrBpZs5eEB9T6rLAVZQzk4nJ2JzL UlyvI2ZLJflfNLUx7mScuJDKkJbebcd4T8YdHlPAzLjoMvTxZ7PtRr/pTzFUkD5sodxg EmiD33gPeL+REKrH60+RszLYfPQvUA69wWiuYhHEBjHjdy0C35S/OGnUoo/cgLxJV867 oT6w== X-Gm-Message-State: ALoCoQk282e+00+j6PWU6MugeXQUAMiWjwk2Bziaqjf5lj48/VERbUDPm2AVDqayj+mmtL0hyp5X MIME-Version: 1.0 X-Received: by 10.202.213.70 with SMTP id m67mr3939405oig.26.1430409796586; Thu, 30 Apr 2015 09:03:16 -0700 (PDT) Received: by 10.182.60.226 with HTTP; Thu, 30 Apr 2015 09:03:16 -0700 (PDT) X-Originating-IP: [2001:44b8:31b0:aa00:95b1:6cd3:bd95:9d1d] In-Reply-To: References: Date: Fri, 1 May 2015 02:03:16 +1000 Message-ID: Subject: Re: Possible (or smart) to put freebsd-boot on USB stick for root-on-ZFS? From: Jason Birch To: Warren Block Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 16:03:24 -0000 > > The bootcode changes rarely, and is usually not a problem. Having a > separate, duplicate /boot is sometimes done for geli(8). It's kind of a > pain, because changes must be made in two places. For a mirror with the OS > on it, I'd put a freebsd-boot partition on each drive, manually install the > bootcode to each, and call it good. > Thank you for all your responses and education! This is pretty much how I've attacked the problem. For the record, I actually prepared all of this ahead of time, and then noticed that 10.1's install options actually include ZFS on root, so installation was super simple, and I was able to scrap my preparation ... kind of. Though the maths seems to work out to me, it ends up aligning the freebsd-zfs position 'awkwardly'. In my head I thought it would work okay - 1064 512B blocks is a round 133 4KB blocks, which these SSDs report as their stripe size. Nonetheless, fragmentation of the pool is off the charts... # gpart show -l ada0 ada1 => 34 156301421 ada0 GPT (75G) 34 6 - free - (3.0K) 40 1024 1 gptboot0 (512K) 1064 156300384 2 zfs0 (75G) 156301448 7 - free - (3.5K) => 34 156301421 ada1 GPT (75G) 34 6 - free - (3.0K) 40 1024 1 gptboot1 (512K) 1064 156300384 2 zfs1 (75G) 156301448 7 - free - (3.5K) # zpool status zroot pool: zroot state: ONLINE scan: scrub repaired 0 in 0h3m with 0 errors on Mon Apr 13 00:27:34 2015 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/zfs0 ONLINE 0 0 0 gpt/zfs1 ONLINE 0 0 0 errors: No known data errors # zpool get fragmentation zroot NAME PROPERTY VALUE SOURCE zroot fragmentation 59% - It remains to be seen (to me) if this is a problem or shortcoming of bsdinstall(8), or totally fine and expected behaviour. I'm thought the gap between blocks 1024 and 1064 that aren't reported as "free" as perhaps containing the label for adaXp2, and wondered if that was pushing it out a bit, but they don't seem to contain any bits at all. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 16:43:59 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 705B0C8B for ; Thu, 30 Apr 2015 16:43:59 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C17910CE for ; Thu, 30 Apr 2015 16:43:58 +0000 (UTC) Received: by obblk2 with SMTP id lk2so9587461obb.0 for ; Thu, 30 Apr 2015 09:43:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=Xdm+MuDTlC4c45WVByHda8734gNdC03DX3yg96cG8I4=; b=dcRd5a0yes4iYxuKT0VJ3fdhjP4yM/pT4/YawZM8NY3bIwuaAKDHHACgUd4+7VNdyy PhOOinvZt42v32s/355vpLZ4sR4CqMHJpRkud6mwil6u4d6QbbS65Ge49venlc60nCou 7R8SG0YruFORIFDUYVIBVMGqrzrT8Oaj/gepvZINh4i9i6bQRFFk4+880lgCQjh81Oue bHG14c4nNzF+DkT7rZZ0s+wHmwvkLEluj3B8B/c8iPuXXQlHXHSOXTRFqK0FTG9Q+9rK ArltWltANng3JVZKNd6mWI93aUztIwGBOrRc7Gsx7+aLGfWQoSu7n2oPXTLRHR7EWOS1 q2vw== X-Gm-Message-State: ALoCoQlukaCBVmWjUu0XjocQUEAcXPK2q6/jY8HzxEiex8cPY+kDAtcULuX92SoZzHdzqW9AbgSP MIME-Version: 1.0 X-Received: by 10.60.98.100 with SMTP id eh4mr4198193oeb.81.1430412237739; Thu, 30 Apr 2015 09:43:57 -0700 (PDT) Received: by 10.182.60.226 with HTTP; Thu, 30 Apr 2015 09:43:57 -0700 (PDT) X-Originating-IP: [2001:44b8:31b0:aa00:95b1:6cd3:bd95:9d1d] In-Reply-To: References: Date: Fri, 1 May 2015 02:43:57 +1000 Message-ID: Subject: Re: Possible (or smart) to put freebsd-boot on USB stick for root-on-ZFS? From: Jason Birch Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 16:43:59 -0000 > > In my head I thought it would work okay - 1064 512B blocks is a round 133 > 4KB blocks, which these SSDs report as their stripe size. Nonetheless, > fragmentation of the pool is off the charts... > That being said, I did foolishly fill this thing to 80% with a quick dump of another FS, so it's entirely possible my math is fine and things are aligned, and I'm just seeing pathological behaviour of a nearly-full copy-on-write file system. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 18:36:25 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F2A471F9 for ; Thu, 30 Apr 2015 18:36:24 +0000 (UTC) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA9541CFB for ; Thu, 30 Apr 2015 18:36:24 +0000 (UTC) Received: by igbhj9 with SMTP id hj9so21585093igb.1 for ; Thu, 30 Apr 2015 11:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=2bZhVFEaUXGLLGG28ma1d685n/59o6mnX+j7GJ/h/y4=; b=fmf2FHSHQaT69AYbMSKcBMY5gH6ley27qAKlAImHFhb8lwFzhI9PWBlNXVHDC2XKrw P+wbVktPfIPNZ6JdaOLNr4618Oe7QbzuL4tZhkbb5SjPXO+J3uhtAAiHVXcxepxtUJIO Ao/YAb2M7hTRTpVrL9TPU1ocr0dFwODPldk4pihDi55t6UjSFuqY/Ka7A3Vd1MyTD09t BYsQEYeLRIMaC4Xtl+gEEKx6HqRzIt9Eyh6NVR2gw5bIYPzP+DTazdVto4jXPdarBknV YQs3qVaYNrX1r4Iuf5kX+7+06fZLt2A4JJ8IqKif+Af2eoP61V4U/6HRbBw2nivnIo+u ihsQ== X-Received: by 10.50.97.33 with SMTP id dx1mr3207544igb.1.1430418984155; Thu, 30 Apr 2015 11:36:24 -0700 (PDT) Received: from [10.0.10.5] (cpe-76-190-244-6.neo.res.rr.com. [76.190.244.6]) by mx.google.com with ESMTPSA id l128sm1989889iol.1.2015.04.30.11.36.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Apr 2015 11:36:23 -0700 (PDT) Message-ID: <55427638.7020206@gmail.com> Date: Thu, 30 Apr 2015 14:36:40 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Noel CC: freebsd-questions@freebsd.org Subject: Re: using pkg for postfix/spamassassin install References: <55416FEB.3020101@gmail.com> <55418DF3.4000102@gmail.com> <554211DC.8030502@gmail.com> <55422DE7.2010506@gmail.com> In-Reply-To: <55422DE7.2010506@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 18:36:25 -0000 Noel wrote: > On 4/30/2015 6:28 AM, Ernie Luzar wrote: >> Noel wrote: >>> On 4/29/2015 6:57 PM, Ernie Luzar wrote: >>>> Hello list. >>>> >>>> For many years been using postfix/qpopper for email service on my >>>> lan with no problems. Now I want to add spamassassin in >>>> preperation so I can also admin my public domain name on my own >>>> computer instead of having my domain hoster do it for me. >>>> >>>> This is a list of my goals, >>>> make email password required to send/receive email. >>>> have email tagged with word "spam" in email subject line. >>>> have spam email list all the spamassassin tests with scores in >>>> the >>>> header so they can be seen. >>>> don't have postfix duplicate any test that spamassassion is >>>> doing. >>>> Use the pkg version of postfix & spamassassin. >>>> Don't use any custom scripts >>>> Can NOT be used as a relay email server by the public. >>>> Auto-forward some old unused email address to a current email >>>> address. >>>> use port 5225 instead of port 25. >>>> >>>> >>>> Now I have read many postfix spamassassin config howtos, but they >>>> are all out dated, using previous versions of freebsd or old >>>> versions of postfix and or spamassassin. And for sure none of them >>>> talk about using the new pkg versions. I have based my config on >>>> this howto http://www.freebsdonline.com/content/view/556/506/ >>>> >>>> When I run with the following config files I get this error over >>>> and over again until I postfix stop. Any help would be greatly >>>> appreciated. >>>> >>>> Apr 29 17:58:25 powerman sendmail[1915]: t3TLwPYV001915: >>>> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >>>> localhost, to bob@powerman.com >>>> Apr 29 17:58:40 powerman sendmail[1941]: t3TLweS4001941: >>>> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >>>> localhost, to MAILER-DAEMON@powerman.com >>>> >>>> /usr/local/etc/postfix/master.cf >>>> # >>>> # Postfix master process configuration file. For details on the >>>> format >>>> # of the file, see the master(5) manual page (command: "man 5 >>>> master" or >>>> # on-line: http://www.postfix.org/master.5.html). >>>> # >>>> # Do not forget to execute "postfix reload" after editing this >>>> file. >>>> # >>>> # >>>> ========================================================================== >>>> >>>> # service type private unpriv chroot wakeup maxproc command + >>>> args >>>> # (yes) (yes) (no) (never) (100) >>>> # >>>> ========================================================================== >>>> >>>> smtp inet n - n - - smtpd >>>> -o content_filter=spamassassin >>>> >>>> #smtp inet n - n - 1 postscreen >>>> #smtpd pass - - n - - smtpd >>>> #dnsblog unix - - n - 0 dnsblog >>>> #tlsproxy unix - - n - 0 tlsproxy >>>> #submission inet n - n - - smtpd >>>> # -o syslog_name=postfix/submission >>>> # -o smtpd_tls_security_level=encrypt >>>> # -o smtpd_sasl_auth_enable=yes >>>> # -o smtpd_reject_unlisted_recipient=no >>>> # -o smtpd_client_restrictions=$mua_client_restrictions >>>> # -o smtpd_helo_restrictions=$mua_helo_restrictions >>>> # -o smtpd_sender_restrictions=$mua_sender_restrictions >>>> # -o smtpd_recipient_restrictions= >>>> # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject >>>> # -o milter_macro_daemon_name=ORIGINATING >>>> #smtps inet n - n - - smtpd >>>> # -o syslog_name=postfix/smtps >>>> # -o smtpd_tls_wrappermode=yes >>>> # -o smtpd_sasl_auth_enable=yes >>>> # -o smtpd_reject_unlisted_recipient=no >>>> # -o smtpd_client_restrictions=$mua_client_restrictions >>>> # -o smtpd_helo_restrictions=$mua_helo_restrictions >>>> # -o smtpd_sender_restrictions=$mua_sender_restrictions >>>> # -o smtpd_recipient_restrictions= >>>> # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject >>>> # -o milter_macro_daemon_name=ORIGINATING >>>> #628 inet n - n - - qmqpd >>>> pickup unix n - n 60 1 pickup >>>> cleanup unix n - n - 0 cleanup >>>> qmgr unix n - n 300 1 qmgr >>>> #qmgr unix n - n 300 1 oqmgr >>>> tlsmgr unix - - n 1000? 1 tlsmgr >>>> rewrite unix - - n - - >>>> trivial-rewrite >>>> bounce unix - - n - 0 bounce >>>> defer unix - - n - 0 bounce >>>> trace unix - - n - 0 bounce >>>> verify unix - - n - 1 verify >>>> flush unix n - n 1000? 0 flush >>>> proxymap unix - - n - - proxymap >>>> proxywrite unix - - n - 1 proxymap >>>> smtp unix - - n - - smtp >>>> relay unix - - n - - smtp >>>> # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 >>>> showq unix n - n - - showq >>>> error unix - - n - - error >>>> retry unix - - n - - error >>>> discard unix - - n - - discard >>>> local unix - n n - - local >>>> virtual unix - n n - - virtual >>>> lmtp unix - - n - - lmtp >>>> anvil unix - - n - 1 anvil >>>> scache unix - - n - 1 scache >>>> # >>>> # >>>> ==================================================================== >>>> >>>> # Interfaces to non-Postfix software. >>>> # >>>> spamassassin unix - n n - - pipe >>>> user=spamd argv=/usr/local/bin/spamc -f -e >>>> /usr/sbin/sendmail -oi -f ${sender} ${recipient} >>>> >>>> >>>> >>>> /usr/local/etc/postfix/main.cf >>>> biff = no >>>> syslog_facility = local5 >>>> disable_dns_lookups = yes >>>> mailbox_size_limit = 100000000 >>>> message_size_limit = 100000000 >>>> ## 9999 value disables compatibility function >>>> compatibility_level = 9999 >>>> smtputf8_enable = no >>>> >>>> >>>> >>>> >>>> /usr/local/etc/mail/spamassassin/local.cf >>>> # This is the right place to customize your installation of >>>> SpamAssassin. >>>> # >>>> # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be >>>> # tweaked. >>>> # >>>> # Only a small subset of options are listed below >>>> # >>>> ########################################################################### >>>> >>>> >>>> >>>> # Add *****SPAM***** to the Subject header of spam e-mails >>>> # >>>> rewrite_header Subject *****SPAM***** >>>> >>>> >>>> # Save spam messages as a message/rfc822 MIME attachment >>>> instead of >>>> # modifying the original message (0: off, 2: use text/plain >>>> instead) >>>> # >>>> report_safe 1 >>>> >>>> >>>> # Set which networks or hosts are considered 'trusted' by your >>>> mail >>>> # server (i.e. not spammers) >>>> # >>>> # trusted_networks 212.17.35. >>>> >>>> >>>> # Set file-locking method (flock is not safe over NFS, but is >>>> faster) >>>> # >>>> # lock_method flock >>>> >>>> >>>> # Set the threshold at which a message is considered spam >>>> (default: 5.0) >>>> # >>>> # required_score 5.0 >>>> >>>> >>>> # Use Bayesian classifier (default: 1) >>>> # >>>> # use_bayes 1 >>>> >>>> >>>> # Bayesian classifier auto-learning (default: 1) >>>> # >>>> # bayes_auto_learn 1 >>>> >>>> >>>> # Set headers which may provide inappropriate cues to the >>>> Bayesian >>>> # classifier >>>> # >>>> # bayes_ignore_header X-Bogosity >>>> # bayes_ignore_header X-Spam-Flag >>>> # bayes_ignore_header X-Spam-Status >>>> >>>> >>>> # Some shortcircuiting, if the plugin is enabled >>>> # >>>> ifplugin Mail::SpamAssassin::Plugin::Shortcircuit > >>>> # >>>> # default: strongly-whitelisted mails are *really* whitelisted >>>> now, if the >>>> # shortcircuiting plugin is active, causing early exit to save >>>> CPU load. >>>> # Uncomment to turn this on >>>> # >>>> # shortcircuit USER_IN_WHITELIST on >>>> # shortcircuit USER_IN_DEF_WHITELIST on >>>> # shortcircuit USER_IN_ALL_SPAM_TO on >>>> # shortcircuit SUBJECT_IN_WHITELIST on >>>> >>>> # the opposite; blacklisted mails can also save CPU >>>> # >>>> # shortcircuit USER_IN_BLACKLIST on >>>> # shortcircuit USER_IN_BLACKLIST_TO on >>>> # shortcircuit SUBJECT_IN_BLACKLIST on >>>> >>>> # if you have taken the time to correctly specify your >>>> "trusted_networks", >>>> # this is another good way to save CPU >>>> # >>>> # shortcircuit ALL_TRUSTED on >>>> >>>> # and a well-trained bayes DB can save running rules, too >>>> # >>>> # shortcircuit BAYES_99 spam >>>> # shortcircuit BAYES_00 ham >>>> >>>> endif # Mail::SpamAssassin::Plugin::Shortcircuit >>>> >>>> >>>> >>> You have the sendmail package installed, along with postfix. >> Remove >>> or disable sendmail. >>> >>> What's happening is that sendmail submits mail via SMTP back to >>> postfix, which causes a mail loop. >>> >> sendmail is what comes with the basic freebsd install IE, no package. >> sendmail is disabled in rc.conf so that is not the problem. >> >> > > > Of course it's the problem. You're using the real sendmail(TM) > sendmail command and it's causing a mailer loop. Your logs show the > proof. If you were using postfix, it would log as pickup, not > sendmail. I suppose you forgot to edit /etc/mail/mailer.conf to > enable postfix. > https://www.freebsd.org/doc/en/books/handbook/mail-changingmta.html > > > > -- Noel Jones > > During the pkg install postfix, it asks this question: Would you like to activate Postfix in /etc/mail/mailer.conf [n]? I just hit enter and took the NO default. From what you are saying I should have entered Y to that question. To verify this I did service postfix stop pkg remove postfix-x.x.x pkg install postfix Answered Y to the question Would you like to activate Postfix in /etc/mail/mailer.conf [n]? service postfix restart sent a spam email from a LAN PC and then received that email back. Did not get the to many hops error message, but the email was not flagged as spam and it should have been. I want to test spamassassin on the host using emails from a lan PC before I change my hosting domain config to send email to my postfix server. Is there some other tweak I need to make that happen? Thanks Ernie From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 19:15:08 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 652BE737 for ; Thu, 30 Apr 2015 19:15:08 +0000 (UTC) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EA0C10E6 for ; Thu, 30 Apr 2015 19:15:08 +0000 (UTC) Received: by qkx62 with SMTP id 62so39193905qkx.0 for ; Thu, 30 Apr 2015 12:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=m6e97gIuYQGLEtsRyUE1eGFsj+rNHaXXC2pQAC2bsHk=; b=vJOTIXESLXJsZlXyxPUYuZh2ZWB731d2jiEex307Csyt03BlvKNNABmDkPLZ3Yf8D/ QJgnBmHJL9TmBOF2MojFSTkwb+hWQiHoCc+Z8zrtklOz20nk7ycpoUF/gtGmSwamL91M NxVEKwgPIujEJKDTOXK7tUaL+UGvry94sE/k19/NowjISEJ/0ETKU9uI7seiK8i2ypfz bR6L3HI5or0AYz4eiCzDjR5rMyz1AXqbOXIVO50FJvELkYSeXqpGFPwcPCjB9y+y1589 AJsVs6ZSlh27Ya8P2Rw8PtaGf7ZGFwQnzPEU6LGwnmx+WU3r94AoUJYqWK0EDa1DNrYr /VvA== X-Received: by 10.140.232.3 with SMTP id d3mr6641608qhc.46.1430421307025; Thu, 30 Apr 2015 12:15:07 -0700 (PDT) Received: from [192.168.70.205] (50-200-12-74-static.hfc.comcastbusiness.net. [50.200.12.74]) by mx.google.com with ESMTPSA id n83sm1646851qkh.31.2015.04.30.12.15.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 12:15:06 -0700 (PDT) Message-ID: <55427F39.2000009@gmail.com> Date: Thu, 30 Apr 2015 14:15:05 -0500 From: Noel User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Ernie Luzar , freebsd-questions@freebsd.org Subject: Re: using pkg for postfix/spamassassin install References: <55416FEB.3020101@gmail.com> <55418DF3.4000102@gmail.com> <554211DC.8030502@gmail.com> <55422DE7.2010506@gmail.com> <55427638.7020206@gmail.com> In-Reply-To: <55427638.7020206@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 19:15:08 -0000 On 4/30/2015 1:36 PM, Ernie Luzar wrote: > Noel wrote: >> On 4/30/2015 6:28 AM, Ernie Luzar wrote: >>> Noel wrote: >>>> On 4/29/2015 6:57 PM, Ernie Luzar wrote: >>>>> Hello list. >>>>> >>>>> For many years been using postfix/qpopper for email service on my >>>>> lan with no problems. Now I want to add spamassassin in >>>>> preperation so I can also admin my public domain name on my own >>>>> computer instead of having my domain hoster do it for me. >>>>> >>>>> This is a list of my goals, >>>>> make email password required to send/receive email. >>>>> have email tagged with word "spam" in email subject line. >>>>> have spam email list all the spamassassin tests with scores in >>>>> the >>>>> header so they can be seen. >>>>> don't have postfix duplicate any test that spamassassion is >>>>> doing. >>>>> Use the pkg version of postfix & spamassassin. >>>>> Don't use any custom scripts >>>>> Can NOT be used as a relay email server by the public. >>>>> Auto-forward some old unused email address to a current email >>>>> address. >>>>> use port 5225 instead of port 25. >>>>> >>>>> >>>>> Now I have read many postfix spamassassin config howtos, but they >>>>> are all out dated, using previous versions of freebsd or old >>>>> versions of postfix and or spamassassin. And for sure none of >>>>> them >>>>> talk about using the new pkg versions. I have based my config on >>>>> this howto http://www.freebsdonline.com/content/view/556/506/ >>>>> >>>>> When I run with the following config files I get this error over >>>>> and over again until I postfix stop. Any help would be greatly >>>>> appreciated. >>>>> >>>>> Apr 29 17:58:25 powerman sendmail[1915]: t3TLwPYV001915: >>>>> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >>>>> localhost, to bob@powerman.com >>>>> Apr 29 17:58:40 powerman sendmail[1941]: t3TLweS4001941: >>>>> SYSERR(spamd): Too many hops 27 (25 max): from MAILER-DAEMON via >>>>> localhost, to MAILER-DAEMON@powerman.com >>>>> >>>>> /usr/local/etc/postfix/master.cf >>>>> # >>>>> # Postfix master process configuration file. For details on the >>>>> format >>>>> # of the file, see the master(5) manual page (command: "man 5 >>>>> master" or >>>>> # on-line: http://www.postfix.org/master.5.html). >>>>> # >>>>> # Do not forget to execute "postfix reload" after editing this >>>>> file. >>>>> # >>>>> # >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >>>>> >>>>> >>>>> # service type private unpriv chroot wakeup maxproc command + >>>>> args >>>>> # (yes) (yes) (no) (never) (100) >>>>> # >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >>>>> >>>>> >>>>> smtp inet n - n - - smtpd >>>>> -o content_filter=3Dspamassassin >>>>> >>>>> #smtp inet n - n - 1 =20 >>>>> postscreen >>>>> #smtpd pass - - n - - smtpd >>>>> #dnsblog unix - - n - 0 dnsblog >>>>> #tlsproxy unix - - n - 0 tlsproxy >>>>> #submission inet n - n - - smtpd >>>>> # -o syslog_name=3Dpostfix/submission >>>>> # -o smtpd_tls_security_level=3Dencrypt >>>>> # -o smtpd_sasl_auth_enable=3Dyes >>>>> # -o smtpd_reject_unlisted_recipient=3Dno >>>>> # -o smtpd_client_restrictions=3D$mua_client_restrictions >>>>> # -o smtpd_helo_restrictions=3D$mua_helo_restrictions >>>>> # -o smtpd_sender_restrictions=3D$mua_sender_restrictions >>>>> # -o smtpd_recipient_restrictions=3D >>>>> # -o smtpd_relay_restrictions=3Dpermit_sasl_authenticated,reject >>>>> # -o milter_macro_daemon_name=3DORIGINATING >>>>> #smtps inet n - n - - smtpd >>>>> # -o syslog_name=3Dpostfix/smtps >>>>> # -o smtpd_tls_wrappermode=3Dyes >>>>> # -o smtpd_sasl_auth_enable=3Dyes >>>>> # -o smtpd_reject_unlisted_recipient=3Dno >>>>> # -o smtpd_client_restrictions=3D$mua_client_restrictions >>>>> # -o smtpd_helo_restrictions=3D$mua_helo_restrictions >>>>> # -o smtpd_sender_restrictions=3D$mua_sender_restrictions >>>>> # -o smtpd_recipient_restrictions=3D >>>>> # -o smtpd_relay_restrictions=3Dpermit_sasl_authenticated,reject >>>>> # -o milter_macro_daemon_name=3DORIGINATING >>>>> #628 inet n - n - - qmqpd >>>>> pickup unix n - n 60 1 pickup >>>>> cleanup unix n - n - 0 cleanup >>>>> qmgr unix n - n 300 1 qmgr >>>>> #qmgr unix n - n 300 1 oqmgr >>>>> tlsmgr unix - - n 1000? 1 tlsmgr >>>>> rewrite unix - - n - - =20 >>>>> trivial-rewrite >>>>> bounce unix - - n - 0 bounce >>>>> defer unix - - n - 0 bounce >>>>> trace unix - - n - 0 bounce >>>>> verify unix - - n - 1 verify >>>>> flush unix n - n 1000? 0 flush >>>>> proxymap unix - - n - - proxymap >>>>> proxywrite unix - - n - 1 proxymap >>>>> smtp unix - - n - - smtp >>>>> relay unix - - n - - smtp >>>>> # -o smtp_helo_timeout=3D5 -o smtp_connect_timeout=3D5 >>>>> showq unix n - n - - showq >>>>> error unix - - n - - error >>>>> retry unix - - n - - error >>>>> discard unix - - n - - discard >>>>> local unix - n n - - local >>>>> virtual unix - n n - - virtual >>>>> lmtp unix - - n - - lmtp >>>>> anvil unix - - n - 1 anvil >>>>> scache unix - - n - 1 scache >>>>> # >>>>> # >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>>> >>>>> # Interfaces to non-Postfix software. >>>>> # >>>>> spamassassin unix - n n - - pipe >>>>> user=3Dspamd argv=3D/usr/local/bin/spamc -f -e >>>>> /usr/sbin/sendmail -oi -f ${sender} ${recipient} >>>>> >>>>> >>>>> >>>>> /usr/local/etc/postfix/main.cf >>>>> biff =3D no >>>>> syslog_facility =3D local5 >>>>> disable_dns_lookups =3D yes >>>>> mailbox_size_limit =3D 100000000 >>>>> message_size_limit =3D 100000000 >>>>> ## 9999 value disables compatibility function >>>>> compatibility_level =3D 9999 >>>>> smtputf8_enable =3D no >>>>> >>>>> >>>>> >>>>> >>>>> /usr/local/etc/mail/spamassassin/local.cf >>>>> # This is the right place to customize your installation of >>>>> SpamAssassin. >>>>> # >>>>> # See 'perldoc Mail::SpamAssassin::Conf' for details of what >>>>> can be >>>>> # tweaked. >>>>> # >>>>> # Only a small subset of options are listed below >>>>> # >>>>> ###################################################################= ######## >>>>> >>>>> >>>>> >>>>> >>>>> # Add *****SPAM***** to the Subject header of spam e-mails >>>>> # >>>>> rewrite_header Subject *****SPAM***** >>>>> >>>>> >>>>> # Save spam messages as a message/rfc822 MIME attachment >>>>> instead of >>>>> # modifying the original message (0: off, 2: use text/plain >>>>> instead) >>>>> # >>>>> report_safe 1 >>>>> >>>>> >>>>> # Set which networks or hosts are considered 'trusted' by your >>>>> mail >>>>> # server (i.e. not spammers) >>>>> # >>>>> # trusted_networks 212.17.35. >>>>> >>>>> >>>>> # Set file-locking method (flock is not safe over NFS, but is >>>>> faster) >>>>> # >>>>> # lock_method flock >>>>> >>>>> >>>>> # Set the threshold at which a message is considered spam >>>>> (default: 5.0) >>>>> # >>>>> # required_score 5.0 >>>>> >>>>> >>>>> # Use Bayesian classifier (default: 1) >>>>> # >>>>> # use_bayes 1 >>>>> >>>>> >>>>> # Bayesian classifier auto-learning (default: 1) >>>>> # >>>>> # bayes_auto_learn 1 >>>>> >>>>> >>>>> # Set headers which may provide inappropriate cues to the >>>>> Bayesian >>>>> # classifier >>>>> # >>>>> # bayes_ignore_header X-Bogosity >>>>> # bayes_ignore_header X-Spam-Flag >>>>> # bayes_ignore_header X-Spam-Status >>>>> >>>>> >>>>> # Some shortcircuiting, if the plugin is enabled >>>>> # >>>>> ifplugin Mail::SpamAssassin::Plugin::Shortcircuit >> >>>>> # >>>>> # default: strongly-whitelisted mails are *really* whitelisted >>>>> now, if the >>>>> # shortcircuiting plugin is active, causing early exit to save >>>>> CPU load. >>>>> # Uncomment to turn this on >>>>> # >>>>> # shortcircuit USER_IN_WHITELIST on >>>>> # shortcircuit USER_IN_DEF_WHITELIST on >>>>> # shortcircuit USER_IN_ALL_SPAM_TO on >>>>> # shortcircuit SUBJECT_IN_WHITELIST on >>>>> >>>>> # the opposite; blacklisted mails can also save CPU >>>>> # >>>>> # shortcircuit USER_IN_BLACKLIST on >>>>> # shortcircuit USER_IN_BLACKLIST_TO on >>>>> # shortcircuit SUBJECT_IN_BLACKLIST on >>>>> >>>>> # if you have taken the time to correctly specify your >>>>> "trusted_networks", >>>>> # this is another good way to save CPU >>>>> # >>>>> # shortcircuit ALL_TRUSTED on >>>>> >>>>> # and a well-trained bayes DB can save running rules, too >>>>> # >>>>> # shortcircuit BAYES_99 spam >>>>> # shortcircuit BAYES_00 ham >>>>> >>>>> endif # Mail::SpamAssassin::Plugin::Shortcircuit >>>>> >>>>> >>>>> >>>> You have the sendmail package installed, along with postfix.=20 >>> Remove >>>> or disable sendmail. >>>> >>>> What's happening is that sendmail submits mail via SMTP back to >>>> postfix, which causes a mail loop. >>>> >>> sendmail is what comes with the basic freebsd install IE, no >>> package. >>> sendmail is disabled in rc.conf so that is not the problem. >>> >>> >> >> >> Of course it's the problem. You're using the real sendmail(TM) >> sendmail command and it's causing a mailer loop. Your logs show the >> proof. If you were using postfix, it would log as pickup, not >> sendmail. I suppose you forgot to edit /etc/mail/mailer.conf to >> enable postfix. >> https://www.freebsd.org/doc/en/books/handbook/mail-changingmta.html >> >> >> >> -- Noel Jones >> >> > > During the pkg install postfix, it asks this question: > Would you like to activate Postfix in /etc/mail/mailer.conf [n]? > I just hit enter and took the NO default. > From what you are saying I should have entered Y to that question. > > To verify this I did > service postfix stop > pkg remove postfix-x.x.x > pkg install postfix > Answered Y to the question > Would you like to activate Postfix in /etc/mail/mailer.conf [n]? > service postfix restart > sent a spam email from a LAN PC and then received that email back. > Did not get the to many hops error message, but the email was not > flagged as spam and it should have been. > I want to test spamassassin on the host using emails from a lan PC > before I change my hosting domain config to send email to my > postfix server. Is there some other tweak I need to make that happen? > > Thanks > Ernie > > > > Not much to go on there... Did the mail go through spamassassin? Your logs will show if it did. If it didn't, logs will probably show why not. Did spamassassin recognize it as spam? The spamd logs will show which tests fired. Does spamassassin recognize the message as spam if you test it manually? You might be served better on a different list. postfix-users can help you if you're having trouble with the mail routing, the spamassassin users list can help if SA isn't recognizing or marking mail correctly. -- Noel Jones From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 19:51:19 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A3DCB287 for ; Thu, 30 Apr 2015 19:51:19 +0000 (UTC) Received: from remote.thehowies.com (50-197-91-217-static.hfc.comcastbusiness.net [50.197.91.217]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "remote.thehowies.com", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8101A1474 for ; Thu, 30 Apr 2015 19:51:18 +0000 (UTC) Received: from PRIMARY.thehowies.local ([fe80::497b:de8e:1045:4c2a]) by PRIMARY.thehowies.local ([fe80::497b:de8e:1045:4c2a%24]) with mapi id 14.03.0224.002; Thu, 30 Apr 2015 12:50:06 -0700 From: John Howie To: Matthew Seaman CC: "freebsd-questions@freebsd.org" Subject: Re: minor syslog issue Thread-Topic: minor syslog issue Thread-Index: AQHQg0NFQpcCH2qyzkOk8TKcKWpS5Z1l/OwAgAAFGwCAAAe0gIAABb4AgAAQWoD//9dcBg== Date: Thu, 30 Apr 2015 19:50:05 +0000 Message-ID: References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542398B.4000405@hiwaay.net>,<55424715.3080607@infracaninophile.co.uk> In-Reply-To: <55424715.3080607@infracaninophile.co.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 19:51:19 -0000 A little OT but do you really want the RPI to be your time server? It has n= o hardware clock. The time keeping will be (relatively) terrible. Sent from my iPhone > On Apr 30, 2015, at 11:16, Matthew Seaman wrote: >=20 >> On 2015/04/30 15:17, William A. Mahaffey III wrote: >> I missed that (high port #, thought it might be a process #, *new* to >> tcpdump et al :-/ ) .... Could that be a mal/mis-configuration in the >> (rather beta) NetBSD ARM port ? I will try the updated syslogd flag & >> see how that goes. Thanks :-). >=20 > Dunno. FreeBSD syslogd sends /from/ port 514 as well as to port 514 -- > which is the traditional behaviour from way back when... of a lot of UDP > based services. NTP still does this, DNS used to do that until > Kaminsky, and now it most definitely *doesn't* do that. More recent > code tends to just use arbitrary ports on the sending side -- I believe > rsyslog (which is the Linux standard) works like that. No idea how > NetBSD behaves. >=20 > Cheers, >=20 > Matthew >=20 From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 19:55:19 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1EF6957A for ; Thu, 30 Apr 2015 19:55:19 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 B1C3C1575 for ; Thu, 30 Apr 2015 19:55:18 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-245.adsl.hiwaay.net [216.180.76.245]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t3UJtG4S005207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 14:55:16 -0500 Message-ID: <554288A3.7070108@hiwaay.net> Date: Thu, 30 Apr 2015 15:01:30 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 CC: "freebsd-questions@freebsd.org" Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542398B.4000405@hiwaay.net>, <55424715.3080607@infracaninophile.co.uk> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 19:55:19 -0000 On 04/30/15 14:56, John Howie wrote: > A little OT but do you really want the RPI to be your time server? It has no hardware clock. The time keeping will be (relatively) terrible. > > Sent from my iPhone Actually, it keeps pretty good time. I do have a DS3231 RTC chip on the GPIO slot, however, it is not (yet) fully supported. As long as there are no power burps (yes it is on an UPS), I am OK. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 20:37:15 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2589753E for ; Thu, 30 Apr 2015 20:37:15 +0000 (UTC) Received: from remote.thehowies.com (50-197-91-217-static.hfc.comcastbusiness.net [50.197.91.217]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "remote.thehowies.com", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 014F819E7 for ; Thu, 30 Apr 2015 20:37:14 +0000 (UTC) Received: from PRIMARY.thehowies.local ([fe80::497b:de8e:1045:4c2a]) by PRIMARY.thehowies.local ([fe80::497b:de8e:1045:4c2a%24]) with mapi id 14.03.0224.002; Thu, 30 Apr 2015 13:37:13 -0700 From: John Howie To: "William A. Mahaffey III" CC: "freebsd-questions@freebsd.org" Subject: Re: minor syslog issue Thread-Topic: minor syslog issue Thread-Index: AQHQg0NFQpcCH2qyzkOk8TKcKWpS5Z1l/OwAgAAFGwCAAAe0gIAABb4AgAAQWoD//9dcBoAAdpQA//+Wlso= Date: Thu, 30 Apr 2015 20:37:12 +0000 Message-ID: <38196015-1B55-4DBF-BE73-003556CB56EE@thehowies.com> References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542398B.4000405@hiwaay.net>, <55424715.3080607@infracaninophile.co.uk> , <554288A3.7070108@hiwaay.net> In-Reply-To: <554288A3.7070108@hiwaay.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 20:37:15 -0000 Aha, the missing piece of information! That will make a huge difference. Have you considered using a GPS or cellular connection for more accurate ti= mekeeping? Also, I diskless boot a couple of my RPIs to avoid all SHDC wear and tear. = You might want to look at that, too. You could avoid using syslog to write = to a loghost in this fashion, if they boot from your existing box. Sent from my iPhone > On Apr 30, 2015, at 15:55, William A. Mahaffey III wrote= : >=20 >> On 04/30/15 14:56, John Howie wrote: >> A little OT but do you really want the RPI to be your time server? It ha= s no hardware clock. The time keeping will be (relatively) terrible. >>=20 >> Sent from my iPhone >=20 > Actually, it keeps pretty good time. I do have a DS3231 RTC chip on the G= PIO slot, however, it is not (yet) fully supported. As long as there are no= power burps (yes it is on an UPS), I am OK. >=20 > --=20 >=20 > William A. Mahaffey III >=20 > ---------------------------------------------------------------------- >=20 > "The M1 Garand is without doubt the finest implement of war > ever devised by man." > -- Gen. George S. Patton Jr. >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 20:50:39 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A3CEE858 for ; Thu, 30 Apr 2015 20:50:39 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 69DEF1B0B for ; Thu, 30 Apr 2015 20:50:39 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-245.adsl.hiwaay.net [216.180.76.245]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t3UKobGA020640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 15:50:38 -0500 Message-ID: <5542959D.6090200@hiwaay.net> Date: Thu, 30 Apr 2015 15:56:52 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 CC: "freebsd-questions@freebsd.org" Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542398B.4000405@hiwaay.net>, <55424715.3080607@infracaninophile.co.uk> , <554288A3.7070108@hiwaay.net> <38196015-1B55-4DBF-BE73-003556CB56EE@thehowies.com> In-Reply-To: <38196015-1B55-4DBF-BE73-003556CB56EE@thehowies.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 20:50:39 -0000 On 04/30/15 15:43, John Howie wrote: > Aha, the missing piece of information! That will make a huge difference. > > Have you considered using a GPS or cellular connection for more accurate timekeeping? > > Also, I diskless boot a couple of my RPIs to avoid all SHDC wear and tear. You might want to look at that, too. You could avoid using syslog to write to a loghost in this fashion, if they boot from your existing box. > > Sent from my iPhone > >> On Apr 30, 2015, at 15:55, William A. Mahaffey III wrote: >> >>> On 04/30/15 14:56, John Howie wrote: >>> A little OT but do you really want the RPI to be your time server? It has no hardware clock. The time keeping will be (relatively) terrible. >>> >>> Sent from my iPhone >> Actually, it keeps pretty good time. I do have a DS3231 RTC chip on the GPIO slot, however, it is not (yet) fully supported. As long as there are no power burps (yes it is on an UPS), I am OK. >> >> -- >> >> William A. Mahaffey III >> >> ---------------------------------------------------------------------- >> >> "The M1 Garand is without doubt the finest implement of war >> ever devised by man." >> -- Gen. George S. Patton Jr. >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" My ISP is a stratum-3 server (used to be 2 a few years back) & I'm straying less than 1 usec after an hour or 2 up (I unplug from the WWW every night & whenever I'm going to be away from the LAN for a while). I'm happy enough w/ their time-keeping. If that DS3231 support comes in (they *are* working on it, AFAIK), I'll be solid enough for my needs. I should look into running it diskless, but I am still pretty far down the ol' learning curve. This exercise was/is partly/mostly for learning, although it does a good job as my time-master. Next job is to get another one (RPiB+) setup as a WAP for my LAN .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 23:36:35 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2CEAD979 for ; Thu, 30 Apr 2015 23:36:35 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 B9A7C1D06 for ; Thu, 30 Apr 2015 23:36:34 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-245.adsl.hiwaay.net [216.180.76.245]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t3UNaVmT004921 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 18:36:31 -0500 Message-ID: <5542BC7F.7050602@hiwaay.net> Date: Thu, 30 Apr 2015 18:42:46 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> In-Reply-To: <5542348D.8000109@infracaninophile.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 23:36:35 -0000 On 04/30/15 09:02, Matthew Seaman wrote: > On 04/30/15 14:28, William A. Mahaffey III wrote: >> 08:23:28.496828 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >> syslog.error, length: 59 >> 08:23:28.497229 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >> syslog.error, length: 59 > This is the only relevant bit out of your tcpdump output -- it usually > helps if you filter out as much of the irrelevant stuff that you can[*]. > > Anyhow, as you can see, your RPiB+ is logging *from* an arbitrary > high-numbered port. This time it happens to be using 59735 but that > would probably change with each restart of syslogd. Basically use the > '-a 192.168.0.0/16:*' form in this case. > > Cheers, > > Matthew > > [*] ie. 'tcpdump port syslog' should work as the packets are being sent > to the syslog port on your server. > An update here, I kicked off the above command on both the RPi & kabini1. It took a while, but the RPi did its daily 'syslogd restart': Apr 27 22:00:01 rpi syslogd[603]: restart Apr 28 08:00:00 rpi syslogd[603]: restart Apr 28 22:00:00 rpi syslogd[603]: restart Apr 29 14:54:44 rpi syslogd[603]: Exiting on signal 15 Apr 29 10:01:01 rpi syslogd[25366]: restart Apr 29 17:06:15 rpi syslogd[25366]: restart Apr 30 07:28:32 rpi syslogd[25366]: Exiting on signal 15 Apr 30 07:28:34 rpi syslogd[27124]: restart Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 Apr 30 08:20:37 rpi syslogd[2779]: restart Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 Apr 30 08:23:45 rpi syslogd[14885]: restart Apr 30 08:41:03 rpi syslogd[14885]: Exiting on signal 15 Apr 30 08:41:03 rpi syslogd[14885]: Exiting on signal 15 Apr 30 08:41:05 rpi syslogd[27342]: restart Apr 30 09:25:16 rpi syslogd[27342]: Exiting on signal 15 Apr 30 09:25:16 rpi syslogd[27342]: Exiting on signal 15 Apr 30 09:25:18 rpi syslogd[11087]: restart Apr 30 09:26:03 rpi timed[6547]: This machine is master Apr 30 17:06:15 rpi syslogd[11087]: restart Thu Apr 30 18:32:45 MCDT 2015 rpi # & I got packets both from the RPi & to kabini1, but nothing in kabini1's logfile: rpi # tcpdump port syslog tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on usmsc0, link-type EN10MB (Ethernet), capture size 65535 bytes 17:06:00.980239 IP 192.168.0.1.59623 > 192.168.0.27.syslog: SYSLOG syslog.info, length: 47 [root@kabini1, /etc, 9:26:24am] 503 % tcpdump port syslog tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re0, link-type EN10MB (Ethernet), capture size 65535 bytes 17:07:00.976242 IP RPiB+.59623 > kabini1.local.syslog: SYSLOG syslog.info, length: 47 [root@kabini1, /etc, 6:31:31pm] 364 % tail -15 /var/log/messages ; hwclock -r ; date Apr 28 09:30:12 kabini1 kernel: Limiting closed port RST response from 276 to 200 packets/sec Apr 28 09:30:13 kabini1 kernel: Limiting closed port RST response from 239 to 200 packets/sec Apr 28 09:30:14 kabini1 kernel: Limiting closed port RST response from 280 to 200 packets/sec Apr 28 09:30:16 kabini1 kernel: Limiting closed port RST response from 319 to 200 packets/sec Apr 30 08:13:49 kabini1 syslogd: exiting on signal 15 Apr 30 08:13:49 kabini1 syslogd: kernel boot file is /boot/kernel/kernel Apr 30 08:16:36 kabini1 kernel: re0: promiscuous mode enabled Apr 30 08:17:53 kabini1 kernel: re0: promiscuous mode disabled Apr 30 08:33:43 kabini1 kernel: re0: promiscuous mode enabled Apr 30 08:41:19 kabini1 kernel: re0: promiscuous mode disabled Apr 30 08:52:53 kabini1 kernel: re0: promiscuous mode enabled Apr 30 09:07:57 kabini1 kernel: re0: promiscuous mode disabled Apr 30 09:18:45 kabini1 syslogd: exiting on signal 15 Apr 30 09:18:45 kabini1 syslogd: kernel boot file is /boot/kernel/kernel Apr 30 09:20:47 kabini1 kernel: re0: promiscuous mode enabled hwclock: Command not found. Thu Apr 30 18:39:25 MCDT 2015 [root@kabini1, /etc, 6:39:25pm] 365 % syslogd on kabini1 should be accepting traffic from all ports: [root@kabini1, /etc, 6:40:19pm] 366 % ps -ax | grep syslog 783 ?? Is 0:39.07 /usr/sbin/amd -p -a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map 73506 ?? Is 0:00.10 /usr/sbin/syslogd -a 192.168.0.0/16:* -C -T 8622 4 S+ 0:00.00 grep syslog 73648 7 S+ 0:00.93 tcpdump port i.e. looks like the traffic is there, but syslogd isn't recording it (?) .... Any clues appreciated. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 23:46:04 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8FD70A9F for ; Thu, 30 Apr 2015 23:46:04 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 58B4B1DF1 for ; Thu, 30 Apr 2015 23:46:04 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-245.adsl.hiwaay.net [216.180.76.245]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t3UNk23W009115 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 18:46:03 -0500 Message-ID: <5542BEBA.5080207@hiwaay.net> Date: Thu, 30 Apr 2015 18:52:17 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542BC7F.7050602@hiwaay.net> In-Reply-To: <5542BC7F.7050602@hiwaay.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 23:46:04 -0000 On 04/30/15 18:42, William A. Mahaffey III wrote: > On 04/30/15 09:02, Matthew Seaman wrote: >> On 04/30/15 14:28, William A. Mahaffey III wrote: >>> 08:23:28.496828 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >>> syslog.error, length: 59 >>> 08:23:28.497229 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >>> syslog.error, length: 59 >> This is the only relevant bit out of your tcpdump output -- it usually >> helps if you filter out as much of the irrelevant stuff that you can[*]. >> >> Anyhow, as you can see, your RPiB+ is logging *from* an arbitrary >> high-numbered port. This time it happens to be using 59735 but that >> would probably change with each restart of syslogd. Basically use the >> '-a 192.168.0.0/16:*' form in this case. >> >> Cheers, >> >> Matthew >> >> [*] ie. 'tcpdump port syslog' should work as the packets are being sent >> to the syslog port on your server. >> > > An update here, I kicked off the above command on both the RPi & > kabini1. It took a while, but the RPi did its daily 'syslogd restart': > > > Apr 27 22:00:01 rpi syslogd[603]: restart > Apr 28 08:00:00 rpi syslogd[603]: restart > Apr 28 22:00:00 rpi syslogd[603]: restart > Apr 29 14:54:44 rpi syslogd[603]: Exiting on signal 15 > Apr 29 10:01:01 rpi syslogd[25366]: restart > Apr 29 17:06:15 rpi syslogd[25366]: restart > Apr 30 07:28:32 rpi syslogd[25366]: Exiting on signal 15 > Apr 30 07:28:34 rpi syslogd[27124]: restart > Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 > Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 > Apr 30 08:20:37 rpi syslogd[2779]: restart > Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 > Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 > Apr 30 08:23:45 rpi syslogd[14885]: restart > Apr 30 08:41:03 rpi syslogd[14885]: Exiting on signal 15 > Apr 30 08:41:03 rpi syslogd[14885]: Exiting on signal 15 > Apr 30 08:41:05 rpi syslogd[27342]: restart > Apr 30 09:25:16 rpi syslogd[27342]: Exiting on signal 15 > Apr 30 09:25:16 rpi syslogd[27342]: Exiting on signal 15 > Apr 30 09:25:18 rpi syslogd[11087]: restart > Apr 30 09:26:03 rpi timed[6547]: This machine is master > Apr 30 17:06:15 rpi syslogd[11087]: restart > Thu Apr 30 18:32:45 MCDT 2015 > rpi # > > > & I got packets both from the RPi & to kabini1, but nothing in > kabini1's logfile: > > rpi # tcpdump port syslog > tcpdump: verbose output suppressed, use -v or -vv for full protocol > decode > listening on usmsc0, link-type EN10MB (Ethernet), capture size 65535 > bytes > 17:06:00.980239 IP 192.168.0.1.59623 > 192.168.0.27.syslog: SYSLOG > syslog.info, length: 47 > > [root@kabini1, /etc, 9:26:24am] 503 % tcpdump port syslog > tcpdump: verbose output suppressed, use -v or -vv for full protocol > decode > listening on re0, link-type EN10MB (Ethernet), capture size 65535 bytes > 17:07:00.976242 IP RPiB+.59623 > kabini1.local.syslog: SYSLOG > syslog.info, length: 47 > > [root@kabini1, /etc, 6:31:31pm] 364 % tail -15 /var/log/messages ; > hwclock -r ; date > Apr 28 09:30:12 kabini1 kernel: Limiting closed port RST response from > 276 to 200 packets/sec > Apr 28 09:30:13 kabini1 kernel: Limiting closed port RST response from > 239 to 200 packets/sec > Apr 28 09:30:14 kabini1 kernel: Limiting closed port RST response from > 280 to 200 packets/sec > Apr 28 09:30:16 kabini1 kernel: Limiting closed port RST response from > 319 to 200 packets/sec > Apr 30 08:13:49 kabini1 syslogd: exiting on signal 15 > Apr 30 08:13:49 kabini1 syslogd: kernel boot file is /boot/kernel/kernel > Apr 30 08:16:36 kabini1 kernel: re0: promiscuous mode enabled > Apr 30 08:17:53 kabini1 kernel: re0: promiscuous mode disabled > Apr 30 08:33:43 kabini1 kernel: re0: promiscuous mode enabled > Apr 30 08:41:19 kabini1 kernel: re0: promiscuous mode disabled > Apr 30 08:52:53 kabini1 kernel: re0: promiscuous mode enabled > Apr 30 09:07:57 kabini1 kernel: re0: promiscuous mode disabled > Apr 30 09:18:45 kabini1 syslogd: exiting on signal 15 > Apr 30 09:18:45 kabini1 syslogd: kernel boot file is /boot/kernel/kernel > Apr 30 09:20:47 kabini1 kernel: re0: promiscuous mode enabled > hwclock: Command not found. > Thu Apr 30 18:39:25 MCDT 2015 > [root@kabini1, /etc, 6:39:25pm] 365 % > > syslogd on kabini1 should be accepting traffic from all ports: > > [root@kabini1, /etc, 6:40:19pm] 366 % ps -ax | grep syslog > 783 ?? Is 0:39.07 /usr/sbin/amd -p -a /.amd_mnt -l syslog > /host /etc/amd.map /net /etc/amd.map > 73506 ?? Is 0:00.10 /usr/sbin/syslogd -a 192.168.0.0/16:* -C -T > 8622 4 S+ 0:00.00 grep syslog > 73648 7 S+ 0:00.93 tcpdump port > > i.e. looks like the traffic is there, but syslogd isn't recording it > (?) .... Any clues appreciated. > *Aaaaaaaaaaaaack* !!!! Looks like ipfw was catching it, I had changed my rules to allow *some* udp traffic a few days ago, but didn't open it up enough. Just changed that & we'll see either later today or tomorrow at the next 'syslogd restart' .... Sorry for the noise :-/ .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Fri May 1 00:58:45 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B0A7C933 for ; Fri, 1 May 2015 00:58:45 +0000 (UTC) Received: from mail.sagedata.net (mail.sagedata.net [38.106.15.121]) (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 93C011584 for ; Fri, 1 May 2015 00:58:45 +0000 (UTC) Received: from bellepc (107-205-224-165.lightspeed.crchtx.sbcglobal.net [107.205.224.165]) by mail.sagedata.net (8.14.6/8.14.6) with ESMTP id t410uTBd047083 for ; Thu, 30 Apr 2015 19:56:29 -0500 (CDT) (envelope-from belle@antennex.com) X-Authentication-Warning: mail.sagedata.net: Host 107-205-224-165.lightspeed.crchtx.sbcglobal.net [107.205.224.165] claimed to be bellepc From: "Nancy Belle" To: "freebsd-questions" Subject: Find and replace content in 100 lines Date: Thu, 30 Apr 2015 19:58:37 -0500 Message-Id: MIME-Version: 1.0 X-Priority: 3 X-Mailer: DreamMail 4.6.9.2 X-Scanned-By: milter-spamc/1.15.388 (mail.sagedata.net [38.106.15.121]); Thu, 30 Apr 2015 19:56:30 -0500 X-Spam-Status: NO, hits=-10.00 required=5.00 X-Spam-Report: Content analysis details: (-10.0 points, 5.0 required) | | pts rule name description | ---- ---------------------- -------------------------------------------------- | -0.0 SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule | -10 ALL_TRUSTED Passed through trusted hosts only via SMTP | Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 00:58:45 -0000 SGkgZnJlZWJzZC1xdWVzdGlvbnMNCg0KSSBob3BlIHknYWxsIGRvbid0IG1pbmQgYW5vdGhlciBx dWVzdGlvbiwgYWx0aG91Z2ggSSBoYXZlIGEgc2xpbSBpZGVhIGhvdyB0byBkbyBpdCwgYnV0IGl0 IHdvdWxkIG5lZWQgc29tZSB0cmlhbCBhbmQgZXJyb3IgdG8gZ2V0IHRoZXJlLiBQcm9iYWJseSB1 c2UgZWl0aGVyIHNlZCBvciBwZXJsIGluIHNvbWUgZmFzaGlvbi4gSXQncyB0aGUgZmFzaGlvbiBJ J20gdW5zdXJlIG9mLg0KDQpSdW5uaW5nIGZic2QtOS4zDQoNClRoaXMgaXMgcHJvYmFibHkgZWFz eSBmb3IgdGhlIHNjcmlwdCBndXJ1cyBvbiB0aGUgbGlzdC4NCg0KSGVyZSdzIHRoZSBuZWVkIHRv IGZpeCBhYm91dCAxMDAgbGluZXMgaW4gYSBzaW5nbGUgKi5odG1sIGZpbGU6DQpmaW5kIHRoaXMg Ii4uLy4uLy4uL2FyY2gxL2FyY2gxNCINCnJlcGxhY2Ugd2l0aCAiLi4vLi4vLi4vLi4vLi4vLi4v Zm9vL2ZvbzIvZm9vMy9hcmNoMS9hcmNoMTQiDQoNClRoZSBxdW90ZXMgYXJlIHRoZXJlIHRvby4N Cg0KSG9wZSBmb3IgaGVscCwgcGxlYXNlIQ0KDQotLQ0KQWxsIHRoZSBiZXN0LCA6LSkNCk5hbmN5 IEJlbGxlLCBiZWxsZUBhbnRlbm5leC5jb20NCjQvMzAvMjAxNSANCg== From owner-freebsd-questions@FreeBSD.ORG Fri May 1 01:14:14 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E46CDBAE for ; Fri, 1 May 2015 01:14:13 +0000 (UTC) Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D0361736 for ; Fri, 1 May 2015 01:14:13 +0000 (UTC) Received: by qkhg7 with SMTP id g7so44320456qkh.2 for ; Thu, 30 Apr 2015 18:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=MZAcAGbIVl5AgDRhP+r9k6qHoj7DEo5yFog2xpHhqCI=; b=tzyfDtgR/0HhYXYmcHQIXcaFoHYSykYLZUCUJEFpY6XbACtJVxSzxi0c6fbKCpYCMq w1ZiTUo8oBysGqCBJ2ypiwkqq0CIOdEYdZ4rDwVKDqjdHATnUESHeJNN3iudyQhVoDXO q53P/0/FCaZZ23aauF+iZmc63AqmstnjDwxQwl+laFmanm4eauJrbDOz8x2soVz4hQyA YxUo68Gou0rh1KrFxlz4AUJzMofkWl/hDpYvF4GhClAUxw08EFhm1iL5DKCCAG3W4sq0 ZIm9o4nJQw6u14v4dmF+N5drUXjWsvhDL3eZP7VjzPyI8Sojz93zvMCmidajCn2PqtR8 5m4A== X-Received: by 10.55.50.201 with SMTP id y192mr13846481qky.10.1430442852614; Thu, 30 Apr 2015 18:14:12 -0700 (PDT) Received: from smaug.zep.net (pool-72-66-73-67.washdc.fios.verizon.net. [72.66.73.67]) by mx.google.com with ESMTPSA id a6sm2260660qgf.17.2015.04.30.18.14.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 18:14:11 -0700 (PDT) Message-ID: <5542D362.4060802@gmail.com> Date: Thu, 30 Apr 2015 21:14:10 -0400 From: zep User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Find and replace content in 100 lines References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 01:14:14 -0000 On 04/30/2015 08:58 PM, Nancy Belle wrote: > Hi freebsd-questions > > I hope y'all don't mind another question, although I have a slim idea h= ow to do it, but it would need some trial and error to get there. Probabl= y use either sed or perl in some fashion. It's the fashion I'm unsure of.= > > Running fbsd-9.3 > > This is probably easy for the script gurus on the list. > > Here's the need to fix about 100 lines in a single *.html file: > find this "../../../arch1/arch14" > replace with "../../../../../../foo/foo2/foo3/arch1/arch14" > > The quotes are there too. > > Hope for help, please! > normally I'd send jut to the poster, but in the offhand chance this can help someone else, here are my results: [zep@nemesis x]$ cat junk this stuff is easy Here's the need to fix about 100 lines in a single *.html file: find this "../../../arch1/arch14" replace with "../../../../../../foo/foo2/foo3/arch1/arch14" find this "../../../arch1/arch14" find this "../../../arch1/arch14" find this "../../../arch1/arch14" find this "../../../arch1/arch14" find this "../../../arch1/arch14" find this "../../../arch1/arch14" find this "../../../arch1/arch14" [zep@nemesis x]$ cat try perl -p -i -e 's?"../../../arch1/arch14"?"../../../../../../foo/foo2/foo3/arch1/arch14"= ?g' [zep@nemesis x]$ perl -p -i -e 's?"../../../arch1/arch14"?"../../../../../../foo/foo2/foo3/arch1/arch14"= ?g' junk [zep@nemesis x]$ cat junk this stuff is easy Here's the need to fix about 100 lines in a single *.html file: find this "../../../../../../foo/foo2/foo3/arch1/arch14" replace with "../../../../../../foo/foo2/foo3/arch1/arch14" find this "../../../../../../foo/foo2/foo3/arch1/arch14" find this "../../../../../../foo/foo2/foo3/arch1/arch14" find this "../../../../../../foo/foo2/foo3/arch1/arch14" find this "../../../../../../foo/foo2/foo3/arch1/arch14" find this "../../../../../../foo/foo2/foo3/arch1/arch14" find this "../../../../../../foo/foo2/foo3/arch1/arch14" find this "../../../../../../foo/foo2/foo3/arch1/arch14" [zep@nemesis x]$ the "junk" file was just some text to try things with. to make it fully functional I'd end with something like: cd $WEB_DIR find . -type f (or maybe -name "*.html" if you're sure all files will be =2Ehtml) | xargs \ perl -p -i -e 's?"../../../arch1/arch14"?"../../../../../../foo/foo2/foo3/arch1/arch14"= ?g' but I'd make sure to do lots of backups and try first on some junk files/things you don't really need/are a much smaller subset of files on a non prod machine. I just think it'll work, I can't be sure. oh wait. you said a single file. so that could work on just the on file instead of a find. (sorry, too lazy to erase all that, I guess) or you could use vi on the file and do something like : 1,$ s?"../../../arch1/arch14"?"../../../../../../foo/foo2/foo3/arch1/arch14"?= g --=20 public gpg key id: AE60F64C From owner-freebsd-questions@FreeBSD.ORG Fri May 1 03:02:49 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 37C6E69D for ; Fri, 1 May 2015 03:02:49 +0000 (UTC) Received: from remote.thehowies.com (50-197-91-217-static.hfc.comcastbusiness.net [50.197.91.217]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "remote.thehowies.com", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0A99C11FE for ; Fri, 1 May 2015 03:02:48 +0000 (UTC) Received: from PRIMARY.thehowies.local ([fe80::497b:de8e:1045:4c2a]) by PRIMARY.thehowies.local ([fe80::497b:de8e:1045:4c2a%24]) with mapi id 14.03.0224.002; Thu, 30 Apr 2015 20:02:45 -0700 From: John Howie To: "William A. Mahaffey III" , "freebsd-questions@freebsd.org" Subject: Re: minor syslog issue Thread-Topic: minor syslog issue Thread-Index: AQHQg0NFQpcCH2qyzkOk8TKcKWpS5Z1l/OwAgAAFGwCAAAe0gIAAodoAgAACqYD///QcAA== Date: Fri, 1 May 2015 03:02:44 +0000 Message-ID: References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542BC7F.7050602@hiwaay.net> <5542BEBA.5080207@hiwaay.net> In-Reply-To: <5542BEBA.5080207@hiwaay.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.9.150325 x-originating-ip: [12.130.116.25] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <108DEF7C24C4004BA8969278E703BD2D@thehowies.local> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 03:02:49 -0000 Hi William, Why not just "/etc/rc.d/syslogd restart=B2? Regards, John On 4/30/15, 7:45 PM, "William A. Mahaffey III" wrote: >On 04/30/15 18:42, William A. Mahaffey III wrote: >> On 04/30/15 09:02, Matthew Seaman wrote: >>> On 04/30/15 14:28, William A. Mahaffey III wrote: >>>> 08:23:28.496828 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >>>> syslog.error, length: 59 >>>> 08:23:28.497229 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >>>> syslog.error, length: 59 >>> This is the only relevant bit out of your tcpdump output -- it usually >>> helps if you filter out as much of the irrelevant stuff that you >>>can[*]. >>> >>> Anyhow, as you can see, your RPiB+ is logging *from* an arbitrary >>> high-numbered port. This time it happens to be using 59735 but that >>> would probably change with each restart of syslogd. Basically use the >>> '-a 192.168.0.0/16:*' form in this case. >>> >>> Cheers, >>> >>> Matthew >>> >>> [*] ie. 'tcpdump port syslog' should work as the packets are being sent >>> to the syslog port on your server. >>> >> >> An update here, I kicked off the above command on both the RPi & >> kabini1. It took a while, but the RPi did its daily 'syslogd restart': >> >> >> Apr 27 22:00:01 rpi syslogd[603]: restart >> Apr 28 08:00:00 rpi syslogd[603]: restart >> Apr 28 22:00:00 rpi syslogd[603]: restart >> Apr 29 14:54:44 rpi syslogd[603]: Exiting on signal 15 >> Apr 29 10:01:01 rpi syslogd[25366]: restart >> Apr 29 17:06:15 rpi syslogd[25366]: restart >> Apr 30 07:28:32 rpi syslogd[25366]: Exiting on signal 15 >> Apr 30 07:28:34 rpi syslogd[27124]: restart >> Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 >> Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 >> Apr 30 08:20:37 rpi syslogd[2779]: restart >> Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 >> Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 >> Apr 30 08:23:45 rpi syslogd[14885]: restart >> Apr 30 08:41:03 rpi syslogd[14885]: Exiting on signal 15 >> Apr 30 08:41:03 rpi syslogd[14885]: Exiting on signal 15 >> Apr 30 08:41:05 rpi syslogd[27342]: restart >> Apr 30 09:25:16 rpi syslogd[27342]: Exiting on signal 15 >> Apr 30 09:25:16 rpi syslogd[27342]: Exiting on signal 15 >> Apr 30 09:25:18 rpi syslogd[11087]: restart >> Apr 30 09:26:03 rpi timed[6547]: This machine is master >> Apr 30 17:06:15 rpi syslogd[11087]: restart >> Thu Apr 30 18:32:45 MCDT 2015 >> rpi # >> >> >> & I got packets both from the RPi & to kabini1, but nothing in >> kabini1's logfile: >> >> rpi # tcpdump port syslog >> tcpdump: verbose output suppressed, use -v or -vv for full protocol >> decode >> listening on usmsc0, link-type EN10MB (Ethernet), capture size 65535 >> bytes >> 17:06:00.980239 IP 192.168.0.1.59623 > 192.168.0.27.syslog: SYSLOG >> syslog.info, length: 47 >> >> [root@kabini1, /etc, 9:26:24am] 503 % tcpdump port syslog >> tcpdump: verbose output suppressed, use -v or -vv for full protocol >> decode >> listening on re0, link-type EN10MB (Ethernet), capture size 65535 bytes >> 17:07:00.976242 IP RPiB+.59623 > kabini1.local.syslog: SYSLOG >> syslog.info, length: 47 >> >> [root@kabini1, /etc, 6:31:31pm] 364 % tail -15 /var/log/messages ; >> hwclock -r ; date >> Apr 28 09:30:12 kabini1 kernel: Limiting closed port RST response from >> 276 to 200 packets/sec >> Apr 28 09:30:13 kabini1 kernel: Limiting closed port RST response from >> 239 to 200 packets/sec >> Apr 28 09:30:14 kabini1 kernel: Limiting closed port RST response from >> 280 to 200 packets/sec >> Apr 28 09:30:16 kabini1 kernel: Limiting closed port RST response from >> 319 to 200 packets/sec >> Apr 30 08:13:49 kabini1 syslogd: exiting on signal 15 >> Apr 30 08:13:49 kabini1 syslogd: kernel boot file is /boot/kernel/kernel >> Apr 30 08:16:36 kabini1 kernel: re0: promiscuous mode enabled >> Apr 30 08:17:53 kabini1 kernel: re0: promiscuous mode disabled >> Apr 30 08:33:43 kabini1 kernel: re0: promiscuous mode enabled >> Apr 30 08:41:19 kabini1 kernel: re0: promiscuous mode disabled >> Apr 30 08:52:53 kabini1 kernel: re0: promiscuous mode enabled >> Apr 30 09:07:57 kabini1 kernel: re0: promiscuous mode disabled >> Apr 30 09:18:45 kabini1 syslogd: exiting on signal 15 >> Apr 30 09:18:45 kabini1 syslogd: kernel boot file is /boot/kernel/kernel >> Apr 30 09:20:47 kabini1 kernel: re0: promiscuous mode enabled >> hwclock: Command not found. >> Thu Apr 30 18:39:25 MCDT 2015 >> [root@kabini1, /etc, 6:39:25pm] 365 % >> >> syslogd on kabini1 should be accepting traffic from all ports: >> >> [root@kabini1, /etc, 6:40:19pm] 366 % ps -ax | grep syslog >> 783 ?? Is 0:39.07 /usr/sbin/amd -p -a /.amd_mnt -l syslog >> /host /etc/amd.map /net /etc/amd.map >> 73506 ?? Is 0:00.10 /usr/sbin/syslogd -a 192.168.0.0/16:* -C -T >> 8622 4 S+ 0:00.00 grep syslog >> 73648 7 S+ 0:00.93 tcpdump port >> >> i.e. looks like the traffic is there, but syslogd isn't recording it >> (?) .... Any clues appreciated. >> > >*Aaaaaaaaaaaaack* !!!! Looks like ipfw was catching it, I had changed my >rules to allow *some* udp traffic a few days ago, but didn't open it up >enough. Just changed that & we'll see either later today or tomorrow at >the next 'syslogd restart' .... Sorry for the noise :-/ .... > >--=20 > > William A. Mahaffey III > > ---------------------------------------------------------------------- > > "The M1 Garand is without doubt the finest implement of war > ever devised by man." > -- Gen. George S. Patton Jr. > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-questions@FreeBSD.ORG Fri May 1 03:16:47 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 84D0F8EC for ; Fri, 1 May 2015 03:16:47 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 4BC411318 for ; Fri, 1 May 2015 03:16:46 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-245.adsl.hiwaay.net [216.180.76.245]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t413Gj5j017519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Apr 2015 22:16:45 -0500 Message-ID: <5542F01C.6010206@hiwaay.net> Date: Thu, 30 Apr 2015 22:22:59 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542BC7F.7050602@hiwaay.net> <5542BEBA.5080207@hiwaay.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 03:16:47 -0000 On 04/30/15 22:08, John Howie wrote: > Hi William, > > Why not just "/etc/rc.d/syslogd restart²? > > Regards, > > John > > > On 4/30/15, 7:45 PM, "William A. Mahaffey III" wrote: > >> On 04/30/15 18:42, William A. Mahaffey III wrote: >>> On 04/30/15 09:02, Matthew Seaman wrote: >>>> On 04/30/15 14:28, William A. Mahaffey III wrote: >>>>> 08:23:28.496828 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >>>>> syslog.error, length: 59 >>>>> 08:23:28.497229 IP RPiB+.59735 > kabini1.local.syslog: SYSLOG >>>>> syslog.error, length: 59 >>>> This is the only relevant bit out of your tcpdump output -- it usually >>>> helps if you filter out as much of the irrelevant stuff that you >>>> can[*]. >>>> >>>> Anyhow, as you can see, your RPiB+ is logging *from* an arbitrary >>>> high-numbered port. This time it happens to be using 59735 but that >>>> would probably change with each restart of syslogd. Basically use the >>>> '-a 192.168.0.0/16:*' form in this case. >>>> >>>> Cheers, >>>> >>>> Matthew >>>> >>>> [*] ie. 'tcpdump port syslog' should work as the packets are being sent >>>> to the syslog port on your server. >>>> >>> An update here, I kicked off the above command on both the RPi & >>> kabini1. It took a while, but the RPi did its daily 'syslogd restart': >>> >>> >>> Apr 27 22:00:01 rpi syslogd[603]: restart >>> Apr 28 08:00:00 rpi syslogd[603]: restart >>> Apr 28 22:00:00 rpi syslogd[603]: restart >>> Apr 29 14:54:44 rpi syslogd[603]: Exiting on signal 15 >>> Apr 29 10:01:01 rpi syslogd[25366]: restart >>> Apr 29 17:06:15 rpi syslogd[25366]: restart >>> Apr 30 07:28:32 rpi syslogd[25366]: Exiting on signal 15 >>> Apr 30 07:28:34 rpi syslogd[27124]: restart >>> Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 >>> Apr 30 08:20:34 rpi syslogd[27124]: Exiting on signal 15 >>> Apr 30 08:20:37 rpi syslogd[2779]: restart >>> Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 >>> Apr 30 08:23:43 rpi syslogd[2779]: Exiting on signal 15 >>> Apr 30 08:23:45 rpi syslogd[14885]: restart >>> Apr 30 08:41:03 rpi syslogd[14885]: Exiting on signal 15 >>> Apr 30 08:41:03 rpi syslogd[14885]: Exiting on signal 15 >>> Apr 30 08:41:05 rpi syslogd[27342]: restart >>> Apr 30 09:25:16 rpi syslogd[27342]: Exiting on signal 15 >>> Apr 30 09:25:16 rpi syslogd[27342]: Exiting on signal 15 >>> Apr 30 09:25:18 rpi syslogd[11087]: restart >>> Apr 30 09:26:03 rpi timed[6547]: This machine is master >>> Apr 30 17:06:15 rpi syslogd[11087]: restart >>> Thu Apr 30 18:32:45 MCDT 2015 >>> rpi # >>> >>> >>> & I got packets both from the RPi & to kabini1, but nothing in >>> kabini1's logfile: >>> >>> rpi # tcpdump port syslog >>> tcpdump: verbose output suppressed, use -v or -vv for full protocol >>> decode >>> listening on usmsc0, link-type EN10MB (Ethernet), capture size 65535 >>> bytes >>> 17:06:00.980239 IP 192.168.0.1.59623 > 192.168.0.27.syslog: SYSLOG >>> syslog.info, length: 47 >>> >>> [root@kabini1, /etc, 9:26:24am] 503 % tcpdump port syslog >>> tcpdump: verbose output suppressed, use -v or -vv for full protocol >>> decode >>> listening on re0, link-type EN10MB (Ethernet), capture size 65535 bytes >>> 17:07:00.976242 IP RPiB+.59623 > kabini1.local.syslog: SYSLOG >>> syslog.info, length: 47 >>> >>> [root@kabini1, /etc, 6:31:31pm] 364 % tail -15 /var/log/messages ; >>> hwclock -r ; date >>> Apr 28 09:30:12 kabini1 kernel: Limiting closed port RST response from >>> 276 to 200 packets/sec >>> Apr 28 09:30:13 kabini1 kernel: Limiting closed port RST response from >>> 239 to 200 packets/sec >>> Apr 28 09:30:14 kabini1 kernel: Limiting closed port RST response from >>> 280 to 200 packets/sec >>> Apr 28 09:30:16 kabini1 kernel: Limiting closed port RST response from >>> 319 to 200 packets/sec >>> Apr 30 08:13:49 kabini1 syslogd: exiting on signal 15 >>> Apr 30 08:13:49 kabini1 syslogd: kernel boot file is /boot/kernel/kernel >>> Apr 30 08:16:36 kabini1 kernel: re0: promiscuous mode enabled >>> Apr 30 08:17:53 kabini1 kernel: re0: promiscuous mode disabled >>> Apr 30 08:33:43 kabini1 kernel: re0: promiscuous mode enabled >>> Apr 30 08:41:19 kabini1 kernel: re0: promiscuous mode disabled >>> Apr 30 08:52:53 kabini1 kernel: re0: promiscuous mode enabled >>> Apr 30 09:07:57 kabini1 kernel: re0: promiscuous mode disabled >>> Apr 30 09:18:45 kabini1 syslogd: exiting on signal 15 >>> Apr 30 09:18:45 kabini1 syslogd: kernel boot file is /boot/kernel/kernel >>> Apr 30 09:20:47 kabini1 kernel: re0: promiscuous mode enabled >>> hwclock: Command not found. >>> Thu Apr 30 18:39:25 MCDT 2015 >>> [root@kabini1, /etc, 6:39:25pm] 365 % >>> >>> syslogd on kabini1 should be accepting traffic from all ports: >>> >>> [root@kabini1, /etc, 6:40:19pm] 366 % ps -ax | grep syslog >>> 783 ?? Is 0:39.07 /usr/sbin/amd -p -a /.amd_mnt -l syslog >>> /host /etc/amd.map /net /etc/amd.map >>> 73506 ?? Is 0:00.10 /usr/sbin/syslogd -a 192.168.0.0/16:* -C -T >>> 8622 4 S+ 0:00.00 grep syslog >>> 73648 7 S+ 0:00.93 tcpdump port >>> >>> i.e. looks like the traffic is there, but syslogd isn't recording it >>> (?) .... Any clues appreciated. >>> >> *Aaaaaaaaaaaaack* !!!! Looks like ipfw was catching it, I had changed my >> rules to allow *some* udp traffic a few days ago, but didn't open it up >> enough. Just changed that & we'll see either later today or tomorrow at >> the next 'syslogd restart' .... Sorry for the noise :-/ .... >> >> -- >> >> William A. Mahaffey III >> >> ---------------------------------------------------------------------- >> >> "The M1 Garand is without doubt the finest implement of war >> ever devised by man." >> -- Gen. George S. Patton Jr. >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" > I did that some, wasn't sure if my manual restart might be operating differently than its internal restart (you can see several random restarts logged, those were me) .... No problema, I can be patient .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Fri May 1 06:25:12 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC704CD0 for ; Fri, 1 May 2015 06:25:12 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C13A61DAD for ; Fri, 1 May 2015 06:25:11 +0000 (UTC) Received: from liminal.local ([192.168.100.5]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t416OmIP093914 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 1 May 2015 07:24:49 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t416OmIP093914 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1430461489; bh=woNdinTC78hXcc8ZlDmptxfTXQCe/jeP0BHad30snJg=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Fri,=2001=20May=202015=2007:24:35=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20minor=20syslog=20issue|References :=20<55422366.8060000@hiwaay.net>=20<554229CE.30009@infracaninophi le.co.uk>=20<55422E43.8090206@hiwaay.net>=20<5542348D.8000109@infr acaninophile.co.uk>=20<5542BC7F.7050602@hiwaay.net>=20<5542BEBA.50 80207@hiwaay.net>|In-Reply-To:=20<5542BEBA.5080207@hiwaay.net>; b=UCzV2xSmH55eHDnjQ8be7KzizPvjhsEVnYDfsMNMVmYqSuAyRofvm0pseT3Ch6leF grxVuw7iI48SU7r7TxfS3YF9+g2Gp2afkC6YIw9wkOlQkQI9kfOdE12rEekYSFwc6Q O1W233z10MtSSX/0P3ySp2s9g42IifUWXk1ULQHg= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host [192.168.100.5] claimed to be liminal.local Message-ID: <55431C23.8010809@infracaninophile.co.uk> Date: Fri, 01 May 2015 07:24:35 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542BC7F.7050602@hiwaay.net> <5542BEBA.5080207@hiwaay.net> In-Reply-To: <5542BEBA.5080207@hiwaay.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9jcv3XQCRq74fNnkP6epPolhT6fjEKRLU" X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 06:25:13 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9jcv3XQCRq74fNnkP6epPolhT6fjEKRLU Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 01/05/2015 00:45, William A. Mahaffey III wrote: >> syslogd on kabini1 should be accepting traffic from all ports: >> >> [root@kabini1, /etc, 6:40:19pm] 366 % ps -ax | grep syslog >> 783 ?? Is 0:39.07 /usr/sbin/amd -p -a /.amd_mnt -l syslog /ho= st /etc/amd.map /net /etc/amd.map >> 73506 ?? Is 0:00.10 /usr/sbin/syslogd -a 192.168.0.0/16:* -C -T= >> 8622 4 S+ 0:00.00 grep syslog >> 73648 7 S+ 0:00.93 tcpdump port >> >> i.e. looks like the traffic is there, but syslogd isn't recording it (= ?) .... Any clues appreciated. > *Aaaaaaaaaaaaack* !!!! Looks like ipfw was catching it, I had changed m= y > rules to allow *some* udp traffic a few days ago, but didn't open it up= > enough. Just changed that & we'll see either later today or tomorrow at= > the next 'syslogd restart' .... Sorry for the noise :-/ .... Looks like you've pretty much sorted the problem. A bit late now, but you would have been able to generate syslog traffic at will on your RPi using logger(1). Although I guess you'll still want to observe things over a syslog restart to make sure everything works even if the source port changes. Cheers, Matthew =09 --9jcv3XQCRq74fNnkP6epPolhT6fjEKRLU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJVQxwqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATqrsP/3w14FnplpD73ZzR7ykGTKBn jcJWE6r37p9v0un4gJKFDXXvMp2WBSuy9Rcnq8uYNtXbJ54Xp6jANBtcdgM4n6t2 +nalwKyHRzCI+S2t0sDVLPgE4ur+aCgIwm5xVwAA0ZbW17cxNL0slxIwIcay6ZNP cMrW6S9QyhEPF0u24xE/1e07azsO6m9SqQ4+OK69ZAXFGuL9ZhYj/Anf4jg1V2YP VszDJWMjL6Kfvjnpsvoa90W9rtt03k+/Xl5OscPdAiodwJZd9KnCzgWezoxFmRfu Cx56OIgfvxse4qEgRbl3ecBEkoME6KpsgSuzOljEV5PuDMmxgMByyhUr5dYGg2Ei k/Si00XygtYUOLqKoWmLvy79hfDXLQNmPh+QSH0OpYTrnVOFyctOvVBM9GSeO+/u z03Fj+CgCtQb8FmzQx5P+7qPrGnbUDSMa4McZdfRfQTVGnXlQJN7vcIo0S95u4Sm uRuEXlMIBsBz7ggpJJ/LXrF7UsaTGFt5AGAyDrs51My6YXU4tCdwSq7C1zco65d7 QNUcA30P73IguHnOKirrY0hSbPkCcRxeRQmRowM7J4CANjuEnWWefeQwJR6cp/fL rxt2N+7YhFoKPuUhx80xsKqJpdxQMuaHcryOGUHIAXi3byO5i10ulnzK6qI1GGH2 HZlRFJhfJb2BUxMhdn+Q =iYan -----END PGP SIGNATURE----- --9jcv3XQCRq74fNnkP6epPolhT6fjEKRLU-- From owner-freebsd-questions@FreeBSD.ORG Fri May 1 17:47:08 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B4C77443 for ; Fri, 1 May 2015 17:47:08 +0000 (UTC) Received: from dd13304.kasserver.com (dd13304.kasserver.com [85.13.135.53]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 421A216D5 for ; Fri, 1 May 2015 17:47:07 +0000 (UTC) Received: from nermal.rz1.convenimus.net (p5B0207C5.dip0.t-ipconnect.de [91.2.7.197]) by dd13304.kasserver.com (Postfix) with ESMTPA id 58F121E01B5 for ; Fri, 1 May 2015 19:37:27 +0200 (CEST) Received: from falbala.localnet (falbala.rz1.convenimus.net [192.168.100.8]) by nermal.rz1.convenimus.net (Postfix) with ESMTP id 7B1E815210 for ; Fri, 1 May 2015 18:35:51 +0200 (CEST) From: Christian Baer To: FreeBSD Questions Mailing List Subject: Frustration with GnuPG (getting it to work) Date: Fri, 01 May 2015 19:37:26 +0200 Message-ID: <6813095.CYIGPqOIyp@falbala> User-Agent: KMail/4.14.2 (FreeBSD/10.1-RELEASE-p9; KDE/4.14.2; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 17:47:08 -0000 Good afternoon everyone! This post will probably end up being a little long. As you have probably noticed, I tend to read and try a lot before I post on the list. :-) A few days ago I installed gnupg [gpg (GnuPG) 2.1.2 libgcrypt 1.6.3]. Generating a few new keys (for work, personal use and playing around) was pretty trivial and worked fine on the command line (--full-gen-key) and with KGpg. However I cannot get gnupg to work either in KMail or Claws. Let's start with Kmail... In KMail I cannot find any otions to point to gnupg or gpg. The settings under identities -> $NAME -> cryptography do find my keys for OpenPGP, so something does seem to work. :-) However, when I try to decrypt a message, I just get this (formatting lost): Encrypted message This message is encrypted. Decrypt Message End of encrypted message And when I click "Decrypt message", I get this: Encrypted message (decryption not possible) Reason: Crypto plug-in "OpenPGP" could not decrypt the data. Error: Decryption failed Could not decrypt the data. End of encrypted message I am not asked for a passphrase. This message is displayed in the regular message place, after a very short delay. After quite a bit of ulilizing a search engine, I activated the gpg-agent. This is my current gpg.conf (compressed): keyserver hkp://keys.gnupg.net utf8-strings debug-level basic log-file socket:///home/christian/.gnupg/log-socket display-charset utf-8 fixed-list-mode keyid-format 0xlong fingerprint personal-digest-preferences SHA512 SHA384 SHA256 default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES\\ CAST5 BZIP2 ZLIB ZIP Uncompressed use-agent verify-options show-uid-validity list-options show-uid-validity cert-digest-algo SHA512 During this searching and reading, I found a lot of stuff that was probably outdated. At least I assume as much because the options in those howtos or articles just don't exist in my KMail. What all seem to agree upon is the usagte of pinentry. On my computer only pinentry-tty is installed. In the ports there is a pinentry-qt, but there does not seem to be a precompiled package: root@falbala:~ # whereis pinentry-qt4 pinentry-qt4: /usr/ports/security/pinentry-qt4 root@falbala:~ # pkg install security/pinentry-qt4 Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. pkg: No packages available to install matching 'security/pinentry-qt4' have been found in the repositories Ok, so I thought I'd just compile it myself. What are the ports for? That did not go well either: root@falbala:/usr/ports/security/pinentry-qt4 # make ===> pinentry-qt4-0.9.1 does not compile with libc++. *** Error code 1 Stop. make: stopped in /usr/ports/security/pinentry-qt4 The gtk2-version complains that I do not have libiconv>=1.14_8 installed. But since I am pretty much using KMail most of the time (as part of Kontact which I use together with a Kolab account), the qt4 version is the one of choice - IMHO. So I did not investigate this any further. Then claws came into the picture. I know this client very well and would probably use it and not KMail, if Kontact didn't have the nice integration of the calendar and address book for use with Kolab. With claws I can't get GnuPG to work either. There are no options to set. GnuPG should be controlled via a plugin. There don't seem to be any installed. The GnuPG plugin I cannon find in the ports tree. The Claws Mail website stated that the required plugin should ship with the client. I installed Claws as a precompiled package. As you can probably imagine, I am a little frustrated right about now, because the hassle of getting GnuPG to work is getting a bit too big for my taste - especially since this should be a relatively trivial task. Can someone please give me a push in the right direction so I do not have to torture my search engine any further and read gigabytes of outdated text? Thanks and best regards! Chris From owner-freebsd-questions@FreeBSD.ORG Fri May 1 20:20:29 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47BCF280 for ; Fri, 1 May 2015 20:20:29 +0000 (UTC) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1332F1775 for ; Fri, 1 May 2015 20:20:29 +0000 (UTC) Received: by igblo3 with SMTP id lo3so46820962igb.1 for ; Fri, 01 May 2015 13:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=gT7Mf4a5OGnvqGkNE98OPRaeqOgTPnebr1hNAliLVnI=; b=BYdmzysHW3MctIWt8t0L6ynWKEeiUOW3nin8WJwl1euEE/jmPkxM3HqKVAxTcWKKfW Rh85SAL5iQD4SkpJAKco031WFwrAIoqymO7Kj6OOYQQF9NH4WqfsbTeSURWHFBRPIRPc 9uYBK40WWiasQUXUgBNG3xR7EOcpiSG5CwuT9NcEQbWTRGw9dZ0PMqJeW3XmW035O1dN CpeALtpCSAa49iJYBxd1fmlkcTWphH+r3EnQRB+CGUiaz/4ZXw7/QCMvAvIohyHcvMLV MAQFaM00FUGiPWup/lGTPAYXELo6F2hY5EqGjBjFgXXzKuVIsvUYIvpxiQeAXE/jxJM2 1jNw== X-Received: by 10.50.176.137 with SMTP id ci9mr12736340igc.2.1430511628235; Fri, 01 May 2015 13:20:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.131.194 with HTTP; Fri, 1 May 2015 13:20:07 -0700 (PDT) In-Reply-To: References: From: Alex Merritt Date: Fri, 1 May 2015 16:20:07 -0400 Message-ID: Subject: Re: Find and replace content in 100 lines To: Nancy Belle Cc: freebsd-questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 20:20:29 -0000 Hello Nancy, On Thu, Apr 30, 2015 at 8:58 PM, Nancy Belle wrote: > > Here's the need to fix about 100 lines in a single *.html file: > find this "../../../arch1/arch14" > replace with "../../../../../../foo/foo2/foo3/arch1/arch14" > > The quotes are there too. > You want sed with the search/replace feature, generally: sed s/regular expression/replacement/flags like so sed -i .orig 's:"../../../arch1/arch14":"../../../../../../foo/foo2/foo3/arch1/arch14":g' input.html Those single quotes are important, to prevent the shell from doing any interpretation within anything enclosed between them (e.g. environment variables, if there were any, and from removing the double quotes). The single quotes aren't important to sed. The colon (a forward slash in the example) is the delimiter character, and can be any character you like (except backslash and newline). Pick one which does not appear in your strings you are searching and replacing. -i tells sed to edit the file directly, first making a copy with the given extension as the backup. Hope this helps, Alex From owner-freebsd-questions@FreeBSD.ORG Fri May 1 20:52:47 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7036E132 for ; Fri, 1 May 2015 20:52:47 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 383F91B86 for ; Fri, 1 May 2015 20:52:46 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-47.adsl.hiwaay.net [216.180.76.47]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t41KqcwW029676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 1 May 2015 15:52:38 -0500 Message-ID: <5543E796.9030309@hiwaay.net> Date: Fri, 01 May 2015 15:58:53 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: minor syslog issue References: <55422366.8060000@hiwaay.net> <554229CE.30009@infracaninophile.co.uk> <55422E43.8090206@hiwaay.net> <5542348D.8000109@infracaninophile.co.uk> <5542BC7F.7050602@hiwaay.net> <5542BEBA.5080207@hiwaay.net> <55431C23.8010809@infracaninophile.co.uk> In-Reply-To: <55431C23.8010809@infracaninophile.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 20:52:47 -0000 On 05/01/15 01:30, Matthew Seaman wrote: > On 01/05/2015 00:45, William A. Mahaffey III wrote: >>> syslogd on kabini1 should be accepting traffic from all ports: >>> >>> [root@kabini1, /etc, 6:40:19pm] 366 % ps -ax | grep syslog >>> 783 ?? Is 0:39.07 /usr/sbin/amd -p -a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map >>> 73506 ?? Is 0:00.10 /usr/sbin/syslogd -a 192.168.0.0/16:* -C -T >>> 8622 4 S+ 0:00.00 grep syslog >>> 73648 7 S+ 0:00.93 tcpdump port >>> >>> i.e. looks like the traffic is there, but syslogd isn't recording it (?) .... Any clues appreciated. >> *Aaaaaaaaaaaaack* !!!! Looks like ipfw was catching it, I had changed my >> rules to allow *some* udp traffic a few days ago, but didn't open it up >> enough. Just changed that & we'll see either later today or tomorrow at >> the next 'syslogd restart' .... Sorry for the noise :-/ .... > Looks like you've pretty much sorted the problem. > > A bit late now, but you would have been able to generate syslog traffic > at will on your RPi using logger(1). Although I guess you'll still want > to observe things over a syslog restart to make sure everything works > even if the source port changes. > > Cheers, > > Matthew Just tried that (logger) & it worked :-) *HOOOOORAY* !!!! Off to my next foulup :-) .... Thanks. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Fri May 1 21:08:45 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47D29966 for ; Fri, 1 May 2015 21:08:45 +0000 (UTC) Received: from mail.qcislands.net (mail.qcislands.net [23.235.65.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 28E961CE8 for ; Fri, 1 May 2015 21:08:44 +0000 (UTC) Received: from 254-68-235-23.qcislands.net ([23.235.68.254] helo=[192.168.1.8]) by mail.qcislands.net with esmtp (Exim 4.82) (envelope-from ) id 1YoI4k-000KkQ-89; Fri, 01 May 2015 14:02:22 -0700 Message-ID: <5543E9D5.2030404@paz.bz> Date: Fri, 01 May 2015 14:02:13 -0700 From: Jim Pazarena User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: compiling static Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-local_scan: locally submitted (54) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 21:08:45 -0000 is there a way to tell cc (clang) to compile with static libraries? Since FBSD switched to clang away from gcc, I have never been able to figure out how to do this. Thanks! From owner-freebsd-questions@FreeBSD.ORG Fri May 1 21:22:55 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0C2DF3A for ; Fri, 1 May 2015 21:22:55 +0000 (UTC) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BBDB1EAB for ; Fri, 1 May 2015 21:22:55 +0000 (UTC) Received: by igblo3 with SMTP id lo3so47847063igb.1 for ; Fri, 01 May 2015 14:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=FGu4k+5pDlpOkGr/mmRJcKDobGbqlFFQi0bfH6X/8wM=; b=TGAWd+FRmAzRthBjSuqinxp09tjIHvJqlFLNNpORHZblEcHbHhrlswnxUSUy9HbJBZ KE5S2yp3sBPeydQgVCZEgkE6bCEARUvC/Zgry+OpFqGrnR7A98KqyqtW2wGGB0Tk8eTN 8JeldSroT60yiWzqK25D87jRl3HvDCdByKA0KzaMnwnGVv5P82kRYKcWpHL9eBGWKrN3 OcE1OyPSK1NRECKEx+9U88wHlXC+GDW4x74RVyNlVBmH9fhpO4/K/es2nefHAjuZ0qhp FK8R9MYyc6GX/i9rKnBsspzvjWGrYgvtosKShmIUbhaGb6WxsJwQhog72qBKdrKUqQ/k PvAQ== X-Received: by 10.43.180.137 with SMTP id pe9mr3542607icc.90.1430515375076; Fri, 01 May 2015 14:22:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.131.194 with HTTP; Fri, 1 May 2015 14:22:34 -0700 (PDT) In-Reply-To: <5543E9D5.2030404@paz.bz> References: <5543E9D5.2030404@paz.bz> From: Alex Merritt Date: Fri, 1 May 2015 17:22:34 -0400 Message-ID: Subject: Re: compiling static To: Jim Pazarena Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 21:22:55 -0000 On Fri, May 1, 2015 at 5:02 PM, Jim Pazarena wrote: > is there a way to tell cc (clang) to compile with static libraries? If you want to _compile_ code to a static library, you generate the object files and then use "ar" to assemble them together into an archive file (.a). cc -c file0.c file1.c ... ar rcus lib.a file0.o file1.o ... If you want to _link to_ (if that's what you mean by "compile with") static libraries, you may specify the archive path to the linker instead of using the dynamic linker flag (-l). cc prog.c /path/to/lib.a -o prog There may be other ways I am unfamiliar with. Is this not how gcc does it also? -Alex From owner-freebsd-questions@FreeBSD.ORG Fri May 1 21:29:51 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A5512B7 for ; Fri, 1 May 2015 21:29:51 +0000 (UTC) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A7EE01EF5 for ; Fri, 1 May 2015 21:29:49 +0000 (UTC) Received: from curlew.milibyte.co.uk ([80.229.31.82]) by avasout07 with smtp id NlSb1q0051mJoLY01lScmb; Fri, 01 May 2015 22:26:37 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=fZwjyigF c=1 sm=1 tr=0 a=cd0K7rcWwnZFf6xQxRobyA==:117 a=cd0K7rcWwnZFf6xQxRobyA==:17 a=D7rCoLxHAAAA:8 a=0Bzu9jTXAAAA:8 a=kj9zAlcOel0A:10 a=h1PgugrvaO0A:10 a=pGLkceISAAAA:8 a=_-_VZv_Yf64VByOnLREA:9 a=CjuIK1q_8ugA:10 Received: from curlew.lan ([192.168.1.13]) by curlew.milibyte.co.uk with esmtp (Exim 4.85) (envelope-from ) id 1YoISB-0000ec-Ab; Fri, 01 May 2015 22:26:35 +0100 Date: Fri, 1 May 2015 22:26:34 +0100 From: Mike Clarke To: Alex Merritt Cc: Nancy Belle , freebsd-questions Message-ID: <20150501222634.371373f0@curlew.lan> In-Reply-To: References: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.0) MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on curlew.lan X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Subject: Re: Find and replace content in 100 lines Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on curlew.milibyte.co.uk) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 21:29:51 -0000 On Fri, 1 May 2015 16:20:07 -0400 Alex Merritt wrote: > You want sed with the search/replace feature, generally: > > sed s/regular expression/replacement/flags > > like so > > > 's:"../../../arch1/arch14":"../../../../../../foo/foo2/foo3/arch1/arch14":g' > input.html Although that would almost certainly work OK in the OP's case it would be safer to use: 's:"\.\./\.\./\.\./arch1/arch14":"../../../../../../foo/foo2/foo3/arch1/arch14":g' otherwise if there was something like "../../d1/arch1/arch14" it would become "../../../../../../foo/foo2/foo3/arch1/arch14" which is probably not what would be intended. -- Mike Clarke From owner-freebsd-questions@FreeBSD.ORG Fri May 1 22:00:25 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 093882C3 for ; Fri, 1 May 2015 22:00:25 +0000 (UTC) Received: from mail.qcislands.net (mail.qcislands.net [23.235.65.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE9BD12C7 for ; Fri, 1 May 2015 22:00:24 +0000 (UTC) Received: from 254-68-235-23.qcislands.net ([23.235.68.254] helo=[192.168.1.8]) by mail.qcislands.net with esmtp (Exim 4.82) (envelope-from ) id 1YoIyt-000PRO-9J; Fri, 01 May 2015 15:00:23 -0700 Message-ID: <5543F76E.7060207@paz.bz> Date: Fri, 01 May 2015 15:00:14 -0700 From: Jim Pazarena User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: compiling static Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-local_scan: locally submitted (54) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 22:00:25 -0000 It was as simple as placing -static on the gcc command line On 2015-05-01 2:22 PM, Alex Merritt wrote: > On Fri, May 1, 2015 at 5:02 PM, Jim Pazarena wrote: > >> is there a way to tell cc (clang) to compile with static libraries? > > > If you want to _compile_ code to a static library, you generate the object > files and then use "ar" to assemble them together into an archive file (.a). > > cc -c file0.c file1.c ... > ar rcus lib.a file0.o file1.o ... > > If you want to _link to_ (if that's what you mean by "compile with") static > libraries, you may specify the archive path to the linker instead of using > the dynamic linker flag (-l). > > cc prog.c /path/to/lib.a -o prog > > There may be other ways I am unfamiliar with. Is this not how gcc does it > also? > > -Alex > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-questions@FreeBSD.ORG Fri May 1 22:07:19 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F10C3AD for ; Fri, 1 May 2015 22:07:19 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 199901301 for ; Fri, 1 May 2015 22:07:18 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-47.adsl.hiwaay.net [216.180.76.47]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t41M7GnL010217 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 1 May 2015 17:07:17 -0500 Message-ID: <5543F914.9060905@hiwaay.net> Date: Fri, 01 May 2015 17:13:31 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 CC: freebsd-questions@freebsd.org Subject: Re: compiling static References: <5543E9D5.2030404@paz.bz> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 22:07:19 -0000 On 05/01/15 16:28, Alex Merritt wrote: > On Fri, May 1, 2015 at 5:02 PM, Jim Pazarena wrote: > >> is there a way to tell cc (clang) to compile with static libraries? > > If you want to _compile_ code to a static library, you generate the object > files and then use "ar" to assemble them together into an archive file (.a). > > cc -c file0.c file1.c ... > ar rcus lib.a file0.o file1.o ... > > If you want to _link to_ (if that's what you mean by "compile with") static > libraries, you may specify the archive path to the linker instead of using > the dynamic linker flag (-l). > > cc prog.c /path/to/lib.a -o prog > > There may be other ways I am unfamiliar with. Is this not how gcc does it > also? > > -Alex > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > GCC (& most other compilers I am familiar with, such as SGI & Intel compiler suites) usually have a flag to the linker to tell it to use static linking (using archives, '.a' files, to link 1 big executable ready to go by itself) instead of dynamic linking, which is usually the default if nothing is specified. I think that is what the OP was asking about .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Fri May 1 22:13:58 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 092D04BE for ; Fri, 1 May 2015 22:13:58 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 AFF1D13D3 for ; Fri, 1 May 2015 22:13:57 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-47.adsl.hiwaay.net [216.180.76.47]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t41MDtof013374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 1 May 2015 17:13:56 -0500 Message-ID: <5543FAA3.7050907@hiwaay.net> Date: Fri, 01 May 2015 17:20:10 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "FreeBSD Questions !!!!" Subject: How to restore a USB drive converted to bootable Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 22:13:58 -0000 I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on boxen under construction. I would also like to use UBCD on a flash drive to memcheck those boxen prior to installation. If I prep a USB thumb drive as either a bootable UBCD drive or an over-the-WWW installer, I wipe out the drive for its original use. Is there a way to restore the drive back to its original functionality if I wanted to ? I will probably use this box, AMD64 FreeBSD 9.3R-p13, for the prepping, BTW, just to bring it sorta on-topic ;-) .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Fri May 1 22:18:34 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0C0DD6AB for ; Fri, 1 May 2015 22:18:34 +0000 (UTC) Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C9892144D for ; Fri, 1 May 2015 22:18:33 +0000 (UTC) Received: by igblo3 with SMTP id lo3so47471459igb.0 for ; Fri, 01 May 2015 15:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2UCdM8A02QQsedBY4eBSeGWxXMLbD41Q1kpjwjil+c0=; b=NmTq+Z7kSgQXHBJI0KIbSVUxAaiqHBkdP5U2uPlWPUBVk+UwPSDK8ZqWbDNjaRtkh6 yjTF0t5YhANMvmmBF0K9OiSqdGohk5bDiHoc+jfD7gj48m3HCHO89JZzCUA2Lv/7mgWH g/Ub7BZ56MC6Sk7WRt7ZZmKBC0onBXaC68ybPE0yx3D2AMvPZvClBinAjf24fUQLu8wD vw2LZ44NTIgJopljE7dNipGC3JuyMoDYricmS8viwcNROhDzszslkZSAkLSvQvwaUhVQ rylbBjXCltIuRfjqfnS4tedJjNcCizHlW6ePv4ytXf1S9zPf+TUcwKf5d6OX3E6AxS9P c2lw== X-Received: by 10.42.67.80 with SMTP id s16mr16897026ici.25.1430518713206; Fri, 01 May 2015 15:18:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.131.194 with HTTP; Fri, 1 May 2015 15:18:12 -0700 (PDT) In-Reply-To: <20150501222634.371373f0@curlew.lan> References: <20150501222634.371373f0@curlew.lan> From: Alex Merritt Date: Fri, 1 May 2015 18:18:12 -0400 Message-ID: Subject: Re: Find and replace content in 100 lines To: Mike Clarke Cc: Nancy Belle , freebsd-questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 22:18:34 -0000 On Fri, May 1, 2015 at 5:26 PM, Mike Clarke wrote: > On Fri, 1 May 2015 16:20:07 -0400 > Alex Merritt wrote: > > > 's:"../../../arch1/arch14":"../../../../../../foo/foo2/foo3/arch1/arch14":g' > > input.html > > Although that would almost certainly work OK in the OP's case it would > be safer to use: > > > 's:"\.\./\.\./\.\./arch1/arch14":"../../../../../../foo/foo2/foo3/arch1/arch14":g' > > otherwise if there was something like "../../d1/arch1/arch14" it would > become "../../../../../../foo/foo2/foo3/arch1/arch14" which is probably > not what would be intended. > Hm, yes, the picket fence. How about sed -i .orig -r 's:"((\.\./){3})arch1/arch14":"\1\1foo/foo2/foo3/arch1/arch14":g' input.html Group it and repeat as \1 -Alex From owner-freebsd-questions@FreeBSD.ORG Fri May 1 22:25:21 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BC3EC910 for ; Fri, 1 May 2015 22:25:21 +0000 (UTC) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44C0D1543 for ; Fri, 1 May 2015 22:25:21 +0000 (UTC) Received: by layy10 with SMTP id y10so72065426lay.0 for ; Fri, 01 May 2015 15:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rZM/jVngS7Aml5zTSw/yTdp3/b2Q3Cj+rxcvzJh3zjE=; b=kPhgSVML+Ayvym9BGYDwKz0bBZ/YZQuKnn6UtJGmX6UONyYLoJB0EHVdCKtBuWCtxq YJsG9WgROnnSIYCtf1vPbQMojW+tIzF4+D+GMAm5G3DiItBoBuCKicEPuJ5gdqBllvMj I4/A1qmO7iMA97foPspE0Md/X//Qc+KYVn0J1Y8tK7SfBRBmjiWuN8vl5oWCeH1scFfQ GZ4oz8veYwIugyMHQoX8DVmTs0xrVrUk5HecXc2/XF2hfX5dLm26LrXbtp01tqlPEo3N 4Q7G/7ZjeU5E3yLOVxF/TvT973O3YXGZxPZDhG1mbxKC0XbMe+WfGBGm2dqp14mpqYWn I51Q== MIME-Version: 1.0 X-Received: by 10.112.199.1 with SMTP id jg1mr10040042lbc.59.1430519119167; Fri, 01 May 2015 15:25:19 -0700 (PDT) Received: by 10.25.42.146 with HTTP; Fri, 1 May 2015 15:25:19 -0700 (PDT) In-Reply-To: References: Date: Fri, 1 May 2015 15:25:19 -0700 Message-ID: Subject: Re: Using pam_radius in /etc/pam.d/sshd From: Chris Stankevitz To: freebsd-questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 22:25:21 -0000 On Tue, Apr 28, 2015 at 12:05 PM, Chris Stankevitz wrote: > After I supply an incorrect radius password three time, I am not > afforded an opportunity to supply my pam_unix password. Why am I not > afforded this opportunity? (pam.d/sshd below) Update: problem was the "try_first_pass" option to pam_unix. This caused pam_unix to attempt to use pam_radius's password. Figured out what was happening by enabling the debug log. Chris From owner-freebsd-questions@FreeBSD.ORG Fri May 1 23:46:05 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D7D7291A for ; Fri, 1 May 2015 23:46:05 +0000 (UTC) Received: from outbound-queue-2.mail.thdo.gradwell.net (outbound-queue-2.mail.thdo.gradwell.net [212.11.70.35]) by mx1.freebsd.org (Postfix) with ESMTP id 9C5171D1E for ; Fri, 1 May 2015 23:46:05 +0000 (UTC) Received: from outbound-edge-2.mail.thdo.gradwell.net (bonnie.gradwell.net [212.11.70.2]) by outbound-queue-2.mail.thdo.gradwell.net (Postfix) with ESMTP id CC93C55308 for ; Sat, 2 May 2015 00:44:55 +0100 (BST) Received: from cpc7-jarr12-2-0-cust882.16-2.cable.virginm.net (HELO amd.asgard.uk) (92.238.71.115) (smtp-auth username fbsd%pop3.dgmm.net, mechanism plain) by outbound-edge-2.mail.thdo.gradwell.net (qpsmtpd/0.83) with ESMTPA; Sat, 02 May 2015 00:44:55 +0100 From: Dave To: freebsd-questions@freebsd.org Subject: Re: How to restore a USB drive converted to bootable Date: Sat, 02 May 2015 00:44:54 +0100 Message-ID: <2282619.EBxGjBUkQK@amd.asgard.uk> User-Agent: KMail/4.14.3 (FreeBSD/9.3-RELEASE-p13; KDE/4.14.3; amd64; ; ) In-Reply-To: <5543FAA3.7050907@hiwaay.net> References: <5543FAA3.7050907@hiwaay.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Gradwell-MongoId: 55440ff7.ca1a-7cf7-2 X-Gradwell-Auth-Method: mailbox X-Gradwell-Auth-Credentials: fbsd@pop3.dgmm.net X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 23:46:05 -0000 On Friday 01 May 2015 17:20:10 William A. Mahaffey III wrote: > I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on > boxen under construction. I would also like to use UBCD on a flash drive > to memcheck those boxen prior to installation. If I prep a USB thumb > drive as either a bootable UBCD drive or an over-the-WWW installer, I > wipe out the drive for its original use. Is there a way to restore the > drive back to its original functionality if I wanted to ? I will > probably use this box, AMD64 FreeBSD 9.3R-p13, for the prepping, BTW, > just to bring it sorta on-topic .... one potentially heretical answer is to use yumi, available from pendrivelinux.com It's a Windows program which puts syslinux on a FAT32 pendrive and allows you to boot multiple images/ISOs from a menu while retaining the "normal" usage of the pendrive. The possible downside is you need a Windows computer to build and/or maintain it. There is a Linux version in development too but I've not looked at that for a while. Disclaimer. I have no connection to Yumi or pendrivelinux.com. Just a happy user for a number of years. From owner-freebsd-questions@FreeBSD.ORG Sat May 2 05:50:37 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 36D31A32 for ; Sat, 2 May 2015 05:50:37 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (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 EE1A11075 for ; Sat, 2 May 2015 05:50:36 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-237.dynamic.qsc.de [92.195.64.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id D2CB624D39; Sat, 2 May 2015 07:44:09 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t425i8O2002046; Sat, 2 May 2015 07:44:08 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 2 May 2015 07:44:08 +0200 From: Polytropon To: "William A. Mahaffey III" Cc: "FreeBSD Questions !!!!" Subject: Re: How to restore a USB drive converted to bootable Message-Id: <20150502074408.75b91059.freebsd@edvax.de> In-Reply-To: <5543FAA3.7050907@hiwaay.net> References: <5543FAA3.7050907@hiwaay.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 05:50:37 -0000 On Fri, 01 May 2015 17:20:10 -0453, William A. Mahaffey III wrote: > I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on > boxen under construction. I would also like to use UBCD on a flash drive > to memcheck those boxen prior to installation. If I prep a USB thumb > drive as either a bootable UBCD drive or an over-the-WWW installer, I > wipe out the drive for its original use. Is there a way to restore the > drive back to its original functionality if I wanted to ? This is quite simple: Just erase the first few MBs (which is already overkill) of the USB drive. You can do this with on-board means (no need to install anything): # dd if=/dev/zero of=/dev/da0 bs=1m count=1 Make _definitely_ sure that da0 is your USB drive before you enter the command. This will wipe the partition table and boot sector, so the drive appears as non-formatted. If you wish, you can then add a FAT partition, bsdlabel-style partitions, a UFS file system, or "raw" tar data, whatever you need. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sat May 2 09:23:42 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14F001A2 for ; Sat, 2 May 2015 09:23:42 +0000 (UTC) Received: from avasout08.plus.net (avasout08.plus.net [212.159.14.20]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DA9713AE for ; Sat, 2 May 2015 09:23:40 +0000 (UTC) Received: from curlew.milibyte.co.uk ([80.229.31.82]) by avasout08 with smtp id NxLU1q0041mJoLY01xLVVt; Sat, 02 May 2015 10:20:29 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=GcuZnGnL c=1 sm=1 tr=0 a=cd0K7rcWwnZFf6xQxRobyA==:117 a=cd0K7rcWwnZFf6xQxRobyA==:17 a=D7rCoLxHAAAA:8 a=0Bzu9jTXAAAA:8 a=kj9zAlcOel0A:10 a=h1PgugrvaO0A:10 a=pGLkceISAAAA:8 a=yBtIYoe-v1W-EwV_EP4A:9 a=CjuIK1q_8ugA:10 Received: from curlew.lan ([192.168.1.13]) by curlew.milibyte.co.uk with esmtp (Exim 4.85) (envelope-from ) id 1YoTaz-000Knm-MS; Sat, 02 May 2015 10:20:28 +0100 Date: Sat, 2 May 2015 10:20:25 +0100 From: Mike Clarke To: Alex Merritt Cc: Nancy Belle , freebsd-questions Message-ID: <20150502102025.2e970d51@curlew.lan> In-Reply-To: References: <20150501222634.371373f0@curlew.lan> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.0) MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk Subject: Re: Find and replace content in 100 lines Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); Unknown failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 09:23:42 -0000 On Fri, 1 May 2015 18:18:12 -0400 Alex Merritt wrote: > Hm, yes, the picket fence. How about > > sed -i .orig -r > 's:"((\.\./){3})arch1/arch14":"\1\1foo/foo2/foo3/arch1/arch14":g' input.html > > Group it and repeat as \1 Yes, much neater, except that you will need sed -E otherwise you'd need to escape all the grouping parentheses. And to make it even more compact, how about curlew:/tmp% cat input.html aa"../../../arch1/arch14"bb ccc"../../d1/arch1/arch14"ddd ee"../../../arch1/arch14"ff curlew:/tmp% sed -E 's:(([.]{2}/){3}):\1\1foo/foo2/foo3/:' input.html aa"../../../../../../foo/foo2/foo3/arch1/arch14"bb ccc"../../d1/arch1/arch14"ddd ee"../../../../../../foo/foo2/foo3/arch1/arch14"ff -- Mike Clarke From owner-freebsd-questions@FreeBSD.ORG Sat May 2 10:24:51 2015 Return-Path: Delivered-To: questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5F5EC62 for ; Sat, 2 May 2015 10:24:51 +0000 (UTC) Received: from ms-fb12.so-net.ne.jp (ms-fb12.so-net.ne.jp [202.238.84.156]) (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 5E92719B3 for ; Sat, 2 May 2015 10:24:51 +0000 (UTC) Received: from ms-omx02.so-net.ne.jp (ms-omx02.plus.so-net.ne.jp [10.240.84.152]) by ms-fb12.so-net.ne.jp with ESMTP id t429ptEL022838 for ; Sat, 2 May 2015 18:51:55 +0900 Received: from ms-vomx02.plus.so-net.ne.jp (ms-vomx02.plus.so-net.ne.jp [10.240.84.166]) by ms-omx02.plus.so-net.ne.jp with ESMTP id t429plkG025872; Sat, 2 May 2015 18:51:47 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abox9.so-net.ne.jp; s=sn2015; t=1430560307; bh=Rb+v/r2jkwlqtD0+Fgioukt5cL83aeafv/fAdqyuWNk=; h=Date:From:To:Subject:Cc; b=o7ORCvGvDCfgQr/oFTZ+USaLGCJ1ipDjNbnWUNxpu0/LxtDxlSNEjmJ8YJ3MlteHD UQUdzrmU0MJTGOI6bDl4gcIz84XMXkJvc0ohP5Q/fB2odV2OBF7Y1QeGH+nBj6w6x+ AV4wNepO61zPfkFvTGovJBhqGYUdfhnILNL+jG11uqyAzkZ1Eaa1v2Ohws0aXT6Dce efAxGdJp7rELtCvxMAo7umFSWvGKZZD2cTgdtXlks2E8jeCLE6y7VHEGX/HzlG5Rin mh7ylr/5IksjMFLD84fLHjDojgh5Uy4b5JlaSZIGRcZdbu101qG+2BofLhZ8ReWQ9U 3SjO34rfLFVOg== Received: from ms-omx11.so-net.ne.jp (ms-omx11.plus.so-net.ne.jp [10.240.84.161]) by ms-vomx02.plus.so-net.ne.jp (Postfix) with ESMTP id A5B1F774F1; Sat, 2 May 2015 18:51:47 +0900 (JST) Received: from [192.168.1.4] (pdf8561d1.kngwnt01.ap.so-net.ne.jp [223.133.97.209]) (authenticated) by ms-omx11.plus.so-net.ne.jp with ESMTP id t429plpr022690; Sat, 2 May 2015 18:51:47 +0900 Date: Sat, 02 May 2015 18:51:43 +0900 From: Takashi Kitazawa To: questions@FreeBSD.org Subject: Any Graphic Board Suport 4K? Cc: "takashi@abox9.so-net.ne.jp" Message-Id: <20150502185143.0896.43B57A27@abox9.so-net.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.70 [ja] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 10:24:51 -0000 My name is Takashi Kitazawa. In Japan, now Gorlden Week thats is long vacation. I'm Japanese. I read Handbook in Japanese(write about 2560x1600) & English(No infomaton). But, I cannot get any knowhow about 4K (3840x2160) display. Dose any graphic board suport 4K on X Window System at FreeBSD Release 10.1 ? or Current? or Stable? Now, What is max resolution? What is graphic board that I must use. Please teach me. Thank you. -- Takashi Kitazawa From owner-freebsd-questions@FreeBSD.ORG Sat May 2 11:04:49 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3C96E1B4 for ; Sat, 2 May 2015 11:04:49 +0000 (UTC) Received: from mailrelay109.isp.belgacom.be (mailrelay109.isp.belgacom.be [195.238.20.136]) by mx1.freebsd.org (Postfix) with ESMTP id 736FE1D54 for ; Sat, 2 May 2015 11:04:48 +0000 (UTC) X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=hkFBDakPHWYIOok4y3pcivnmCJQbEK2MeX2RAJ8hs1E= c=1 sm=2 a=kj9zAlcOel0A:10 a=zGGjxxUDAAAA:8 a=cD8mDtHqMFW4vuQo_QMA:9 a=CjuIK1q_8ugA:10 a=TIaGgvWVQlUY58ya:21 a=rbSVGM-4-7cIn_k4:21 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BgBgAHrkRV/wu/8VFcgwxTXMcxhgwCgU5NAQEBAQEBgQuEIQEBBCcTHCMQCxgJDBkPKh4GE4gvAcYuAQEBAQEFAQEBAR6LOYQzAQFQBwqEIwEEh3OOEIY/gSQ9gxCCcY4lI4IHHIFTPDGBC4E6AQEB Received: from 11.191-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.191.11]) by relay.skynet.be with ESMTP; 02 May 2015 13:03:35 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id t42B3XMA001243; Sat, 2 May 2015 13:03:34 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Sat, 2 May 2015 13:03:33 +0200 From: Tijl Coosemans To: Christian Baer Cc: FreeBSD Questions Mailing List Subject: Re: Frustration with GnuPG (getting it to work) Message-ID: <20150502130333.6d89a710@kalimero.tijl.coosemans.org> In-Reply-To: <6813095.CYIGPqOIyp@falbala> References: <6813095.CYIGPqOIyp@falbala> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 11:04:49 -0000 On Fri, 01 May 2015 19:37:26 +0200 Christian Baer wrote: > Good afternoon everyone! > > This post will probably end up being a little long. As you have probably > noticed, I tend to read and try a lot before I post on the list. :-) > > A few days ago I installed gnupg [gpg (GnuPG) 2.1.2 libgcrypt 1.6.3]. > Generating a few new keys (for work, personal use and playing around) was > pretty trivial and worked fine on the command line (--full-gen-key) and with > KGpg. > > However I cannot get gnupg to work either in KMail or Claws. Let's start with > Kmail... > > In KMail I cannot find any otions to point to gnupg or gpg. The settings under > identities -> $NAME -> cryptography do find my keys for OpenPGP, so something > does seem to work. :-) However, when I try to decrypt a message, I just get > this (formatting lost): > > Encrypted message > This message is encrypted. > Decrypt Message > End of encrypted message > > And when I click "Decrypt message", I get this: > > Encrypted message (decryption not possible) > Reason: Crypto plug-in "OpenPGP" could not decrypt the data. > Error: Decryption failed > Could not decrypt the data. > End of encrypted message > > I am not asked for a passphrase. This message is displayed in the regular > message place, after a very short delay. > > After quite a bit of ulilizing a search engine, I activated the gpg-agent. > This is my current gpg.conf (compressed): > > keyserver hkp://keys.gnupg.net > utf8-strings > debug-level basic > log-file socket:///home/christian/.gnupg/log-socket > display-charset utf-8 > fixed-list-mode > keyid-format 0xlong > fingerprint > personal-digest-preferences SHA512 SHA384 SHA256 > default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES\\ > CAST5 BZIP2 ZLIB ZIP Uncompressed > use-agent > verify-options show-uid-validity > list-options show-uid-validity > cert-digest-algo SHA512 > > During this searching and reading, I found a lot of stuff that was probably > outdated. At least I assume as much because the options in those howtos or > articles just don't exist in my KMail. What all seem to agree upon is the > usagte of pinentry. On my computer only pinentry-tty is installed. In the > ports there is a pinentry-qt, but there does not seem to be a precompiled > package: > > root@falbala:~ # whereis pinentry-qt4 > pinentry-qt4: /usr/ports/security/pinentry-qt4 > root@falbala:~ # pkg install security/pinentry-qt4 > Updating FreeBSD repository catalogue... > FreeBSD repository is up-to-date. > All repositories are up-to-date. > pkg: No packages available to install matching 'security/pinentry-qt4' have > been found in the repositories > > Ok, so I thought I'd just compile it myself. What are the ports for? That did > not go well either: > > root@falbala:/usr/ports/security/pinentry-qt4 # make > ===> pinentry-qt4-0.9.1 does not compile with libc++. > *** Error code 1 > Stop. > make: stopped in /usr/ports/security/pinentry-qt4 > > The gtk2-version complains that I do not have libiconv>=1.14_8 installed. But > since I am pretty much using KMail most of the time (as part of Kontact which > I use together with a Kolab account), the qt4 version is the one of choice - > IMHO. So I did not investigate this any further. > > Then claws came into the picture. I know this client very well and would > probably use it and not KMail, if Kontact didn't have the nice integration of > the calendar and address book for use with Kolab. > > With claws I can't get GnuPG to work either. There are no options to set. > GnuPG should be controlled via a plugin. There don't seem to be any installed. > The GnuPG plugin I cannon find in the ports tree. The Claws Mail website > stated that the required plugin should ship with the client. I installed Claws > as a precompiled package. > > As you can probably imagine, I am a little frustrated right about now, because > the hassle of getting GnuPG to work is getting a bit too big for my taste - > especially since this should be a relatively trivial task. > > Can someone please give me a push in the right direction so I do not have to > torture my search engine any further and read gigabytes of outdated text? For KMail install pinentry-gtk2. For Claws Mail install claws-mail-pgp. From owner-freebsd-questions@FreeBSD.ORG Sat May 2 13:41:06 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 23E63704 for ; Sat, 2 May 2015 13:41:06 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 E1DBB1B3E for ; Sat, 2 May 2015 13:41:05 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-39.adsl.hiwaay.net [216.180.19.39]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t42Df3wu020085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 2 May 2015 08:41:03 -0500 Message-ID: <5544D3EF.4090708@hiwaay.net> Date: Sat, 02 May 2015 08:47:18 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: How to restore a USB drive converted to bootable References: <5543FAA3.7050907@hiwaay.net> <2282619.EBxGjBUkQK@amd.asgard.uk> In-Reply-To: <2282619.EBxGjBUkQK@amd.asgard.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 13:41:06 -0000 On 05/01/15 18:51, Dave wrote: > On Friday 01 May 2015 17:20:10 William A. Mahaffey III wrote: >> I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on >> boxen under construction. I would also like to use UBCD on a flash drive >> to memcheck those boxen prior to installation. If I prep a USB thumb >> drive as either a bootable UBCD drive or an over-the-WWW installer, I >> wipe out the drive for its original use. Is there a way to restore the >> drive back to its original functionality if I wanted to ? I will >> probably use this box, AMD64 FreeBSD 9.3R-p13, for the prepping, BTW, >> just to bring it sorta on-topic .... > one potentially heretical answer is to use yumi, available from pendrivelinux.com > > It's a Windows program which puts syslinux on a FAT32 pendrive and allows you to boot multiple images/ISOs from a menu while retaining the "normal" usage of the pendrive. The possible downside is you need a Windows computer to build and/or maintain it. > > There is a Linux version in development too but I've not looked at that for a while. > > Disclaimer. I have no connection to Yumi or pendrivelinux.com. Just a happy user for a number of years. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Hmmmm .... bit of an issue for me, I have *no* windows boxen currently working, 1 VM on this box as it happens, but I don't have the networking going (yet) or other peripherals, so that's a hurdle .... I will looking yumi in some fashion, thanks :-). -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Sat May 2 14:00:00 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B821A817 for ; Sat, 2 May 2015 14:00:00 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 92D0A1C46 for ; Sat, 2 May 2015 14:00:00 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id D522533C1D; Sat, 2 May 2015 09:59:48 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 8799A39814; Sat, 2 May 2015 09:59:46 -0400 (EDT) From: Lowell Gilbert To: "William A. Mahaffey III" Cc: "FreeBSD Questions !!!!" Subject: Re: How to restore a USB drive converted to bootable References: <5543FAA3.7050907@hiwaay.net> Date: Sat, 02 May 2015 09:59:46 -0400 In-Reply-To: <5543FAA3.7050907@hiwaay.net> (William A. Mahaffey, III's message of "Fri, 01 May 2015 17:20:10 -0453") Message-ID: <441tiz3wrx.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 14:00:00 -0000 "William A. Mahaffey III" writes: > I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on > boxen under construction. I would also like to use UBCD on a flash > drive to memcheck those boxen prior to installation. If I prep a USB > thumb drive as either a bootable UBCD drive or an over-the-WWW > installer, I wipe out the drive for its original use. Is there a way > to restore the drive back to its original functionality if I wanted to Is "wipe the drive and reformat" what you need to hear, or do you have more requirements that you haven't made clear? From owner-freebsd-questions@FreeBSD.ORG Sat May 2 14:13:56 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE164B09 for ; Sat, 2 May 2015 14:13:56 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 8E1141DE3 for ; Sat, 2 May 2015 14:13:56 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-39.adsl.hiwaay.net [216.180.19.39]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t42EDsvG002423 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 2 May 2015 09:13:55 -0500 Message-ID: <5544DBA2.1030102@hiwaay.net> Date: Sat, 02 May 2015 09:20:09 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 CC: "FreeBSD Questions !!!!" Subject: Re: How to restore a USB drive converted to bootable References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> In-Reply-To: <441tiz3wrx.fsf@lowell-desk.lan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 14:13:57 -0000 On 05/02/15 09:06, Lowell Gilbert wrote: > "William A. Mahaffey III" writes: > >> I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on >> boxen under construction. I would also like to use UBCD on a flash >> drive to memcheck those boxen prior to installation. If I prep a USB >> thumb drive as either a bootable UBCD drive or an over-the-WWW >> installer, I wipe out the drive for its original use. Is there a way >> to restore the drive back to its original functionality if I wanted to > Is "wipe the drive and reformat" what you need to hear, or do you have > more requirements that you haven't made clear? > Wipe & reformat, preferably from CLI under FBSD 9.3R-p13 for convenience, is what I'm after. Clearly creating a bootable UBCD or installer will wipe out whatever was there before, so I just want to get back to 'virgin' USB drive. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Sat May 2 14:20:15 2015 Return-Path: Delivered-To: questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59823BCF for ; Sat, 2 May 2015 14:20:15 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E54AA1E09 for ; Sat, 2 May 2015 14:20:14 +0000 (UTC) Received: from [192.168.0.143] ([95.91.226.135]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MUHbK-1YgGpm2BcI-00Qzv7; Sat, 02 May 2015 16:20:08 +0200 Message-ID: <5544DD16.9090705@gmx.de> Date: Sat, 02 May 2015 16:20:06 +0200 From: "lokadamus@gmx.de" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Takashi Kitazawa , questions@FreeBSD.org Subject: Re: Any Graphic Board Suport 4K? References: <20150502185143.0896.43B57A27@abox9.so-net.ne.jp> In-Reply-To: <20150502185143.0896.43B57A27@abox9.so-net.ne.jp> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:p1jPXyJtHbOZ/2XgNv9u9xYBa7pHep8vh2Y/gwrcj7dMgjr1YPs PgBVNbaSpkWvJjDPzlMVVWiONBDHBF08exlowLkiRK40VbUBrQ/pyNzj+/J4gahfOtr+xyp iZKSRFmdpFMmQvpgc6WFP7WTIOlUDlqu9t7ja4uPF8ZjzHX0N4LmPpaNxEEsIA5OMveDTmr aptvSUnmBLi45DtTUHRGw== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 14:20:15 -0000 On 05/02/15 11:51, Takashi Kitazawa wrote: > > My name is Takashi Kitazawa. > > In Japan, now Gorlden Week thats is long vacation. > > I'm Japanese. I read Handbook in Japanese(write about 2560x1600) & > English(No infomaton). But, I cannot get any knowhow about 4K (3840x2160) > display. Dose any graphic board suport 4K on X Window System at FreeBSD > Release 10.1 ? or Current? or Stable? > > Now, What is max resolution? What is graphic board that I must use. > > Please teach me. > > Thank you. > In /var/log/Xorg.0.log stand, which hardware is found and what resolution should be possible. What is your hardware? greetings From owner-freebsd-questions@FreeBSD.ORG Sat May 2 14:47:07 2015 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 320EEE8 for ; Sat, 2 May 2015 14:47:07 +0000 (UTC) Received: from smtp-out-01.shaw.ca (smtp-out-01.shaw.ca [64.59.136.137]) by mx1.freebsd.org (Postfix) with ESMTP id F1FFA1093 for ; Sat, 2 May 2015 14:47:06 +0000 (UTC) Received: from dalet402 ([96.51.17.203]) by shaw.ca with SMTP id oYh4Yel3EQuXUoYh6YdPSR; Sat, 02 May 2015 08:47:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shaw.ca; s=s20150330; t=1430578025; bh=p6N7nYi9oS56prUQSQXCrJNZ30D8G0WVIrLfM9nhEAw=; h=From:To:References:In-Reply-To:Subject:Date; b=tVzv+IcJK7WdgkqnWjma78ATtsrzsyBIJU972a+2MYkuq1fWHTOpPE/kbSUTi9Jh0 DXonijeaY8AiUpo6xFKExu007C94x3eAKV+rj18o8UpRDq1RnzDoCON7Qv2mWYVFYA YB5T9gjkcWyFhWobRCdFv8hJNUiPBSMD3dorQgsT4MoW8wR2y5XeYJYFu56nAg3HmU Fqb1V4Ev8c3o1Z/71MXYj07wwQRB2dmXIBzWQHBziiDIc5hoa+fc27r65+IEkI3Hdp hdF5xSkGM+GEv4kH7vNT023F519bA9W7OKTZKYyUjhJeIVQkc5KPVUBxwFypTwWXa9 4fGDRHMsccFeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shaw.ca; s=s20150330; t=1430578025; bh=p6N7nYi9oS56prUQSQXCrJNZ30D8G0WVIrLfM9nhEAw=; h=From:To:References:In-Reply-To:Subject:Date; b=tVzv+IcJK7WdgkqnWjma78ATtsrzsyBIJU972a+2MYkuq1fWHTOpPE/kbSUTi9Jh0 DXonijeaY8AiUpo6xFKExu007C94x3eAKV+rj18o8UpRDq1RnzDoCON7Qv2mWYVFYA YB5T9gjkcWyFhWobRCdFv8hJNUiPBSMD3dorQgsT4MoW8wR2y5XeYJYFu56nAg3HmU Fqb1V4Ev8c3o1Z/71MXYj07wwQRB2dmXIBzWQHBziiDIc5hoa+fc27r65+IEkI3Hdp hdF5xSkGM+GEv4kH7vNT023F519bA9W7OKTZKYyUjhJeIVQkc5KPVUBxwFypTwWXa9 4fGDRHMsccFeA== X-Authority-Analysis: v=2.1 cv=HfbeNHw8 c=1 sm=1 tr=0 a=BfPab6AX9oJ7x2B/6nUJug==:117 a=BfPab6AX9oJ7x2B/6nUJug==:17 a=kj9zAlcOel0A:10 a=x2m3GPe0AAAA:8 a=6I5d2MoRAAAA:8 a=QO9k6HZuZfl5C3muRf0A:9 a=xx6SVW7RsaT2_j-4:21 a=HuNj2hSNf6PRE5rQ:21 a=CjuIK1q_8ugA:10 From: "Dale Scott" To: , "'Takashi Kitazawa'" , References: <20150502185143.0896.43B57A27@abox9.so-net.ne.jp> <5544DD16.9090705@gmx.de> In-Reply-To: <5544DD16.9090705@gmx.de> Subject: RE: Any Graphic Board Suport 4K? Date: Sat, 2 May 2015 08:47:07 -0600 Message-ID: <0baf01d084e6$de25ad20$9a710760$@shaw.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKp3xmibamJk0NOuTfyE+e9zzgXxQBvz3JDm7KOknA= Content-Language: en-ca X-CMAE-Envelope: MS4wfOmphQgjE+t8bjWTTEZsj6vJls3zjKe2DXCEu2l5s+Q49kyBGOkPPdfizn2EqDXp75ZCwDn3zswTDwIU2PhDvjmx8DI6iESQNubpaE3s0qjP3JosZfu0gC8s1PpU3gS/m3zUYpcVqlbdTRGgXk+imCHC81VjhUjQuEvqNArmyEaQiedh+Wcz/QZK8S6Xfwx9ql4lmGrNI/IHsDBT4F2Fyo/1RtwqMyhHBNWAKw1WiwSw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 14:47:07 -0000 A recent "BSD Now" podcast described setting up two 4K monitors on PC-BSD (a FreeBSD ``distro`` tweaked for desktop use). The graphics card used was a Zotac GeForce GTX 960 2GB GDDR5 PCI Express 3.0 HDMI DVI DisplayPort. Kris noted having to enable DisplayPort 1.2 mode in the two ASUS PB287Q 28-Inch Screen LED-Lit 4K monitors to get 4K resolution at 60Hz. http://blog.pcbsd.org/2015/04/pc-bsd-and-4k-oh-my/ -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of lokadamus@gmx.de Sent: May-02-15 8:20 AM To: Takashi Kitazawa; questions@FreeBSD.org Subject: Re: Any Graphic Board Suport 4K? On 05/02/15 11:51, Takashi Kitazawa wrote: > > My name is Takashi Kitazawa. > > In Japan, now Gorlden Week thats is long vacation. > > I'm Japanese. I read Handbook in Japanese(write about 2560x1600) & > English(No infomaton). But, I cannot get any knowhow about 4K > (3840x2160) display. Dose any graphic board suport 4K on X Window > System at FreeBSD Release 10.1 ? or Current? or Stable? > > Now, What is max resolution? What is graphic board that I must use. > > Please teach me. > > Thank you. > In /var/log/Xorg.0.log stand, which hardware is found and what resolution should be possible. What is your hardware? greetings _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-questions@FreeBSD.ORG Sat May 2 14:55:18 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0EB84199 for ; Sat, 2 May 2015 14:55:18 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C23661155 for ; Sat, 2 May 2015 14:55:17 +0000 (UTC) Received: from [93.104.19.173] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1YoYou-000815-Bj for freebsd-questions@freebsd.org; Sat, 02 May 2015 16:55:08 +0200 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t42Et6te002477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 2 May 2015 16:55:06 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t42Et54r002476 for freebsd-questions@freebsd.org; Sat, 2 May 2015 16:55:05 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 2 May 2015 16:55:00 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: USB to serial adapter Message-ID: <20150502145500.GA2402@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.19.173 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 14:55:18 -0000 Hello, I have an old VT100 terminal and want this connect to a laptop running FreeBSD which has only USB ports (just for fun to participate in some Vintage Computer Festival). Anybody knows a good adapter which works with our uplcom(4) driver? Thanks matthias -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 +49-176-38902045 "Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden." "Si el hombre es formado por las circunstancias entonces es necesario formar humanamente las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138) From owner-freebsd-questions@FreeBSD.ORG Sat May 2 15:29:32 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93ABD419 for ; Sat, 2 May 2015 15:29:32 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 6C1BD1438 for ; Sat, 2 May 2015 15:29:32 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 5461733C1E; Sat, 2 May 2015 11:29:26 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 8332339814; Sat, 2 May 2015 11:29:25 -0400 (EDT) From: Lowell Gilbert To: "William A. Mahaffey III" Cc: "FreeBSD Questions !!!!" Subject: Re: How to restore a USB drive converted to bootable References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> <5544DBA2.1030102@hiwaay.net> Date: Sat, 02 May 2015 11:29:25 -0400 In-Reply-To: <5544DBA2.1030102@hiwaay.net> (William A. Mahaffey, III's message of "Sat, 02 May 2015 09:20:09 -0453") Message-ID: <44wq0r2e22.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 15:29:32 -0000 "William A. Mahaffey III" writes: > On 05/02/15 09:06, Lowell Gilbert wrote: >> "William A. Mahaffey III" writes: >> >>> I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on >>> boxen under construction. I would also like to use UBCD on a flash >>> drive to memcheck those boxen prior to installation. If I prep a USB >>> thumb drive as either a bootable UBCD drive or an over-the-WWW >>> installer, I wipe out the drive for its original use. Is there a way >>> to restore the drive back to its original functionality if I wanted to >> Is "wipe the drive and reformat" what you need to hear, or do you have >> more requirements that you haven't made clear? >> > > > Wipe & reformat, preferably from CLI under FBSD 9.3R-p13 for > convenience, is what I'm after. Clearly creating a bootable UBCD or > installer will wipe out whatever was > there before, so I just want to get back to 'virgin' USB drive. [TL;DR version: do newfs_msdos -F 32 /dev/da{x} and you'll probably be happy. ] That's still not very specific. Thumb drives come from the factory with a number of different configurations. If you want the one your specific device started with, you need to back it up (dd(1) will do fine) before writing over it. Otherwise, it's just like any other disk; format it any way you like. If you want an MBR, use fdisk(8); if you want a GPT table, use gpart(8); if you don't need either, stick with the raw device. Create a new filesystem. If you want it to be FAT32, you can do that with newfs_msdos(8). I don't remember offhand how to do VFAT, but that's an option if you want. If you're only going to use the drive with BSD systems, I'd recommend you use newfs(8) rather than FAT filesystems -- this won't match anything you might have gotten from a store, but you won't notice any difference (aside from better performance). From owner-freebsd-questions@FreeBSD.ORG Sat May 2 15:38:07 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D1C146FB for ; Sat, 2 May 2015 15:38:07 +0000 (UTC) Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 951F8154D for ; Sat, 2 May 2015 15:38:07 +0000 (UTC) Received: by oift201 with SMTP id t201so87378934oif.3 for ; Sat, 02 May 2015 08:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=6jnfKTuTB8gQzjQmJ8gLzY7XGFiHPJuBN1dgfqWUDgU=; b=0hFBQTZak2r0XKKQyAUNybSALS1khXI21PkcTbKI6YzJPaWqdDz38W8aB2EFGrpzBP EAeID6OEaVST3Gq++jmhXtCIBjGF0S0FM+bxTEtdzc92KxSF70AkQC0VXdtWUEPESmq7 XA52eKcyfZ/SZlrSVwMMIzurdLJn3rwu7KDnMxHnvF4uM6g7e1qUDMue+/TcOzphqLMw 9X1ePnwl/JziYufwf5dgLM6jANfRNtosSSERwyutEbb4ry7QHAir6wxorIbZDhR6eRFJ EBwmHhbZRETwOwbcgQhM+ChKZMJgKUJmlQ+eolv+PvQ9Za1eW5JseBqzgcXp1PG2JjNS mDRg== X-Received: by 10.202.183.214 with SMTP id h205mr6683887oif.87.1430581086912; Sat, 02 May 2015 08:38:06 -0700 (PDT) Received: from localhost.localdomain ([209.181.150.218]) by mx.google.com with ESMTPSA id t7sm4800351oie.22.2015.05.02.08.38.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 May 2015 08:38:06 -0700 (PDT) Message-ID: <5544EF51.5070506@gmail.com> Date: Sat, 02 May 2015 09:37:53 -0600 From: jd1008 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: How to restore a USB drive converted to bootable References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> <5544DBA2.1030102@hiwaay.net> <44wq0r2e22.fsf@lowell-desk.lan> In-Reply-To: <44wq0r2e22.fsf@lowell-desk.lan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 15:38:07 -0000 On 05/02/2015 09:29 AM, Lowell Gilbert wrote: > "William A. Mahaffey III" writes: > >> On 05/02/15 09:06, Lowell Gilbert wrote: >>> "William A. Mahaffey III" writes: >>> >>>> I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on >>>> boxen under construction. I would also like to use UBCD on a flash >>>> drive to memcheck those boxen prior to installation. If I prep a USB >>>> thumb drive as either a bootable UBCD drive or an over-the-WWW >>>> installer, I wipe out the drive for its original use. Is there a way >>>> to restore the drive back to its original functionality if I wanted to >>> Is "wipe the drive and reformat" what you need to hear, or do you have >>> more requirements that you haven't made clear? >>> >> >> Wipe & reformat, preferably from CLI under FBSD 9.3R-p13 for >> convenience, is what I'm after. Clearly creating a bootable UBCD or >> installer will wipe out whatever was >> there before, so I just want to get back to 'virgin' USB drive. >> All you do (as root) is dd if=/dev/zero of=/dev/whatever-your-usb-flash-drive's-name-is bs=1M From owner-freebsd-questions@FreeBSD.ORG Sat May 2 17:17:24 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CC1F2EB2 for ; Sat, 2 May 2015 17:17:24 +0000 (UTC) Received: from taos.firemountain.net (taos.firemountain.net [207.114.3.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "taos.firemountain.net", Issuer "taos.firemountain.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FC0F1E7D for ; Sat, 2 May 2015 17:17:23 +0000 (UTC) Received: from gsp.org (localhost [127.0.0.1]) by taos.firemountain.net (8.15.1/8.15.1) with SMTP id t42GlqeG004839 for ; Sat, 2 May 2015 12:47:53 -0400 (EDT) Date: Sat, 2 May 2015 12:47:52 -0400 From: Rich Kulawiec To: freebsd-questions@freebsd.org Subject: Re: email address being harvested from ports website Message-ID: <20150502164752.GA6047@gsp.org> References: <5527D0BD.8060401@gmail.com> <20150410181255.GA2891@gsp.org> <55292175.3000308@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55292175.3000308@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 17:17:24 -0000 On Sat, Apr 11, 2015 at 09:28:21AM -0400, Ernie Luzar wrote: > Doesn't take 10 years of study to know that any email address > visible on a public website is a target for harvesting. No, but it does take considerable time to understand that while that statement is true, it is absolutely, completely, totally irrelevant. Here's a *brief* introduction. Summary: Spammers now have so many ways of "harvesting" addresses from so many systems, and so many ways of exchanging those with each other, that any email address which is actually used WILL eventually be harvested. Pretending that address hiding and/or obfuscation will have any meaningful effect on this process gives users a false sense of security and has absolutely zero anti-spam value. Summary of the summary: It's pointless. Explanation: The harvesting engines used to acquire email addresses to populate those databases are myriad, as are the methods by which spammers acquire the raw data to use as input to them. Some of those methods, and there are MANY more, include: - subscribing to mailing lists - acquiring Usenet news (NNTP) feeds - querying mail servers - acquiring corporate email directories - insecure LDAP servers - insecure AD servers - web crawlers - search engines - plausible construction - address directories - use of backscatter/outscatter - use of auto-responders - use of mailing list mechanisms - use of abusive "callback" mechanisms - dictionary attacks - construction of plausible addresses (e.g. "firstname.lastname") - purchase of addresses in bulk on the open market. - purchase of addresses from vendors, web sites, etc. - purchase of addresses from registrars, ISPs, web hosts, etc. - domain registration (some registrars ARE spammers) [1] - misplaced/lost/sold media (hard disk, tape, CD, DVD, USB stick, etc.) and perhaps most significantly: - harvesting of the mail, address books and any other files present on any of the hundreds of millions of compromised systems that are out there Let's talk about that last one for a moment. Consider: the first time a newly-created address is used by someone who is sending a message TO it, it's now present on their system: in their saved outbound mail, or perhaps in their address book (if they have one), or in some cache. Any sensible malware resident on their system will of course pick it up and eventually hand it over to a harvesting agent. (Competent malware will harvest it in real time *and* associate it with the sender's address.) And if that particular system happens to be clean? Doesn't help much, because the more times that address is used, the more systems it's present on. And the more systems it's present on, the greater the probability that one of them is already compromised or will be soon. Thus even if we eliminate the originating end-user system as a possible source, we still have to consider the outbound mail server used by that end-user system, which is also a candidate for compromise. And then the inbound mail server used by the recipient, and then the recipient end-user system. And if there's some filtering appliance or intermediate system in place at either end, then it's a possible compromise point as well. If the message is forwarded to a third party, then another set of systems is in play. If mail server logs are rolled up and moved to some central location, then that system must also be included. If backups are made, then any addresses present on live systems are present in their backups, and subsequently may be present on any system where the backups are read/restored. And finally, if the destination of a mail message isn't an individual user, but an entire mailing list, then we must multiply the number of possible harvesting points by at least the number of people on the mailing list plus a factor for mail servers/gateways/filters/etc. (modulo overlaps). This in turns means that messages to sent to lists of any appreciable size (say, 1000 members) will turn up on considerably more than 1000 systems -- and the chances that all 1000-plus are secure are microscopic. [ And remember: it only takes one. What if the system I'm typing this on right now, a system which has a complete archive of freebsd-questions back to 2002 in Unix mbox format, gets compromised? Or how about *your* system? How about on the systems of any of the other people on freebsd-questions? ] Please note that the previous several paragraphs' recitation only covered the LAST vector I enumerated in the [indented] list above: compromised systems. That laundry list of methods also affords many, *many* other opportunities for addresses to find their way into spammers' hands. The bottom line is that any email address which is actually used is GOING to be harvested. It's only a matter of when, not if, and "when" is getting sooner all the time. There's nothing you or I or anyone else can do about this because there are too many vectors and not only do we not control most of them, we don't control the ones that are the the most important. With all this in mind, it's clearly pointless to pretend that address hiding or obfuscation provides any protection at all. It's much better to remove the functionality entirely than to continue to maintain the facade that it actually has any anti-spam value. Everyone should simply presume that all email addresses are in the hands of spammers and prepare defenses accordingly -- because even if that's not quite true yet, it will be soon. Conclusion: Trying to hide/obfuscate email addresses is the security equivalent of Wile E. Coyote holding an umbrella over his head while a grand piano plummets toward him. It's never worked. It's not working. It's not going to work. It's just wishful thinking/folklore/mythology. ---rsk From owner-freebsd-questions@FreeBSD.ORG Sat May 2 20:52:57 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C389AA9A for ; Sat, 2 May 2015 20:52:57 +0000 (UTC) Received: from smtp2.hushmail.com (smtp2.hushmail.com [65.39.178.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.hushmail.com", Issuer "smtp.hushmail.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id ABD6B1481 for ; Sat, 2 May 2015 20:52:57 +0000 (UTC) Received: from smtp2.hushmail.com (localhost [127.0.0.1]) by smtp2.hushmail.com (Postfix) with SMTP id AAA0DA0624 for ; Sat, 2 May 2015 20:18:13 +0000 (UTC) Received: from smtp.hushmail.com (w9.hushmail.com [65.39.178.29]) by smtp2.hushmail.com (Postfix) with ESMTP for ; Sat, 2 May 2015 20:18:13 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 91B9E42420; Sat, 2 May 2015 20:18:13 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 02 May 2015 20:18:13 +0000 To: freebsd-questions@freebsd.org Subject: Rails app slow after PostgreSQL inactivity From: opendaddy@hushmail.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20150502201813.91B9E42420@smtp.hushmail.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 20:52:57 -0000 Hi! I'm using Rails with PostgreSQL and I often get these 504 gateway timeouts (30+ secs) seemingly out of nowhere. I just noticed that this usually happens after my database has been inactive (say for half a day). After feeding my app some new content via its JSON API, speeds immediately return to normal (2-3 secs). How can this be? Could this be related to FreeBSD (DigitalOcean)? Are my PostgreSQL workers are going dormant? Do I need a cron script to act as a little ping pong ball bouncing back and forth making sure everybody's awake? Prior to all of this I've: - made sure I'm not querying any 3rd party services - confirmed it's not Nginx, Puma, or my network in general - looked for clues with rack-mini-profiler - confirmed it's not the "initial request" problem: http://stackoverflow.com/a/12903611 Thanks! O.D. From owner-freebsd-questions@FreeBSD.ORG Sat May 2 21:38:59 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69A1E149 for ; Sat, 2 May 2015 21:38:59 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (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 2B83B188F for ; Sat, 2 May 2015 21:38:58 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-237.dynamic.qsc.de [92.195.64.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id E5E4E24DE1; Sat, 2 May 2015 23:38:55 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t42LcsGA001943; Sat, 2 May 2015 23:38:54 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 2 May 2015 23:38:54 +0200 From: Polytropon To: "William A. Mahaffey III" Cc: "FreeBSD Questions !!!!" Subject: Re: How to restore a USB drive converted to bootable Message-Id: <20150502233854.c80bc5ae.freebsd@edvax.de> In-Reply-To: <5544DBA2.1030102@hiwaay.net> References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> <5544DBA2.1030102@hiwaay.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 21:38:59 -0000 On Sat, 02 May 2015 09:20:09 -0453, William A. Mahaffey III wrote: > On 05/02/15 09:06, Lowell Gilbert wrote: > > "William A. Mahaffey III" writes: > > > >> I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on > >> boxen under construction. I would also like to use UBCD on a flash > >> drive to memcheck those boxen prior to installation. If I prep a USB > >> thumb drive as either a bootable UBCD drive or an over-the-WWW > >> installer, I wipe out the drive for its original use. Is there a way > >> to restore the drive back to its original functionality if I wanted to > > Is "wipe the drive and reformat" what you need to hear, or do you have > > more requirements that you haven't made clear? > > > > > Wipe & reformat, preferably from CLI under FBSD 9.3R-p13 for > convenience, is what I'm after. Clearly creating a bootable UBCD or > installer will wipe out whatever was > there before, so I just want to get back to 'virgin' USB drive. In that case, the command # dd if=/dev/zero of=/dev/da0 bs=1m count=1 should be fine. If there is any offending GPT metadata located at the end of the USB drive, estimate the size and also erase the last few MBs (use skip= to do so). There is no need to actually zero out the _whole_ drive. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sat May 2 21:42:49 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0D33B1F6 for ; Sat, 2 May 2015 21:42:49 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (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 C49571952 for ; Sat, 2 May 2015 21:42:48 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-237.dynamic.qsc.de [92.195.64.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id AA74F24DC0; Sat, 2 May 2015 23:42:46 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t42LgjNQ001949; Sat, 2 May 2015 23:42:45 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 2 May 2015 23:42:45 +0200 From: Polytropon To: Matthias Apitz Cc: freebsd-questions@freebsd.org Subject: Re: USB to serial adapter Message-Id: <20150502234245.e1098b2a.freebsd@edvax.de> In-Reply-To: <20150502145500.GA2402@c720-r276659> References: <20150502145500.GA2402@c720-r276659> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 21:42:49 -0000 On Sat, 2 May 2015 16:55:00 +0200, Matthias Apitz wrote: > I have an old VT100 terminal and want this connect to a laptop running > FreeBSD which has only USB ports (just for fun to participate in some > Vintage Computer Festival). Anybody knows a good adapter which works > with our uplcom(4) driver? I'd be interested in that topic, too. I have the DEC vt101 which still works (tested with _real_ serial port), but as serial ports are vanishing on desktops, and are being nonexistent on laptops, this would be a nice recipe to have in order to bring a piece of museum art back to life. Furthermore, I'd be interested if this approach will only work for communication devices (serial terminal lines), or if it can also be used for pointing devices (serial mice, maybe even digitizer tablets). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sat May 2 22:17:07 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1D3F86A9 for ; Sat, 2 May 2015 22:17:07 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 D08D11D2D for ; Sat, 2 May 2015 22:17:06 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-39.adsl.hiwaay.net [216.180.19.39]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t42MGwIx027190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 2 May 2015 17:16:59 -0500 Message-ID: <55454CDA.3020209@hiwaay.net> Date: Sat, 02 May 2015 17:23:13 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 CC: "FreeBSD Questions !!!!" Subject: Re: How to restore a USB drive converted to bootable References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> <5544DBA2.1030102@hiwaay.net> <20150502233854.c80bc5ae.freebsd@edvax.de> In-Reply-To: <20150502233854.c80bc5ae.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 22:17:07 -0000 On 05/02/15 16:45, Polytropon wrote: > On Sat, 02 May 2015 09:20:09 -0453, William A. Mahaffey III wrote: >> On 05/02/15 09:06, Lowell Gilbert wrote: >>> "William A. Mahaffey III" writes: >>> >>>> I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on >>>> boxen under construction. I would also like to use UBCD on a flash >>>> drive to memcheck those boxen prior to installation. If I prep a USB >>>> thumb drive as either a bootable UBCD drive or an over-the-WWW >>>> installer, I wipe out the drive for its original use. Is there a way >>>> to restore the drive back to its original functionality if I wanted to >>> Is "wipe the drive and reformat" what you need to hear, or do you have >>> more requirements that you haven't made clear? >>> >> >> Wipe & reformat, preferably from CLI under FBSD 9.3R-p13 for >> convenience, is what I'm after. Clearly creating a bootable UBCD or >> installer will wipe out whatever was >> there before, so I just want to get back to 'virgin' USB drive. > In that case, the command > > # dd if=/dev/zero of=/dev/da0 bs=1m count=1 > > should be fine. If there is any offending GPT metadata located > at the end of the USB drive, estimate the size and also erase > the last few MBs (use skip= to do so). There is no need to > actually zero out the _whole_ drive. *Aaaaaaaaaaaaaaahhhhh*, I wasn't sure about that (zero the whole drive), thanks :-) .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Sat May 2 22:24:23 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CD295843 for ; Sat, 2 May 2015 22:24:23 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (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 8E5811E61 for ; Sat, 2 May 2015 22:24:23 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-237.dynamic.qsc.de [92.195.64.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id AA31927671; Sun, 3 May 2015 00:24:21 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t42MOKru002765; Sun, 3 May 2015 00:24:20 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 3 May 2015 00:24:20 +0200 From: Polytropon To: freebsd-questions@freebsd.org Cc: "William A. Mahaffey III" Subject: Re: How to restore a USB drive converted to bootable Message-Id: <20150503002420.fdcc9310.freebsd@edvax.de> In-Reply-To: <55454CDA.3020209@hiwaay.net> References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> <5544DBA2.1030102@hiwaay.net> <20150502233854.c80bc5ae.freebsd@edvax.de> <55454CDA.3020209@hiwaay.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 22:24:23 -0000 On Sat, 02 May 2015 17:23:13 -0453, William A. Mahaffey III wrote: > On 05/02/15 16:45, Polytropon wrote: > > On Sat, 02 May 2015 09:20:09 -0453, William A. Mahaffey III wrote: > >> On 05/02/15 09:06, Lowell Gilbert wrote: > >>> "William A. Mahaffey III" writes: > >>> > >>>> I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on > >>>> boxen under construction. I would also like to use UBCD on a flash > >>>> drive to memcheck those boxen prior to installation. If I prep a USB > >>>> thumb drive as either a bootable UBCD drive or an over-the-WWW > >>>> installer, I wipe out the drive for its original use. Is there a way > >>>> to restore the drive back to its original functionality if I wanted to > >>> Is "wipe the drive and reformat" what you need to hear, or do you have > >>> more requirements that you haven't made clear? > >>> > >> > >> Wipe & reformat, preferably from CLI under FBSD 9.3R-p13 for > >> convenience, is what I'm after. Clearly creating a bootable UBCD or > >> installer will wipe out whatever was > >> there before, so I just want to get back to 'virgin' USB drive. > > In that case, the command > > > > # dd if=/dev/zero of=/dev/da0 bs=1m count=1 > > > > should be fine. If there is any offending GPT metadata located > > at the end of the USB drive, estimate the size and also erase > > the last few MBs (use skip= to do so). There is no need to > > actually zero out the _whole_ drive. > > *Aaaaaaaaaaaaaaahhhhh*, I wasn't sure about that (zero the whole drive), > thanks :-) .... There are only few significant "data zones" on the USB drive. The boot sector and partition table are located at the beginning, and _maybe_ GPT metadata at the end. Removing both makes the remaining bits and bytes practically useless (except when you take it to forensics, but you don't want to recover things anyway, so the result should work for you). However, if you want a USB drive "new" (as in "I just bought it from the shop, it's fresh out of the package!"), then you have to write a MSDOS (FAT) file system, install some crapware, some ridiculous "drivers", and "value added" software, maybe with some spying tools, malware, nagware, and non-working "encryption" tools. Add several partitions and make them smaller than the real size of the drive. And add a "Facebook" link. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sat May 2 22:52:50 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 772BBE7C for ; Sat, 2 May 2015 22:52:50 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 3BC471119 for ; Sat, 2 May 2015 22:52:49 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-39.adsl.hiwaay.net [216.180.19.39]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t42MqlFZ006245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 2 May 2015 17:52:48 -0500 Message-ID: <5545553F.50602@hiwaay.net> Date: Sat, 02 May 2015 17:59:02 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: How to restore a USB drive converted to bootable References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> <5544DBA2.1030102@hiwaay.net> <20150502233854.c80bc5ae.freebsd@edvax.de> <55454CDA.3020209@hiwaay.net> <20150503002420.fdcc9310.freebsd@edvax.de> In-Reply-To: <20150503002420.fdcc9310.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 22:52:50 -0000 On 05/02/15 17:30, Polytropon wrote: > On Sat, 02 May 2015 17:23:13 -0453, William A. Mahaffey III wrote: >> On 05/02/15 16:45, Polytropon wrote: >>> On Sat, 02 May 2015 09:20:09 -0453, William A. Mahaffey III wrote: >>>> On 05/02/15 09:06, Lowell Gilbert wrote: >>>>> "William A. Mahaffey III" writes: >>>>> >>>>>> I am about to do some OS installs (NetBSD & OpenBSD, as it happens) on >>>>>> boxen under construction. I would also like to use UBCD on a flash >>>>>> drive to memcheck those boxen prior to installation. If I prep a USB >>>>>> thumb drive as either a bootable UBCD drive or an over-the-WWW >>>>>> installer, I wipe out the drive for its original use. Is there a way >>>>>> to restore the drive back to its original functionality if I wanted to >>>>> Is "wipe the drive and reformat" what you need to hear, or do you have >>>>> more requirements that you haven't made clear? >>>>> >>>> Wipe & reformat, preferably from CLI under FBSD 9.3R-p13 for >>>> convenience, is what I'm after. Clearly creating a bootable UBCD or >>>> installer will wipe out whatever was >>>> there before, so I just want to get back to 'virgin' USB drive. >>> In that case, the command >>> >>> # dd if=/dev/zero of=/dev/da0 bs=1m count=1 >>> >>> should be fine. If there is any offending GPT metadata located >>> at the end of the USB drive, estimate the size and also erase >>> the last few MBs (use skip= to do so). There is no need to >>> actually zero out the _whole_ drive. >> *Aaaaaaaaaaaaaaahhhhh*, I wasn't sure about that (zero the whole drive), >> thanks :-) .... > There are only few significant "data zones" on the USB drive. > The boot sector and partition table are located at the beginning, > and _maybe_ GPT metadata at the end. Removing both makes the > remaining bits and bytes practically useless (except when you > take it to forensics, but you don't want to recover things > anyway, so the result should work for you). > > However, if you want a USB drive "new" (as in "I just bought it > from the shop, it's fresh out of the package!"), then you have > to write a MSDOS (FAT) file system, install some crapware, some > ridiculous "drivers", and "value added" software, maybe with > some spying tools, malware, nagware, and non-working "encryption" > tools. Add several partitions and make them smaller than the > real size of the drive. And add a "Facebook" link. :-) > > > I was thinking of dd-ing the 1st MB or 2 off into a file, then restoring from that file when done, that would skip all the extra features you mention ;-). Would 1 or 2 MB be enough to get all of the FS info ? I wasn't aware you didn't have to zero everything out, that simplifies things a fair bit .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@FreeBSD.ORG Sat May 2 23:08:26 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 897D36D for ; Sat, 2 May 2015 23:08:26 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (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 4A5291212 for ; Sat, 2 May 2015 23:08:25 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-237.dynamic.qsc.de [92.195.64.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id B64CF24BD5; Sun, 3 May 2015 01:08:22 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t42N8Mvh002919; Sun, 3 May 2015 01:08:22 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 3 May 2015 01:08:22 +0200 From: Polytropon To: "William A. Mahaffey III" Cc: freebsd-questions@freebsd.org Subject: Re: How to restore a USB drive converted to bootable Message-Id: <20150503010822.35d5c71a.freebsd@edvax.de> In-Reply-To: <5545553F.50602@hiwaay.net> References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> <5544DBA2.1030102@hiwaay.net> <20150502233854.c80bc5ae.freebsd@edvax.de> <55454CDA.3020209@hiwaay.net> <20150503002420.fdcc9310.freebsd@edvax.de> <5545553F.50602@hiwaay.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 23:08:26 -0000 On Sat, 02 May 2015 17:59:02 -0453, William A. Mahaffey III wrote: > I was thinking of dd-ing the 1st MB or 2 off into a file, then restoring > from that file when done, that would skip all the extra features you > mention ;-). Would 1 or 2 MB be enough to get all of the FS info ? That depends on the file system. Partition table and boot sector are within the 1st MB. Inode lists and FATs are typically also located there, but there might be redundandcy "later on" for ensuring file system consistency. If you dd the whole drive, you can restore it 1:1 after any use. But if you just want a quick (and "sufficiently safe") way to wipe it, zero out the first MBs. That's usually _more_ than enough. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sat May 2 23:57:21 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64306A9C for ; Sat, 2 May 2015 23:57:21 +0000 (UTC) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2DA4F16B1 for ; Sat, 2 May 2015 23:57:21 +0000 (UTC) Received: by iejt8 with SMTP id t8so109894520iej.2 for ; Sat, 02 May 2015 16:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DYkuD6STT9VXiD0tl8jwmLpq7OAkAnbRYk6iEA6c/ZU=; b=S/sCOgtyCjfjaKQGaUNmmzhPoo+Bz1AtLxyWg0N0PUhoBIfXlrREUFBLBLzdw/gawM wVDA17cabw7Wbrq3BTcmJ/mMZHjEAOLH9L06bTZpyOnOTBGzof9ukq3O/mdU8zOmSr1x Hej9W75M13FtqjLXljauk/iDUuDinlxg8RQ8M2zfsbfC/LEb5aYnIZCHVqx2lXxpSTaX SMtaDalmts8zWGK6MMSdJyNQr8FnzPOttBQJmnysJJXem69NyVJlmXlFqzokKD9epR7l uxrrALLyEyR2mHoDVVKSqJiiN2/KIhyztRunEUySwn7KeGRjRTJz3Ajt+3z9OxkD82bQ P3hA== MIME-Version: 1.0 X-Received: by 10.43.146.67 with SMTP id jx3mr9365737icc.63.1430611040575; Sat, 02 May 2015 16:57:20 -0700 (PDT) Received: by 10.64.24.141 with HTTP; Sat, 2 May 2015 16:57:20 -0700 (PDT) In-Reply-To: <20150502234245.e1098b2a.freebsd@edvax.de> References: <20150502145500.GA2402@c720-r276659> <20150502234245.e1098b2a.freebsd@edvax.de> Date: Sat, 2 May 2015 16:57:20 -0700 Message-ID: Subject: Re: USB to serial adapter From: Mehmet Erol Sanliturk To: Polytropon Cc: Matthias Apitz , FreeBSD Questions Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 23:57:21 -0000 On Sat, May 2, 2015 at 2:42 PM, Polytropon wrote: > On Sat, 2 May 2015 16:55:00 +0200, Matthias Apitz wrote: > > I have an old VT100 terminal and want this connect to a laptop running > > FreeBSD which has only USB ports (just for fun to participate in some > > Vintage Computer Festival). Anybody knows a good adapter which works > > with our uplcom(4) driver? > > I'd be interested in that topic, too. I have the DEC vt101 > which still works (tested with _real_ serial port), but > as serial ports are vanishing on desktops, and are being > nonexistent on laptops, this would be a nice recipe to > have in order to bring a piece of museum art back to life. > > Furthermore, I'd be interested if this approach will only > work for communication devices (serial terminal lines), or > if it can also be used for pointing devices (serial mice, > maybe even digitizer tablets). > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > > http://www.amazon.com/Aten-Technologies-UC232A-Serial-Adapter/dp/B00006HNF6 http://www.aten.com/products/productItem.php?model_no=UC232A#.VUVkL-RlAWM http://www.amazon.com/Digitus-DA-70156-Usb-Serial-Adaptor/dp/B0030IT780/ref=sr_1_fkmr0_1?s=electronics&ie=UTF8&qid=1430610687&sr=1-1-fkmr0&keywords=Assmann+DA-70156 http://assmann.us/index.php?main_page=product_info&products_id=11087 These are defined as Linux compatible also among others ( without mentioning FreeBSD ) . I did not used any one of them . Thank you very much . Mehmet Erol Sanliturk