From owner-freebsd-questions@FreeBSD.ORG Thu Jun 30 06:58:47 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADCC416A41C for ; Thu, 30 Jun 2005 06:58:47 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6274243D55 for ; Thu, 30 Jun 2005 06:58:47 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: by wproxy.gmail.com with SMTP id i25so47020wra for ; Wed, 29 Jun 2005 23:58:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EZUPWCZWziAjqqqU7AfKShsUle5tpKoS3eZVSeEfOUQux0/Ei9Jxr/Oo/30xvAGDV8aaxqhBWGQkIROL8rrTjMO5v5kg5I2zGoR6UP1hFmxXh6AJjG1xI/ZJZlozlfDFEFBcx+2GoKao8fvDCr7GocsuivPhMLzT4V+1WOqJYyQ= Received: by 10.54.15.38 with SMTP id 38mr223536wro; Wed, 29 Jun 2005 23:58:46 -0700 (PDT) Received: by 10.54.66.16 with HTTP; Wed, 29 Jun 2005 23:58:46 -0700 (PDT) Message-ID: Date: Thu, 30 Jun 2005 09:58:46 +0300 From: Abu Khaled To: Odhiambo Washington , freebsd-questions@freebsd.org In-Reply-To: <20050629182231.GD53518@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050629182231.GD53518@ns2.wananchi.com> Cc: Subject: Re: Device access - /dev/ipnat X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Abu Khaled List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2005 06:58:47 -0000 On 6/29/05, Odhiambo Washington wrote: > Hello FreeBSD lovers, >=20 > In the current FreeBSD ports, squid-2.5STABLE10 has a patch that allows > it to run without dying even though it does not have access to > /dev/ipnat. >=20 > This access is important where squid is running in a transparent proxy > setup. >=20 > I am running several FreeBSD 5.x boxes with squid in transparent proxy > mode, so this problem is a big one for me. >=20 > The patch seems to be a workaround, but I'd really like to give squid > access to this device anyway. >=20 > My thinking was that I can solve the problem of access to /dev/ipnat > using /etc/devfs.conf. However, my reading of the comments in this file > does not give me any clear method of achieving what I want. >=20 > Am I right in my thinking that /dev/ipnat device is created on the fly > in FreeBSD 5.x? As such I cannot change the permissions on it, yes? >=20 > How do I solve my problem, if anyone can advise me? It will server as > my first lesson with devices in 5.x. >=20 >=20 > Thanks in advance. >=20 >=20 > -Wash >=20 execute the following to enable squid to access /dev/ipnat # chgrp squid /dev/ipnat # chmod g+rw /dev/ipnat Add them to /etc/rc.local to execute them on boot/restart chgrp squid /dev/ipnat chmod g+rw /dev/ipnat --=20 Kind regards Abu Khaled