My answer has nothing to do with perl, your solution is fairly easy to do with available (non - perl) tools.

Lock off NNTP masquerading, and run your own NNTP server on your masquerading box. I think every NNTP server allows you to choose the newsgroups you want to offer. In a way, every NNTP server is a proxy, since they pass messages to each other.

The only flaw with this is that you will have to store the messages on the firewall, but if you lock off the binaries groups there will probably only be a few megs per day.

Even better, some NNTP servers have a "cache on demand" function. They won't download a newsgroup until a client (program) requests it. The server then goes and fetches it from the upstream feed. My old ISP used to do this, and it worked well.

Can't remember what the programs are called, but your distro will have at least one of them.

____________________
Jeremy
I didn't believe in evil until I dated it.


In reply to Re: NNTP filtering and whitelists by jepri
in thread 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.