From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ae4ed8ff187356e0 X-Google-Attributes: gidfee84,public From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Subject: Re: packetfiltering. how to use it? Date: 1999/10/19 Message-ID: <7ui7ul$cgs$1@nserve1.acs.ucalgary.ca>#1/1 X-Deja-AN: 537989848 References: <7ui2vk$9oa$1@nsl.nts.nnov.ru> X-Complaints-To: news@ucalgary.ca X-Trace: nserve1.acs.ucalgary.ca 940352277 12828 136.159.34.221 (19 Oct 1999 16:57:57 GMT) Organization: University of Calgary NNTP-Posting-Date: 19 Oct 1999 16:57:57 GMT Newsgroups: comp.unix.osf.osf1 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/