<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Peek Read Info (Posts about checklist)</title><link>https://peekread.info/</link><description></description><atom:link href="https://peekread.info/tags/checklist.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 &lt;a href="mailto:dugite-code@peekread.info"&gt;Dugite-Code&lt;/a&gt; 
&lt;a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-SA"
width="88px" height="31px" style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Wed, 14 Feb 2024 06:33:09 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Server set-up Checklist</title><link>https://peekread.info/tech/20190625-server-set-up-checklist/</link><dc:creator>Dugite-Code</dc:creator><description>&lt;p&gt;&lt;/p&gt;&lt;div class="d-flex position-relative pt-3 pb-3"&gt;
    &lt;div class="flex-shrink-0 me-3"&gt;
        &lt;img data-pagefind-meta="image[src], image_alt[alt]" style="height:89px;" src="https://peekread.info/images/2019/0625-server-set-up-checklist/image01.png" alt="Configure your linux server"&gt;
    &lt;/div&gt;
    &lt;div&gt;
        &lt;p class="mt-3"&gt;&lt;/p&gt;&lt;p&gt;I often see questions on &lt;a href="https://www.reddit.com/r/selfhosted/"&gt;/r/selfhosted&lt;/a&gt; on how to secure a server. Here is a quick checklist of things you might want to look into.&lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Follow best practices for the basics&lt;/h3&gt;
&lt;ul class="checklist"&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; &lt;a href="https://tutorials.ubuntu.com/tutorial/tutorial-how-to-verify-ubuntu"&gt;Verify your install images using gpg and sha256&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Use strong passwords, defiantly think about using a password manager like &lt;a href="https://keepass.info/" title="KeePass Password Safe is a free and open-source password manager primarily for Windows."&gt;KeePass&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Don't use the same password for root and the regular user.&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Don't run scripts/applications using sudo/su where possible.&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Learn &lt;a href="https://www.cyberciti.biz/faq/unix-linux-bsd-chmod-numeric-permissions-notation-command/"&gt;linux permissions&lt;/a&gt; to avoid using sudo/su where possible.&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Use &lt;a href="https://www.ssh.com/ssh/public-key-authentication" title="Public key authentication provides cryptographic strength that even extremely long passwords can not offer."&gt;SSH Public Keys&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Regularly Update&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Lock down the Server&lt;/h3&gt;
&lt;ul class="checklist"&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; &lt;a href="https://askubuntu.com/questions/27559/how-do-i-disable-remote-ssh-login-as-root-from-a-server"&gt;Disable root login via SSH&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Close &lt;strong&gt;all&lt;/strong&gt; unused incoming ports via &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server" title="UFW - Uncomplicated Firewall"&gt;UFW&lt;/a&gt;/iptables&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Limit outgoing ports as well as incoming using &lt;a href="https://help.ubuntu.com/community/UFW" title="UFW - Uncomplicated Firewall"&gt;UFW&lt;/a&gt;/iptables&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Watch for credential stuffing/brute force attacks with &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-protect-ssh-with-fail2ban-on-ubuntu-14-04" title="Fail2Ban is an intrusion prevention software framework that protects computer servers from brute-force attacks."&gt;Fail2ban&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Backup your configs/files&lt;/h3&gt;
&lt;ul class="checklist"&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Securely encrypted backup via &lt;a href="http://duplicity.nongnu.org/" title="Encrypted bandwidth-efficient backup using the rsync algorithm"&gt;Duplicity&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; External Backup to external drive.&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Remote backup, either via a regularly swapped out external drive or via the cload&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Set up monitoring services to let you know when something goes wrong&lt;/h3&gt;
&lt;ul class="checklist"&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Send email on &lt;a href="https://www.perturb.org/display/1191_RSYSLOG_Send_email_notifications.html"&gt;syslog message&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Set up notifications for when &lt;a href="https://www.reddit.com/r/selfhosted/comments/bqt6eu/get_notified_when_upgrades_are_available_better/"&gt;updates are available&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Monitor system critical files with &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-use-tripwire-to-detect-server-intrusions-on-an-ubuntu-vps"&gt;Tripwire&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Set up &lt;a href="https://peekread.info/tech/20190716-ssh-login-notifications-with-gotify/"&gt;ssh login notifications with gotify&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Set up &lt;a href="https://www.graylog.org/"&gt;Graylog &lt;/a&gt; or a similar system log aggregator in order to do log analysis&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;Here are a few extra things you can do to bolster your ssh security&lt;/h4&gt;
&lt;ul class="checklist"&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Use a non standard port, this stops like 80% of the dumb bots&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Enable geo-blocking on your ssh port, easy to do in &lt;a href="https://www.pfsense.org/" title="pfSense is an open source firewall/router computer software distribution based on FreeBSD."&gt;pfsense&lt;/a&gt; using the package  PFBlockerNG  or with &lt;a href="https://daenney.github.io/2017/01/07/geoip-filtering-iptables.html"&gt;iptables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Close you ssh port based on the time, will you ever really need to ssh in at 3am? Possibly&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Add 2FA using &lt;a href="https://peekread.info/tech/20190614-totp-with-ssh-google-auth/"&gt;google-authenticator-libpam&lt;/a&gt; this &lt;a href="https://2.bp.blogspot.com/-2FvyOSlV3f8/XN4qy-LbWjI/AAAAAAAAAiY/m6skYaPJodMJgKv_gxtpvWZCwWulyLfxACLcBGAs/s1600/infographic%25402x.png"&gt;should stop 99% of brute force attacks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" disabled&gt; Use something like &lt;a href="https://peekread.info/tech/20190513-fwknop/"&gt;fwknop for encrypted port knocking&lt;/a&gt; - best to avoid unencrypted port knocking using knockd&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Useful resources&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://linux.die.net/man/"&gt;Linux man pages&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.digitalocean.com/community/tutorials/"&gt;Digital Ocean tutorials&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cyberciti.biz/faq/"&gt;nixCraft tutorials&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://crontab.guru/"&gt;crontab wizard&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wiki.ubuntu.com/"&gt;Ubuntu wiki&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><category>checklist</category><category>security</category><guid>https://peekread.info/tech/20190625-server-set-up-checklist/</guid><pubDate>Mon, 24 Jun 2019 16:00:00 GMT</pubDate></item></channel></rss>