FBSD - Listen on IP Block

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Feb 11 07:17:50 UTC 2010


-----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-----


More information about the freebsd-questions mailing list