I'm posting this here because I may write a Perl NNTP proxy to do what already exists in another package. Though the joys of writing my own would be great, I would be willing to abandon this effort if there were another (easier) way to accomplish what I want. Besides, I get enough joy writing Perl at work all day long. :-)

Here is what I want to do:

I have a home network that uses a Linux host to IP masquerade a number of PCs. To the ISP I am one host, inside my house I am many.
I want to be able to restrict what Usenet groups are available, but rather than use content-based filtering, like most of the commercial products (I can handle HTTP seperately), I want to base my newsgroup filtering on a whitelist of newsgroups. This can be a hierarchy, such as alt.binaries.sounds.* or just a single group like alt.pictures.scenic. I want to do this not from the client machines on the network, but from the Linux server that is serving up IP to everybody, so that I have maximum control on how I do it.

What I want to know is this: Is there already a collection of tools that would handle this for me, or would I write an NNTP proxy in Perl and create a service for it on my MASQuerader that would represent the news service?

Currently I use IP-CHAINS to handle firewall issues, but I'm not aware that I can get the granularity with CHAINs that I want.

You thoughts, brethren, are always appreciated.

Brian - a.k.a. DrSax

In reply to NNTP filtering and whitelists by DrSax

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.