Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* packetfiltering. how to use it?
@ 1999-10-19  4:00 Alexei Sorokin
  1999-10-19  4:00 ` Serguei Patchkovskii
  0 siblings, 1 reply; 3+ messages in thread
From: Alexei Sorokin @ 1999-10-19  4:00 UTC (permalink / raw)


hi all.
i have installed packetfilter package on DU4.0f and configured kernel as
described in man.
however i can't still understand how to tune packetfilter to reject some
tcp/udp packets.
let's say how can i filter all smtp (tcp 25) or dns (udp 53) packets?

please, help to find right man page.

alexei sorokin





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: packetfiltering. how to use it?
  1999-10-19  4:00 packetfiltering. how to use it? Alexei Sorokin
@ 1999-10-19  4:00 ` Serguei Patchkovskii
  1999-10-19  4:00   ` Pit Linnartz
  0 siblings, 1 reply; 3+ messages in thread
From: Serguei Patchkovskii @ 1999-10-19  4:00 UTC (permalink / raw)


Alexei Sorokin (Alexei.Sorokin@rcm.nnov.ru) wrote:
: i have installed packetfilter package on DU4.0f and configured kernel as
: described in man.
: however i can't still understand how to tune packetfilter to reject some
: tcp/udp packets.
: let's say how can i filter all smtp (tcp 25) or dns (udp 53) packets?

You can't. The packetfilter interface in DU is for programs which wish
to access raw Ethernet packets to do some processing IN ADDITION to 
whatever is done by the kernel. This is particularly useful for packets
which kernel "processes" by dropping them :-)

You can configure DU IP stack to drop *all* packets coming from a range
of IP adresses (see man ifconfig). However, this does not allow you to
selectively drop packets depending on port and protocol.

Cheers,

/Serge.P

--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: packetfiltering. how to use it?
  1999-10-19  4:00 ` Serguei Patchkovskii
@ 1999-10-19  4:00   ` Pit Linnartz
  0 siblings, 0 replies; 3+ messages in thread
From: Pit Linnartz @ 1999-10-19  4:00 UTC (permalink / raw)



Serguei Patchkovskii wrote in message
<7ui7ul$cgs$1@nserve1.acs.ucalgary.ca>...
>Alexei Sorokin (Alexei.Sorokin@rcm.nnov.ru) wrote:
>: i have installed packetfilter package on DU4.0f and configured kernel as
>: described in man.
>: however i can't still understand how to tune packetfilter to reject some
>: tcp/udp packets.
>: let's say how can i filter all smtp (tcp 25) or dns (udp 53) packets?
>
>You can't. The packetfilter interface in DU is for programs which wish
>to access raw Ethernet packets to do some processing IN ADDITION to
>whatever is done by the kernel. This is particularly useful for packets
>which kernel "processes" by dropping them :-)
>
>You can configure DU IP stack to drop *all* packets coming from a range
>of IP adresses (see man ifconfig). However, this does not allow you to
>selectively drop packets depending on port and protocol.
>
The given answer is right. The question is what you really want. If you want
to act
as a gateway, and filter traffic, take a look at screend (8).
If you want to look at the data. you did the right thing by configuring the
packetfilter.
now you have to check the mode with pfstat(1), and enable it via
pfconfig(8).
After you have done this, you can use tcpdump(8) to obtain the packets.
(ex: tcpdump host <hostname> and port 25) will show you the smtp packets.
there are a lot more options to tcpdump.
packetfilter(8) points also to examples written in C

Pit





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-10-19  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-19  4:00 packetfiltering. how to use it? Alexei Sorokin
1999-10-19  4:00 ` Serguei Patchkovskii
1999-10-19  4:00   ` Pit Linnartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox