1353141SphilipThe following instructions are applicable to Tru64 UNIX
2353141Sphilip(formerly Digital UNIX (formerly DEC OSF/1)) version 4.0, and
3353141Sphilipprobably to later versions as well; at least some options apply to
4353141SphilipDigital UNIX 3.2 - perhaps all do.
5353141Sphilip
6353141SphilipIn order to use kernel packet filtering on this system, you have
7353141Sphilipto configure it in such a way:
8353141Sphilip
9353141SphilipKernel configuration
10353141Sphilip--------------------
11353141Sphilip
12353141SphilipThe packet filtering kernel option must be enabled at kernel
13353141Sphilipinstallation.  If it was not the case, you can rebuild the kernel with
14353141Sphilip"doconfig -c" after adding the following line in the kernel
15353141Sphilipconfiguration file (/sys/conf/<HOSTNAME>):
16353141Sphilip
17353141Sphilip	option PACKETFILTER
18353141Sphilip
19353141Sphilipor use "doconfig" without any arguments to add the packet filter driver
20353141Sphilipoption via the kernel option menu (see the system administration
21353141Sphilipdocumentation for information on how to do this).
22353141Sphilip
23353141SphilipDevice configuration
24353141Sphilip--------------------
25353141Sphilip
26353141SphilipDevices used for packet filtering must be created thanks to
27353141Sphilipthe following command (executed in the /dev directory):
28353141Sphilip
29353141Sphilip	./MAKEDEV pfilt
30353141Sphilip
31353141SphilipInterface configuration
32353141Sphilip-----------------------
33353141Sphilip
34353141SphilipIn order to capture all packets on a network, you may want to allow
35353141Sphilipapplications to put the interface on that network into "local copy"
36353141Sphilipmode, so that tcpdump can see packets sent by the host on which it's
37353141Sphiliprunning as well as packets received by that host, and to put the
38353141Sphilipinterface into "promiscuous" mode, so that tcpdump can see packets on
39353141Sphilipthe network segment not sent to the host on which it's running, by using
40353141Sphilipthe pfconfig(1) command:
41353141Sphilip
42353141Sphilip	pfconfig +c +p <network_device>
43353141Sphilip
44353141Sphilipor allow application to put any interface into "local copy" or
45353141Sphilip"promiscuous" mode by using the command:
46353141Sphilip
47353141Sphilip	pfconfig +c +p -a
48353141Sphilip
49353141SphilipNote: all instructions given require root privileges.
50