Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
hardening [2019/02/07 17:39] – [Rsyslog] admin | hardening [2024/11/30 10:22] (current) – [Managing Accounts] dani | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Hardening ====== | + | ====== Hardening |
===== Updates ===== | ===== Updates ===== | ||
Line 221: | Line 221: | ||
Usually the password and account ageing is configured in ''/ | Usually the password and account ageing is configured in ''/ | ||
- | {{:images/Hardening/users.png| User management}} | + | {{:images:users.png? |
=== PAM Modules === | === PAM Modules === | ||
Line 565: | Line 565: | ||
* Create and change into directory ('' | * Create and change into directory ('' | ||
- | < | + | < |
mkdir ca | mkdir ca | ||
cd ca | cd ca | ||
Line 674: | Line 674: | ||
The trace command is probably useful (Example for date): | The trace command is probably useful (Example for date): | ||
- | < | + | < |
autrace /bin/date | autrace /bin/date | ||
Waiting to execute: /bin/date | Waiting to execute: /bin/date | ||
Line 688: | Line 688: | ||
Using '' | Using '' | ||
- | < | + | < |
Chain INPUT (policy ACCEPT 0 packets, 0 bytes) | Chain INPUT (policy ACCEPT 0 packets, 0 bytes) | ||
num pkts bytes target | num pkts bytes target | ||
Line 711: | Line 711: | ||
A very basic example script to initialize '' | A very basic example script to initialize '' | ||
- | < | + | < |
iptables -F | iptables -F | ||
iptables -A INPUT -i lo -j ACCEPT | iptables -A INPUT -i lo -j ACCEPT | ||
Line 723: | Line 723: | ||
To delete a rule: | To delete a rule: | ||
- | < | + | < |
iptables -D INPUT 11 | iptables -D INPUT 11 | ||
</ | </ | ||
Line 729: | Line 729: | ||
To add a rule (insert): | To add a rule (insert): | ||
- | < | + | < |
iptables -I INPUT 11 | iptables -I INPUT 11 | ||
</ | </ | ||