Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Heisenberg may have been here.


computers / Rocksolid Nodes Help / Re: NoCem Instructions and Auto-Accept?

SubjectAuthor
* NoCem Instructions and Auto-Accept?Syber Shock
`- NoCem Instructions and Auto-Accept?Retro Guy

1
NoCem Instructions and Auto-Accept?

<f71ceeb8c4152797d174ee92c9795fec$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=394&group=rocksolid.nodes.help#394

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: NoCem Instructions and Auto-Accept?
Date: Fri, 7 Jul 2023 22:17:39 -0500
Organization: sybershock.com
Message-ID: <f71ceeb8c4152797d174ee92c9795fec$1@sybershock.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: novabbs.org;
logging-data="1695742"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Sat, 8 Jul 2023 03:17 UTC

Retro Guy:

When you rest from your latest bionic man upgrades, will you email
me instructions and that NoCem script blob and instructions? I need to
be on top of how to remove nasty or illegal messages from a RSLight
server and make sure they stay removed.

And I want to be sure my servers are honoring whatever NoCem messages
yours is sending, and how to automatically accept control messages
from arbitrary servers.

--
SugarBug | https://sybershock.com

Re: NoCem Instructions and Auto-Accept?

<248a1d0f26d8fd90ac30c7d99e07f0b9@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=395&group=rocksolid.nodes.help#395

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: NoCem Instructions and Auto-Accept?
Date: Sat, 8 Jul 2023 18:19:36 +0000
Organization: RetroBBS
Message-ID: <248a1d0f26d8fd90ac30c7d99e07f0b9@rocksolidbbs.com>
References: <f71ceeb8c4152797d174ee92c9795fec$1@sybershock.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="2628758"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.3
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$S//t9aq9i1fhZ5ghQuo8xe4li7vHfTCXUPcBVNZfDF0HtbMSuObMW
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
 by: Retro Guy - Sat, 8 Jul 2023 18:19 UTC

Syber Shock wrote:

> Retro Guy:

> When you rest from your latest bionic man upgrades, will you email
> me instructions and that NoCem script blob and instructions? I need to
> be on top of how to remove nasty or illegal messages from a RSLight
> server and make sure they stay removed.

> And I want to be sure my servers are honoring whatever NoCem messages
> yours is sending, and how to automatically accept control messages
> from arbitrary servers.

Certainly! I will list some general steps here, and email you the scripts (there are 2). The scripts will work for rslight and inn2 servers, meaning they will send the proper message for either of these pieces of software to act upon them, the message format is the same for both.

First: set 'enable_nocem' => '1' in your $config_dir/rslight.inc.php.

NoCeM requires php-gnupg. Then, in the script nocem.php, it is expected that your GNUPGHOME is $config_dir.".gnupg for the web server user (probably www-data on Debian).

Then you will need to find the signing key of NoCeM messages you wish to honor. For example, mine is here: https://www.novabbs.com/hierarchy/nocem.txt . (You can find some more keys here: https://rosalind.home.xs4all.nl/nocemreg/nocemreg.html .

Add the keys you wish to honor to your keyring (in $config_dir.".gnupg).

Now you must know where to find NoCeM messages. news.lists.filters is a common place, but there can be others. For example, I post to news.lists.filters AND rocksolid.spam. Add this or these groups to your $config_dir/spoolnews/groups.txt . Then they will be polled from your remote server, but not listed in any of your sections, just that the server may now access the messages in these groups.

Once that is done, rslight will save all NoCeM messages to a folder as they arrive. Then, on the next run of cron, nocem.php will act upon the message(s). NoCeM messages are signed, so if the signature is good (per your gnupg), rslight will attemp to delete the message(s) listed in the NoCeM messages. You can view $spooldir/log/nocem.log to see what is happening. Watch for 'Bad signature' or 'Good signature' for the first clues of any issues.

Once the message is deleted (if found), nocem.php will move the NoCeM message to either a 'processed' or 'failed' subdirectory.

This is how acting on NoCeM messages works. Hopefully I didn't miss something important, but if so please let me know.

I'll send you the two scripts I use in a bit. I originally wrote them for just my own use, so I will set variables for options and get them to you by email.

--
Retro Guy

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor