mirror of
https://github.com/imthenachoman/How-To-Secure-A-Linux-Server.git
synced 2025-12-06 17:22:53 +01:00
minor fixes
This commit is contained in:
42
README.md
42
README.md
@@ -44,7 +44,7 @@ An evolving how-to guide for securing a Linux server that, hopefully, also teach
|
|||||||
- [logwatch - system log analyzer and reporter](#logwatch---system-log-analyzer-and-reporter)
|
- [logwatch - system log analyzer and reporter](#logwatch---system-log-analyzer-and-reporter)
|
||||||
- [ss - Seeing Ports Your Server Is Listening On](#ss---seeing-ports-your-server-is-listening-on)
|
- [ss - Seeing Ports Your Server Is Listening On](#ss---seeing-ports-your-server-is-listening-on)
|
||||||
- [Lynis - Linux Security Auditing](#lynis---linux-security-auditing)
|
- [Lynis - Linux Security Auditing](#lynis---linux-security-auditing)
|
||||||
- [CIS-CAT (WIP)](#cis-cat-wip)
|
|
||||||
- [The Miscellaneous](#the-miscellaneous)
|
- [The Miscellaneous](#the-miscellaneous)
|
||||||
- [Configure Gmail As MTA With Implicit TLS](#configure-gmail-as-mta-with-implicit-tls)
|
- [Configure Gmail As MTA With Implicit TLS](#configure-gmail-as-mta-with-implicit-tls)
|
||||||
- [Separate iptables Log File](#separate-iptables-log-file)
|
- [Separate iptables Log File](#separate-iptables-log-file)
|
||||||
@@ -60,7 +60,7 @@ An evolving how-to guide for securing a Linux server that, hopefully, also teach
|
|||||||
|
|
||||||
### Guide Objective
|
### Guide Objective
|
||||||
|
|
||||||
This guide's purpose is to teach you how to secure a Linux server.
|
This guides purpose is to teach you how to secure a Linux server.
|
||||||
|
|
||||||
There are a lot of things you can do to secure a Linux server and this guide will attempt to cover as many of them as possible. More topics/material will be added as I learn, or as folks [contribute](#contributing).
|
There are a lot of things you can do to secure a Linux server and this guide will attempt to cover as many of them as possible. More topics/material will be added as I learn, or as folks [contribute](#contributing).
|
||||||
|
|
||||||
@@ -105,6 +105,7 @@ There are many guides provided by experts, industry leaders, and the distributio
|
|||||||
- https://seifried.org/lasg/
|
- https://seifried.org/lasg/
|
||||||
- https://news.ycombinator.com/item?id=19178964
|
- https://news.ycombinator.com/item?id=19178964
|
||||||
- https://wiki.archlinux.org/index.php/Security - many folks have also recommended this one
|
- https://wiki.archlinux.org/index.php/Security - many folks have also recommended this one
|
||||||
|
- https://securecompliance.co/linux-server-hardening-checklist/
|
||||||
|
|
||||||
([Table of Contents](#table-of-contents))
|
([Table of Contents](#table-of-contents))
|
||||||
|
|
||||||
@@ -125,8 +126,13 @@ There are many guides provided by experts, industry leaders, and the distributio
|
|||||||
- [ ] disk encryption
|
- [ ] disk encryption
|
||||||
- [ ] Antivirus
|
- [ ] Antivirus
|
||||||
- [ ] Rkhunter and chrootkit
|
- [ ] Rkhunter and chrootkit
|
||||||
|
- http://www.chkrootkit.org/
|
||||||
|
- http://rkhunter.sourceforge.net/
|
||||||
|
- https://www.cyberciti.biz/faq/howto-check-linux-rootkist-with-detectors-software/
|
||||||
|
- https://www.tecmint.com/install-rootkit-hunter-scan-for-rootkits-backdoors-in-linux/
|
||||||
- [ ] shipping/backing up logs - https://news.ycombinator.com/item?id=19178681
|
- [ ] shipping/backing up logs - https://news.ycombinator.com/item?id=19178681
|
||||||
- [ ] Tripwire - https://news.ycombinator.com/item?id=19180856
|
- [ ] Tripwire - https://news.ycombinator.com/item?id=19180856
|
||||||
|
- [ ] CIS-CAT - https://learn.cisecurity.org/cis-cat-landing-page
|
||||||
|
|
||||||
([Table of Contents](#table-of-contents))
|
([Table of Contents](#table-of-contents))
|
||||||
|
|
||||||
@@ -859,19 +865,19 @@ NTP stands for Network Time Protocol. In the context of this guide, an NTP clien
|
|||||||
|
|
||||||
**Example `/etc/ntp.conf`**:
|
**Example `/etc/ntp.conf`**:
|
||||||
|
|
||||||
```
|
> ```
|
||||||
driftfile /var/lib/ntp/ntp.drift
|
> driftfile /var/lib/ntp/ntp.drift
|
||||||
statistics loopstats peerstats clockstats
|
> statistics loopstats peerstats clockstats
|
||||||
filegen loopstats file loopstats type day enable
|
> filegen loopstats file loopstats type day enable
|
||||||
filegen peerstats file peerstats type day enable
|
> filegen peerstats file peerstats type day enable
|
||||||
filegen clockstats file clockstats type day enable
|
> filegen clockstats file clockstats type day enable
|
||||||
restrict -4 default kod notrap nomodify nopeer noquery limited
|
> restrict -4 default kod notrap nomodify nopeer noquery limited
|
||||||
restrict -6 default kod notrap nomodify nopeer noquery limited
|
> restrict -6 default kod notrap nomodify nopeer noquery limited
|
||||||
restrict 127.0.0.1
|
> restrict 127.0.0.1
|
||||||
restrict ::1
|
> restrict ::1
|
||||||
restrict source notrap nomodify noquery
|
> restrict source notrap nomodify noquery
|
||||||
pool time.nist.gov iburst # added by user on 2019-03-09 @ 10:23:35
|
> pool time.nist.gov iburst # added by user on 2019-03-09 @ 10:23:35
|
||||||
```
|
> ```
|
||||||
|
|
||||||
1. Restart ntp:
|
1. Restart ntp:
|
||||||
|
|
||||||
@@ -2361,11 +2367,11 @@ From [https://cisofy.com/lynis/](https://cisofy.com/lynis/):
|
|||||||
|
|
||||||
This will scan your server, report its audit findings, and at the end it will give you suggestions. Spend some time going through the output and address gaps as necessary.
|
This will scan your server, report its audit findings, and at the end it will give you suggestions. Spend some time going through the output and address gaps as necessary.
|
||||||
|
|
||||||
([Table of Contents](#table-of-contents))
|
|
||||||
|
|
||||||
### CIS-CAT (WIP)
|
|
||||||
|
|
||||||
WIP
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
([Table of Contents](#table-of-contents))
|
([Table of Contents](#table-of-contents))
|
||||||
|
|
||||||
|
|||||||
2693
README_draft.md
2693
README_draft.md
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user