Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Packetfilter(7) -- Suggestions?
@ 1999-02-08  5:00 Sylvain Robitaille
  1999-02-09  5:00 ` Jeffrey Mogul
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sylvain Robitaille @ 1999-02-08  5:00 UTC (permalink / raw)


Hello,

I've been meaning to use the packet filtering ability of DEC Unix-4.0B,
(I will be upgrading to 4.0E in the very near future, so if there's
something in that version that I should wait for, I'm prepared to wait).

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.

I hope someone on this newsgroup can give me some pointers that might
help me create such a packet filter.

Followups to the newsgroup would be my preference, but if this subject
is not wholly appropriate to the newsgroup, I'll gladly accept email
replies.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca
 
Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------



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

* Re: Packetfilter(7) -- Suggestions?
  1999-02-08  5:00 Packetfilter(7) -- Suggestions? Sylvain Robitaille
@ 1999-02-09  5:00 ` Jeffrey Mogul
  1999-02-09  5:00   ` Sylvain Robitaille
  1999-02-09  5:00 ` Martin Gall
  1999-02-10  5:00 ` Mark Gelinas USG
  2 siblings, 1 reply; 8+ messages in thread
From: Jeffrey Mogul @ 1999-02-09  5:00 UTC (permalink / raw)


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



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

* Re: Packetfilter(7) -- Suggestions?
  1999-02-08  5:00 Packetfilter(7) -- Suggestions? Sylvain Robitaille
  1999-02-09  5:00 ` Jeffrey Mogul
@ 1999-02-09  5:00 ` Martin Gall
  1999-02-09  5:00   ` Sylvain Robitaille
  1999-02-10  5:00 ` Mark Gelinas USG
  2 siblings, 1 reply; 8+ messages in thread
From: Martin Gall @ 1999-02-09  5:00 UTC (permalink / raw)


Sylvain Robitaille wrote:
> 
> Hello,
> 
> I've been meaning to use the packet filtering ability of DEC Unix-4.0B,
> (I will be upgrading to 4.0E in the very near future, so if there's
> something in that version that I should wait for, I'm prepared to wait).
> 
> 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.
> 
> I hope someone on this newsgroup can give me some pointers that might
> help me create such a packet filter.
> 
> Followups to the newsgroup would be my preference, but if this subject
> is not wholly appropriate to the newsgroup, I'll gladly accept email
> replies.
> 
You'll need to use a sentry (e.g. NSR or http://www.capmedia.fr/mgall).



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

* Re: Packetfilter(7) -- Suggestions?
  1999-02-09  5:00 ` Jeffrey Mogul
@ 1999-02-09  5:00   ` Sylvain Robitaille
  0 siblings, 0 replies; 8+ messages in thread
From: Sylvain Robitaille @ 1999-02-09  5:00 UTC (permalink / raw)


On 9 Feb 1999 01:13:37 GMT, Jeffrey Mogul <mogul@actitis.pa.dec.com> wrote:

> The packetfilter is specifically designed NOT to disturb packets
> that would normally go to a port on the local host.

:-(  That's certainly not what I'd hoped to hear.

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

Right, so it isn't the answer for what I'm trying to do here anyway.

> And apparently you cannot use tcp_wrappers, so I think you
> are pretty much out of luck, for now.

Yuck!  I'll get our network guys to filter at the router, but that won't
give me the same granularity I'd hoped for. Thanks for the followup.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca
 
Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------



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

* Re: Packetfilter(7) -- Suggestions?
  1999-02-09  5:00 ` Martin Gall
