Corrections to the tor and email guides #312
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Tor guide makes people download a gpg key to
/usr/share/keyrings/tor-archive-keyring.gpgand request signatures from that key for the repository. It also recommends installing thedeb.torproject.org-keyringpackage, which should update this key before it expires.However, this package actually writes to
/usr/share/keyrings/deb.torproject.org-keyring.gpg. This causes people to get errors when the key they downloaded expires, and the configuration is still looking at that key, not the one that is automatically updated.This pull request corrects this issue, which has already been fixed in the official documentation of the Tor project 1.
On the other hand, the Fail2Ban configuration in the hardening section of the guide to setting up a email server will not work on Debian 12 or other recent Linux distributions that use systemd for the following reasons:
The Postfix SASL and RBL filters have been merged with the Postfix filter and no longer exist separately in Fail2Ban 2.
In modern systemd-based distributions, such as recent versions of Ubuntu, Debian, Archlinux, RHEL, Fedora, etc, services such as SSH, Postfix and Dovecot are logged in the systemd journal 3.
Footnotes
Issue 368 ↩
NethServer Forum ↩
Issue 3292 ↩