From: Joakim Ryden Subject: Re: iptables mangling rule Date: Sat, 31 May 2003 15:11:53 -0700 Sender: linux-admin-owner@vger.kernel.org Message-ID: <200305311511.53662.jryden@thebox.our-own.net> References: <1054397900.5715.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1054397900.5715.2.camel@localhost.localdomain> Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: davidgn@servidor.unam.mx Cc: linux-admin@vger.kernel.org Use Squid with the transparent proxy feature and then something like Bannerfilter (http://www.phroggy.com/bannerfilter/) to do the filtering. The Squid transparent proxy (using iptables, ipchains or whatever your system supports) is documented in the Squid documentation. I run this configuration myself so let me know if you need any specific help setting it up. --Jo On Saturday 31 May 2003 14:53, David Eduardo Gomez Noguera wrote: > Hello. > In a school, they want to set up a firewall that should filter pornsites > and the like. > Anyone can give me a hand there? > > The solution I thought about was setting up a proxy, and using the proxy > to filter some sites. > However, I couldt think how to use iptables to force every connection to > with destination port 80 to go to the proxy. > > What rule could do the trick? I think it has to do with changing some > headers so that the proxy gets it. > > Or is there a better solution to filtering sites? > > > Thank you > > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html