@ 1999-02-09  5:00   ` Sylvain Robitaille
  0 siblings, 0 replies; 8+ messages in thread
From: Sylvain Robitaille @ 1999-02-09  5:00 UTC (permalink / raw)


On Tue, 09 Feb 1999 16:23:08 +0000, Martin Gall <mgall@capmedia.fr> wrote:

> You'll need to use a sentry (e.g. NSR or http://www.capmedia.fr/mgall).

A "sentry"?  I'll have a look at your web page pointer. Thanks.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca
 
Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------



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

* Re: Packetfilter(7) -- Suggestions?
  1999-02-08  5:00 Packetfilter(7) -- Suggestions? Sylvain Robitaille
  1999-02-09  5:00 ` Jeffrey Mogul
  1999-02-09  5:00 ` Martin Gall
@ 1999-02-10  5:00 ` Mark Gelinas USG
  1999-02-12  5:00   ` Peter Mayne
  1999-02-16  5:00   ` Sylvain Robitaille
  2 siblings, 2 replies; 8+ messages in thread
From: Mark Gelinas USG @ 1999-02-10  5:00 UTC (permalink / raw)


syl@alcor.concordia.ca (Sylvain Robitaille) writes:

> Hello,
> 
> I've been meaning to use the packet filtering ability of DEC Unix-4.0B,
> (I will be upgrading to 4.0E in the very near future, so if there's
> something in that version that I should wait for, I'm prepared to wait).
> 
> 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.
> 
Have you looked at screend(8)?  It allows for many types of packet filtering,
and may suit your needs.  It is in the OSFINET subset.

MarkG
-- 
Mark Gelinas                         Compaq Computer Corporation
EMail: gelinas@zk3.dec.com           110 Spit Brook Road, ZKO3-3/V08
Phone: +1 (603) 884-1511             Nashua, NH 03062-2642   USA
Views expressed are my own, and not necessarily those of my employer.



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

* Re: Packetfilter(7) -- Suggestions?
  1999-02-10  5:00 ` Mark Gelinas USG
@ 1999-02-12  5:00   ` Peter Mayne
  1999-02-16  5:00   ` Sylvain Robitaille
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Mayne @ 1999-02-12  5:00 UTC (permalink / raw)


Mark Gelinas USG wrote in message ...
>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.>>
>Have you looked at screend(8)?  It allows for many types of packet
filtering,
>and may suit your needs.  It is in the OSFINET subset.

screend only interferes with packets that are being forwarded. Packets
directed to the host will not be affected by screend.

PJDM
----
Peter Mayne, Compaq Computer Corporation (Australia), Canberra, ACT
These are my opinions, and have nothing to do with Compaq.
"Good point, Kenny!"






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

* Re: Packetfilter(7) -- Suggestions?
  1999-02-10  5:00 ` Mark Gelinas USG
  1999-02-12  5:00   ` Peter Mayne
@ 1999-02-16  5:00   ` Sylvain Robitaille
  1 sibling, 0 replies; 8+ messages in thread
From: Sylvain Robitaille @ 1999-02-16  5:00 UTC (permalink / raw)


On 10 Feb 1999 16:58:36 -0500, Mark Gelinas USG
<gelinas@bismuth.zk3.dec.com> wrote:

> Have you looked at screend(8)?  It allows for many types of packet
> filtering, and may suit your needs.  It is in the OSFINET subset.

No I hadn't looked at that program, and I appreciate the suggestion, but
as Peter Mayne pointed out in a followup post, it screens forwarded
packets. I'd like to filter incoming packets to a non-gateway host.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca
 
Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------
NAME

  screend - Internet (IP) gateway screening daemon

DESCRIPTION

  The screend daemon is used in conjunction with the gateway screen
  facility to decide which IP packets should be forwarded when the
  system is acting as an IP gateway.



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

end of thread, other threads:[~1999-02-16  5:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-08  5:00 Packetfilter(7) -- Suggestions? Sylvain Robitaille
1999-02-09  5:00 ` Jeffrey Mogul
1999-02-09  5:00   ` Sylvain Robitaille
1999-02-09  5:00 ` Martin Gall
1999-02-09  5:00   ` Sylvain Robitaille
1999-02-10  5:00 ` Mark Gelinas USG
1999-02-12  5:00   ` Peter Mayne
1999-02-16  5:00   ` Sylvain Robitaille

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