1,035
edits
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Setting up an SMTP server | === [[Fail2Ban]] === | ||
Install: | |||
<pre> | |||
apt install fail2ban | |||
</pre> | |||
==== Configuration ==== | |||
Editing <code>/etc/fail2ban/jail.local</code>, using the defaults from [[Mastodon/Setup]] | |||
<syntaxhighlight lang="toml"> | |||
[DEFAULT] | |||
destemail = your@email.here | |||
sendername = Fail2Ban | |||
[sshd] | |||
enabled = true | |||
port = 22 | |||
[sshd-ddos] | |||
enabled = true | |||
port = 22 | |||
</syntaxhighlight> | |||
Then restart the service | |||
<pre> | |||
systemctl restart fail2ban | |||
</pre> | |||
== Setting up an SMTP server == | |||
By default, Linode disables SMTP ports 587 etc. This requires a manual human-facing support ticket to remove. (Done by @Jonny on Nov 25 2022) | By default, Linode disables SMTP ports 587 etc. This requires a manual human-facing support ticket to remove. (Done by @Jonny on Nov 25 2022) |