Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2010 07:17:42 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Adam Landry <ALandry@csnstores.com>
Cc:        "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   Re: FBSD - Listen on IP Block
Message-ID:  <4B73AF16.7030304@infracaninophile.co.uk>
In-Reply-To: <B218CD6804D9B240983C69BED2AA3133013033015F5A@kite.csnzoo.com>
References:  <B218CD6804D9B240983C69BED2AA3133013033015F5A@kite.csnzoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B73AF16.7030304>