Article View: news.admin.peering
Article #1760Re: Onion peering between INN and Rocksolid Light
From: Syber Shock
Date: Thu, 28 Sep 2023 13:16
Date: Thu, 28 Sep 2023 13:16
83 lines
3300 bytes
3300 bytes
On Thu, 28 Sep 2023 04:46:51 -0700 Retro Guy <retroguy@novabbs.com> wrote: > > I configure the rslight cron job to synchronize at randomized > > intervals. Ultimately my strategy is to check and synchronize > > articles at random intervals from ten to thirty minutes over a tor > > hidden onion circuit. I would expect a remote peer to do similarly. > > Randomization of the synchronization times is a hedge against > > traffic analysis. Delays of a few minutes before forwarding buffers > > connecting clients from message timing correlation. It is not > > perfect but it helps and it increases the cost for eavesdroppers. > > This should be simple with just shell scripts. My setup avoids crontab and uses systemd init to spawn. Maybe a little cleanup for install path vars would make this useful. $ cat /etc/systemd/system/rslight-cron.service [Unit] Description=rslight nntp cron After=network.target StartLimitIntervalSec=0 [Service] User=root Type=simple TimeoutSec=0 WorkingDirectory=/home/rslight/cron PIDFile=/var/run/rslight_cron_service.pid ExecStart=/bin/bash /home/rslight/cron/rslight.cron.bash KillMode=process Restart=always RestartSec=31s [Install] WantedBy=multi-user.target $ cat /home/rslight/cron/rslight.cron.bash #!/usr/bin/env bash # Cron loop randomizer for Rocksolid Light. # Adjust the paths to match your installation. # Bundled with a systemd service control script. counter="0" crondir="/home/rslight/cron" cronlog="$crondir/rslight.cron.log" timelog="$crondir/rslight.cron.timestamp.log" while : do # logging timestamp for begin of cron job date -u >> "$timelog counter="$((counter+1))" echo "$counter" >> "$cronlog" cd /var/www/public_html/forum/spoolnews bash -lc "php8.2 /home/rslight/config/scripts/cron.php" >> "$cronlog" echo "--------" >> "$cronlog" echo "" >> "$cronlog" # timestamp for end of cron job in timestamp only file date -u >> "$timelog" echo "--------" >> "$timelog" # rotate log files tail -c 65536 "$cronlog" > "$cronlog.temp" mv "$cronlog.temp" "$cronlog" tail -c 65536 "$timelog" > "$timelog.temp" mv "$timelog.temp" "$timelog" # random 10-30 minute pause in loop randpoz="$RANDOM$RANDOM" randpoz="$((randpoz%1200))" randpoz="$((randpoz+600))" sleep "$randpoz.600600600600600600" # easy to see with ps grep done # while true -- 3883@sugar.bug | web: sybershock.com | news: alt.sources.crypto
Technical Details
Message-ID:
<e8a3b5385147fd7d17dcf5ee7a5cea12$1@sybershock.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<d83b562a8550022aedd8f931155aa27f$1@sybershock.com> <20230928044651.46ce60af3b448fae056cc77f@novabbs.com>Show Full Headers
Complete Article Headers
Message-ID: <e8a3b5385147fd7d17dcf5ee7a5cea12$1@sybershock.com> Subject: Re: Onion peering between INN and Rocksolid Light Date: Thu, 28 Sep 2023 08:16:32 -0500 From: Syber Shock <admin@sybershock.com> References: <d83b562a8550022aedd8f931155aa27f$1@sybershock.com> <20230928044651.46ce60af3b448fae056cc77f@novabbs.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.admin.peering,rocksolid.nodes.help,alt.privacy.anon-server Organization: sybershock.com Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: novabbs.org; logging-data="138848"; mail-complaints-to="usenet@novabbs.org"; posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";