🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by phamnuwensa Wed, 05 Dec 2018 15:29
INN: Logging username->msgid mappings
#87894
Author: phamnuwensa
Date: Wed, 05 Dec 2018 15:29
9 lines
1393 bytes
I've set up an INN server to run some local groups. Users are authenticated with 'ckpasswd -f'. There's no peering.

Is there a way to make nnrpd log the authenticated username and the MsgID somewhere when a user posts an article? I don't expect problems but if somebody decides it would be funny to spoof other posters, I'd like to know which user is doing it.

Thanks

nuwen

Re: INN: Logging username->msgid mappings
#87895
Author: Aioe
Date: Thu, 06 Dec 2018 12:51
16 lines
1469 bytes
Il Wed, 05 Dec 2018 07:29:57 -0800, phamnuwensa ha scritto:

> Is there a way to make nnrpd log the authenticated username and the
> MsgID somewhere when a user posts an article? I don't expect problems
> but if somebody decides it would be funny to spoof other posters, I'd
> like to know which user is doing it.

yes, you can

nnrpd can be configured to run a perl or python script when an user posts 
a message, that script is able to write file inside your newsspool 
directory.

Read hook-perl, a file inside inn2 package.

Re: INN: Logging username->msgid mappings
#87897
Author: phamnuwensa
Date: Thu, 06 Dec 2018 15:41
21 lines
1947 bytes
On Thursday, December 6, 2018 at 5:51:32 AM UTC-7, Aioe wrote:
> Il Wed, 05 Dec 2018 07:29:57 -0800, phamnuwensa ha scritto:
> 
> > Is there a way to make nnrpd log the authenticated username and the
> > MsgID somewhere when a user posts an article? I don't expect problems
> > but if somebody decides it would be funny to spoof other posters, I'd
> > like to know which user is doing it.
> 
> yes, you can
> 
> nnrpd can be configured to run a perl or python script when an user posts 
> a message, that script is able to write file inside your newsspool 
> directory.
> 
> Read hook-perl, a file inside inn2 package.

Thank you, I will look into that. I also found and enabled the
"addinjectionpostingaccount" flag in inn.conf, which is a first level
of information.

Re: INN: Logging username->msgid mappings
#87898
Author: Julien ÉLIE
Date: Thu, 06 Dec 2018 20:24
30 lines
2986 bytes
Hi,

> I've set up an INN server to run some local groups. Users are
> authenticated with 'ckpasswd -f'. There's no peering.
> 
> Is there a way to make nnrpd log the authenticated username and the
> MsgID somewhere when a user posts an article? I don't expect problems
> but if somebody decides it would be funny to spoof other posters, I'd
> like to know which user is doing it.

In addition to Paolo's suggestion which would permit logging what you want in the same line, also note that the news.notice log file already contains the relevant information (accross several lines).
For instance, the logs of one of my connection:

21:20 news@trigo /var/log/news/OLD% zgrep 23198 news.notice.14.gz
Nov 22 14:18:36 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr (2a01:cb08:a7:7500:c4ac:f95c:9202:8217) connect - port 563
Nov 22 14:18:36 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr user julien
Nov 22 14:18:36 news nnrpd[23198]: SERVER perl filtering enabled
Nov 22 14:18:36 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr post ok <pt6abc$mku$1@news.trigofacile.com>
Nov 22 14:23:43 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr posts received 1 rejected 0
Nov 22 14:23:43 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr times user 0.068 system 0.016 idle 0.009 elapsed 320.186
Nov 22 14:23:43 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr time 320191 idle 306944(9) nntpwrite 3(11) 

=> You can see that I authenticated myself as "julien" and posted <pt6abc$mku$1@news.trigofacile.com>.

-- 
Julien ÉLIE

« Il faut mettre un frein à l'immobilisme. »

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads