From owner-freebsd-questions@FreeBSD.ORG Thu Feb 11 07:17:50 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C2CE106566B for ; Thu, 11 Feb 2010 07:17:50 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 06CC68FC18 for ; Thu, 11 Feb 2010 07:17:49 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o1B7Hgrv049590 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 11 Feb 2010 07:17:42 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o1B7Hgrv049590 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1265872662; bh=YVDD6DDlHmDiiAZOfZhd/Fh4s3bHM32WBL3eR+TFN6Q=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B73AF16.7030304@infracaninophile.co.uk>|Date:=20T hu,=2011=20Feb=202010=2007:17:42=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Mozilla/5.0=20(Macintosh=3B=20U=3B=20Intel=20Mac= 20OS=20X=2010.6=3B=20en-GB=3B=20rv:1.9.1.7)=20Gecko/20100111=20Thu nderbird/3.0.1|MIME-Version:=201.0|To:=20Adam=20Landry=20|CC:=20"freebsd-questions@FreeBSD.org"=20|Subject:=20Re:=20FBSD=20-=20Listen=20on=20IP= 20Block|References:=20|In-Reply-To:=20|X-Enigmail-Version:=201.0|Content-T ype:=20text/plain=3B=20charset=3DUTF-8|Content-Transfer-Encoding:= 207bit; b=Z0JG42FnqFsVFaV1+WIpuu9jyW9B13JG//yrdMYE/vXC35Q62tDasOfre8xHaFaSi bdWYzCw9GLINUEumyBOZlAQCpT6HaG8N4gcXdQJmBXsnEy6Ad4aA+V8jgAv9ZX5gyJ xZXrNkGfyM2mO/loCPjtX2NXqgunvAy4sCNpXZ7U= Message-ID: <4B73AF16.7030304@infracaninophile.co.uk> Date: Thu, 11 Feb 2010 07:17:42 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Adam Landry References: In-Reply-To: X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk Cc: "freebsd-questions@FreeBSD.org" Subject: Re: FBSD - Listen on IP Block 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, 11 Feb 2010 07:17:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/02/2010 21:32, Adam Landry wrote: > Is it possible to have freebsd 8 listen on a complete IP range? Yes. You can add alias addresses for all of the IPs in a network on to the same machine. Easiest way to do that is with something like the following in /etc/rc.conf: ipv4_addrs_em0="192.168.123.1-254/24" Note: be careful to avoid adding the network and the broadcast addresses as aliases or you'll get weird effects. Note 2: if all you want to do is scan passing traffic but not respond to it, then putting the interface into promiscuous mode will do what you want. This happens automatically when using programs like tcpdump or wireshark: otherwise, you can use ifconfig to change manually. To see all the traffic on a wired network, you'll need to have a manageable switch, and set the network port your machine is connected to into monitor mode. Wireless networks don't have this restriction. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktzrxYACgkQ8Mjk52CukIwvXwCfWkt5SmDz5SgxfpYOVuKau0f2 AKIAn3+RstFen+BRQvOewkt5bpakBtW0 =FwAV -----END PGP SIGNATURE-----