From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 06:37:09 2006 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 DF63A16A400 for ; Fri, 7 Apr 2006 06:37:09 +0000 (UTC) (envelope-from igorr@speechpro.com) Received: from speechpro.ru (speech-tech-2.ip.PeterStar.net [81.3.190.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F81F43D45 for ; Fri, 7 Apr 2006 06:37:08 +0000 (GMT) (envelope-from igorr@speechpro.com) Received: from [192.168.2.26] (helo=sysadm.stc) by s1.stc with esmtp (Exim 4.53 (FreeBSD)) id 1FRkah-000HQg-Ih for freebsd-questions@freebsd.org; Fri, 07 Apr 2006 10:37:07 +0400 Received: from igorr by sysadm.stc with local (Exim 4.54 (FreeBSD)) id 1FRkaJ-0002kL-EQ for freebsd-questions@freebsd.org; Fri, 07 Apr 2006 10:36:43 +0400 Date: Fri, 7 Apr 2006 10:36:43 +0400 From: Igor Robul To: freebsd-questions@freebsd.org Message-ID: <20060407063643.GG10293@sysadm.stc> References: <20060407035808.9610.qmail@web36504.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060407035808.9610.qmail@web36504.mail.mud.yahoo.com> User-Agent: Mutt/1.5.11 Sender: Igor Robul X-Archived: Yes Subject: Re: freebsd 6.0 personal firewall 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: Fri, 07 Apr 2006 06:37:10 -0000 On Thu, Apr 06, 2006 at 08:58:08PM -0700, ilyana ramlan wrote: > Hello, > 1) How do i block websites by typing their url name Do you wish block access _TO_ sites, or _FROM_ sites. If you wish block access _FROM_ sites, than tell us more about what type of access do you wish to block (Spam email, other). > (eg. www.yahoo.com) using built in freebsd 6.0 > firewall? You can block websites with packet filtering firewall, but better install some proxy server (/usr/ports/www/oops, /usr/ports/www/squid). Then you'll be able not only block access by IP address, but also block access by URL (or part of it). > > 2) Do i have to configure the hosts.allow file to > block websites and must i know their IP address to > block websites? Can i block them by their URL names? hosts.allow is used to control access to services, which are running on your system. So you cannot block access to other hosts with hosts.allow You can read more about FreeBSD firewalls at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html You can find some information about restricting access to websites if you go to google.com and search something like "filtering proxy" You can read how to install additional software on FreeBSD at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html You can read about Spam-filtering at: http://dspam.nuclearelephant.com/ http://spamassassin.apache.org/