From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8195a99e7982bad4 X-Google-Attributes: gidfee84,public From: mogul@actitis.pa.dec.com (Jeffrey Mogul) Subject: Re: Packetfilter(7) -- Suggestions? Date: 1999/02/09 Message-ID: <79o241$45j@usenet.pa.dec.com>#1/1 X-Deja-AN: 442242350 References: <79ne55$ctv$1@newsflash.concordia.ca> Organization: DEC Western Research Newsgroups: comp.unix.osf.osf1 In article <79ne55$ctv$1@newsflash.concordia.ca>, syl@alcor.concordia.ca (Sylvain Robitaille) writes: |> The plan is simple: I would like to be able to apply a packet filter to |> IP packets destined for a particular port on the host. There is only one |> network adapter on the host. I would have preferred to use something |> like tcp_wrappers, but the service I'm concerned about is not wrappable, |> and it is commercial software, so I can't modify it to use libwrap. |> |> The use of a firewall has been considered, but this *is* a university, |> so I need something with a finer granularity, (thus the idea of |> packet-filtering on the host). |> |> I know it's possible to do, but I don't see any evidence that anyone's |> doing this, either on this newsgroup or on the alpha-osf-managers |> mailing list. I've reviewed the /usr/examples/packetfilters/pfsamp.c |> file, as well as /usr/include/net/pfilt.h, but this still isn't really |> clear to me. Actually, it's not possible to do. (I should point that I wrote a large chunk of the packetfilter code in the kernel, a long time ago.) The packetfilter is specifically designed NOT to disturb packets that would normally go to a port on the local host. If you want to set up the system as a firewall, you could use the "screend" facility (which I also designed). But this also will not affect packet delivery to ports on the local host. And apparently you cannot use tcp_wrappers, so I think you are pretty much out of luck, for now. Sorry, -Jeff