• configuring cleanfeed

    From jdanield@21:1/5 to All on Thu Dec 23 19:09:19 2021
    Hello,

    I now have a reason ably working news server (dodin.fr.nf), but still a
    lot of things to check. Here cleanfeed.

    at the start of the story, one week ago, I had

    ctlinnd mode
    (...)
    Perl filtering enabled

    but now I have

    news@ns507557:/etc/news> ctlinnd mode
    Server running
    Allowing remote connections
    Parameters c 10 i 50 (1) l 5000000 o 1010 t 300 H 2 T 60 X 0 normal
    specified
    Not reserved
    Readers follow enabled
    *Perl filtering disabled*

    and

    news@ns507557:/etc/news> ctlinnd reload filter.perl 'test'
    ctlinnd: Failed to define filter_art

    when may I look? logs are mostly empty

    thanks
    jdd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Retro Guy@21:1/5 to jdanield on Thu Dec 23 15:46:32 2021
    On Thu, 23 Dec 2021 19:09:19 +0100
    jdanield <jdd@dodin.org> wrote:

    Hello,

    I now have a reason ably working news server (dodin.fr.nf), but still a
    lot of things to check. Here cleanfeed.

    news@ns507557:/etc/news> ctlinnd reload filter.perl 'test'
    ctlinnd: Failed to define filter_art

    when may I look? logs are mostly empty

    Take a look at the cleanfeed instructions: https://www.mixmin.net/cleanfeed/install.html

    You should only be editing cleanfeed.local with any changes you make, but I would just do a fresh install of cleanfeed, then make sure it's working before making any changes.

    You can check your cleanfeed.local file after any changes you make with:
    perl -wc /usr/local/news/cleanfeed/etc/cleanfeed.local
    or wherever you have that file.

    --
    Retro Guy <retroguy@novabbs.com>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jdd@21:1/5 to All on Fri Dec 24 07:55:18 2021
    Le 23/12/2021 à 23:46, Retro Guy a écrit :

    Take a look at the cleanfeed instructions: https://www.mixmin.net/cleanfeed/install.html

    well... I read them at least three time, but this is as clear as mud :-(


    You should only be editing cleanfeed.local with any changes you make,

    I have no cleanfeed.local, only a sample file with code content and:

    # Before using any of this code please *think*, and be sure you really
    # understand what it does.

    but I don't understand anything in it :-(

    but I would just do a fresh install of cleanfeed, then make sure it's
    working before making any changes.

    You can check your cleanfeed.local file after any changes you make with:
    perl -wc /usr/local/news/cleanfeed/etc/cleanfeed.local
    or wherever you have that file.


    news@ns507557:/etc/news/cleanfeed-master> perl -wc cleanfeed.local.sample
    Name "main::localfeed" used only once: possible typo at
    cleanfeed.local.sample line 45.
    Name "main::localpost" used only once: possible typo at
    cleanfeed.local.sample line 101.
    Name "main::lines" used only once: possible typo at
    cleanfeed.local.sample line 205.
    Name "main::Moderated" used only once: possible typo at
    cleanfeed.local.sample line 205.
    cleanfeed.local.sample syntax OK

    but with "Perl filtering disabled" it most probably don't works.

    just now I fail to understand how I have disabled perl when it worked at
    first :-(

    thanks
    jdd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Fri Dec 24 10:09:36 2021
    Bonjour Jean-Daniel,
    Take a look at the cleanfeed instructions:
    https://www.mixmin.net/cleanfeed/install.html

    well... I read them at least three time, but this is as clear as mud :-(

    And did you try to follow this great install guide in French?
    There's a section dedicated to Cleanfeed:


    https://git.alphanet.ch/gitweb/?p=inn-install/.git;a=blob_plain;f=README.html;hb=HEAD#installer-cleanfeed

    If something is not clear, do not hesitate to provide suggestions to
    improve it (in the fr.comp.usenet.serveurs newsgroup).

    It also contains useful information about how to set up:
    - newsfeeds
    - innfeed.conf
    - incoming.conf

    --
    Julien ÉLIE

    « La vie n'est qu'un tissu de coups de poignard qu'il faut savoir boire
    goutte à goutte. »

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jdd@21:1/5 to All on Fri Dec 24 09:23:13 2021
    Le 23/12/2021 à 19:09, jdanield a écrit :

    *Perl filtering disabled*


    solved...

    details here:

    http://dodin.me/wiki/pmwiki.php?n=Doc.ConfigurerINN-2021#toc-12

    summary:

    * perl is allowed *only* if filter_innd.pl exists.

    there is a stub one by default, so perl is enabled, but as long as the
    default files are moved to an other folder it stopped working.

    * in the cleanfeed folder, there is a filter_nnrpd.pl file, but no filter_innd.pl... I didn't figure than the filter_innd.pl was merely "cleanfeed"

    with the two links

    news@ns507557:/etc/news/filter> ll
    total 8
    lrwxrwxrwx 1 news news 36 24 déc. 08:52 filter_innd.pl -> /etc/news/cleanfeed-master/cleanfeed
    lrwxrwxrwx 1 news news 42 22 déc. 09:53 filter_nnrpd.pl -> /etc/news/cleanfeed-master/filter_nnrpd.pl

    all seems to work again.

    It's probably the same problem that prevent me to have a working pyclean filter. But as long as I have cleanfeed, I will stay with it.

    thanks for every people taking the time to help me :-)

    happy Christmas
    jdd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jdd@21:1/5 to All on Fri Dec 24 11:18:06 2021
    Le 24/12/2021 à 10:09, Julien ÉLIE a écrit :

    And did you try to follow this great install guide in French?
    There's a section dedicated to Cleanfeed:

    yes, I did, but the various official or semi official docs do not give
    exactly same indications :-(

    for example I have no etc folder in any cleanfeed archive, nor
    cleanfeed.local anywhere

    $config_dir = '/etc/news/filter/cleanfeed/etc';

    and news.notice is empty

    I also don't like working as root because I fear permissions problems.

    inncheck -a is ok (no message)

    (see later for the end of your message :-)

    thanks
    jdd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?yamo'?=@21:1/5 to All on Sat Dec 25 11:53:57 2021
    Hi,

    jdd a écrit :
    Le 24/12/2021 à 10:09, Julien ÉLIE a écrit :
    And did you try to follow this great install guide in French?
    There's a section dedicated to Cleanfeed:
    yes, I did, but the various official or semi official docs do not give exactly same indications :-(

    There is on eyrie and in a man (of inn.conf?) a table of the variable
    paths...

    for example I have no etc folder in any cleanfeed archive, nor cleanfeed.local anywhere

    $config_dir = '/etc/news/filter/cleanfeed/etc';

    You don't have the entire cleanfeed (there is a complete install archive and
    an update archive...).

    and news.notice is empty

    It is a syslog configuration to add (normally by default but not always...)

    I will look at my servers to look at my non-standard configuration...

    I also don't like working as root because I fear permissions problems.

    There is some tricks to block access to root's scripts but not so simple but documented...

    If there's a bug on the doc please discuss on the french usenet.serveurs
    group.

    --
    Stéphane

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jdanield@21:1/5 to All on Sat Dec 25 13:27:19 2021
    Le 25/12/2021 à 12:53, yamo' a écrit :

    for example I have no etc folder in any cleanfeed archive, nor
    cleanfeed.local anywhere

    $config_dir = '/etc/news/filter/cleanfeed/etc';

    You don't have the entire cleanfeed (there is a complete install archive and an update archive...).

    nothing here:

    https://github.com/crooks/cleanfeed/

    from

    https://www.mixmin.net/cleanfeed/install.html

    there no etc on github (neither in any tar.gz I could download), may be
    the repo changed since the doc was written?

    the content advertised here

    https://www.mixmin.net/cleanfeed/install.html

    is not in etc but in "samples"

    thanks
    jdd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Sat Dec 25 16:02:48 2021
    Bonjour Jean-Daniel,

    for example I have no etc folder in any cleanfeed archive, nor
    cleanfeed.local anywhere

    $config_dir = '/etc/news/filter/cleanfeed/etc';

    You don't have the entire cleanfeed (there is a complete install
    archive and
    an update archive...).

    nothing here:

    https://github.com/crooks/cleanfeed/

    from

    https://www.mixmin.net/cleanfeed/install.html

    All of the files for "cleanfeed/etc" are present in the "samples"
    directory of the above GitHub link. You can just download them from there.

    On my news server:

    ~/cleanfeed% ls -l
    -rwxr-xr-x 1 news news 95K 4 déc. 12:49 cleanfeed*
    drwxr-xr-x 2 news news 4,0K 21 nov. 10:24 etc/
    drwxr-xr-x 2 news news 4,0K 20 sept. 09:50 logs/

    ~/cleanfeed% ls -l etc
    -rw-r--r-- 1 news news 265 20 sept. 10:01 bad_adult_paths
    -rw-r--r-- 1 news news 529 20 sept. 10:02 bad_body
    -rw-r--r-- 1 news news 419 20 sept. 10:02 bad_cancel_paths
    -rw-r--r-- 1 news news 604 20 sept. 10:02 bad_from
    -rw-r--r-- 1 news news 261 20 sept. 10:02 bad_groups
    -rw-r--r-- 1 news news 265 20 sept. 10:02 bad_hosts
    -rw-r--r-- 1 news news 1,2K 20 sept. 10:02 bad_paths
    -rw-r--r-- 1 news news 598 20 sept. 10:02 bad_subject
    -rw-r--r-- 1 news news 619 20 sept. 10:02 bad_url
    -rw-r--r-- 1 news news 8,7K 20 sept. 10:06 cleanfeed.local



    I've set:

    $config_dir = '/home/news/cleanfeed/etc';

    but you can of course put the whole stuff elsewhere (even in the
    bin/filter directory of INN, where filter_innd.pl is).



    is not in etc but in "samples"

    Yes, take the files from there.
    I agree the install guide should speak of that directory instead of
    "etc". I've just reported the issue:
    https://github.com/crooks/cleanfeed/issues/4

    --
    Julien ÉLIE

    « Ceux qui croient être arrivés n'ont jamais eu l'intention d'aller bien
    loin. »

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jdd@21:1/5 to All on Sat Dec 25 18:10:22 2021
    Le 25/12/2021 à 16:02, Julien ÉLIE a écrit :

    All of the files for "cleanfeed/etc" are present in the "samples"
    directory of the above GitHub link. You can just download them from there

    I already have them in the cleanfeed repo, so may be

    ln -s samples/ etc

    is enough?


    I've set:

    $config_dir = '/home/news/cleanfeed/etc';

    seems to be default in filter_innd.pl (or cleanfeed)

    I see in the "badurl" folder two python scripts do you know what they
    are for?

    thanks
    jdd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Sat Dec 25 18:34:58 2021
    Bonsoir Jean-Daniel,

    I already have them in the cleanfeed repo, so may be

    ln -s samples/ etc

    is enough?

    mv samples etc
    would also work and be cleaner than adding a symlink.


    I've set:

    $config_dir = '/home/news/cleanfeed/etc';

    seems to be default in filter_innd.pl (or cleanfeed)

    I see in the "badurl" folder two python scripts do you know what they
    are for?

    I think it is the script Steve used to generate the global
    bad_hosts_central file as described in:
    http://www.mixmin.net/cleanfeed/bad_hosts_central.html

    Nevertheless, this file is no longer generated.
    But don't worry, you do not need bad_hosts_central nor these Python
    scripts to make Cleanfeed work.

    --
    Julien ÉLIE

    « Ceux qui croient être arrivés n'ont jamais eu l'intention d'aller bien
    loin. »

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)