From owner-freebsd-questions@FreeBSD.ORG Thu May 31 23:03:00 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05B4516A41F for ; Thu, 31 May 2007 23:03:00 +0000 (UTC) (envelope-from spap13@googlemail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.237]) by mx1.freebsd.org (Postfix) with ESMTP id B5B7E13C448 for ; Thu, 31 May 2007 23:02:59 +0000 (UTC) (envelope-from spap13@googlemail.com) Received: by nz-out-0506.google.com with SMTP id 14so290170nzn for ; Thu, 31 May 2007 16:02:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ALOqiykQYUIDUmhYC9ZxT7ccXHD1UgZiPqEkLQjp3Ea8ByiahRgf/5wtTPd5lMAYgEJu8VMv9JMTJkOoYHVzVlAysJ1eGH9sQltmeJxluY+JtgC3Qt/uHAjdks8LlHu6mMHwgUg9segweAkXp/8C0eWCTikIfX0lsGfseIz0hpo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=S6KONdvIjO5kSDyOXanqIpCZWfpKGVcA+lQyfsTQrcbl/7HrAipmiZDhYkr8leBP8K+tZTX6CasiRn8B3sbw7cXo/KWFfcRgJoYCv8b9qcl+ye+iVxGiVykkrv+xWJkbFyQj/zGck47XkZ2l+MwCBemHbaioonKINAyYR82OGMw= Received: by 10.114.78.1 with SMTP id a1mr1099935wab.1180652579232; Thu, 31 May 2007 16:02:59 -0700 (PDT) Received: by 10.114.79.6 with HTTP; Thu, 31 May 2007 16:02:59 -0700 (PDT) Message-ID: Date: Thu, 31 May 2007 19:02:59 -0400 From: "Spiros Papadopoulos" To: "freebsd mailing list" , teklimbu@wlink.com.np In-Reply-To: <465F157B.1090205@wlink.com.np> MIME-Version: 1.0 References: <465F157B.1090205@wlink.com.np> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Fwd: Squid and IPFW X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2007 23:03:00 -0000 Thanks for your reply. I asked the question long in advance. I will try this. ---------- Forwarded message ---------- From: Tek Bahadur Limbu Date: 31-May-2007 14:35 Subject: Re: Squid and IPFW To: Spiros Papadopoulos Cc: freebsd mailing list < freebsd-questions@freebsd.org> Spiros Papadopoulos wrote: > Dear all, > > I would like to setup a gw / firewall (IPFW) which will also run Squid, in > order to restrict access to certain websites > or to allow certain workstations to have full access to the internet. > How can I redirect all traffic going to port 80 on the gw, to port 3128 on > Squid without setting this on each workstation? > I know this can be done with iptables but i don't want to use iptables on > this one... Hi Spiros, You can try the following commands: /sbin/ipfw add fwd 127.0.0.1,3128 tcp from any to any 80 in /sbin/ipfw add allow tcp from 192.168.0.0/24 to any 3128 in via fxp0 Hope it helps. > > Thanks in advance > Spiros P. > _______________________________________________ > 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 " > > > -- Spiros P.