Where to start First steps track · 15 stages
Linux Labs

Security

15 articles, grouped by kind; the order follows the tracks.

Concepts 8

  • PAM: login checks, password policy and lockout

    The module stack in /etc/pam.d decides whether to let a user in, which password to accept and when to lock them out.

    grep -vpam-auth-update --enableecho

    15 min
  • Firewall — nftables / ufw

    The Linux firewall: filtering traffic with simple ufw and low-level nftables, checking the rules.

    ufw allowufw statusufw default

    6 min
  • The classic iptables firewall

    The classic Linux firewall — chains, rules, NAT, and why nftables replaced it.

    iptables -Liptables -Aiptables -I

    5 min
  • Capabilities: root split into parts

    Parts of root's rights: a process or a file gets only the one it needs, e.g. CAP_NET_BIND_SERVICE for a low port.

    grepcapshgetpcaps

    12 min
  • Service hardening: User=, ProtectSystem, NoNewPrivileges

    Unit settings that strip a service of root, system writes and new privileges; systemd-analyze security rates them.

    systemd-analyze securitysystemctl showsystemctl edit

    13 min
  • AppArmor

    Mandatory access control on Ubuntu — service profiles, enforce/complain modes.

    aa-statusjournalctl -kaa-complain

    8 min
  • TLS and certificates — openssl, the chain, verification

    A TLS certificate binds a server key to a site name; openssl reads its fields, checks the chain and issues a new one.

    opensslopenssl verifycurl --cacert

    11 min
  • WireGuard — VPN on keys

    A fast VPN on a key pair instead of passwords; the private key in wg0.conf needs permissions, like an SSH key.

    wg genkeywg-quick upwg show

    4 min

Commands 3

Services 4

  • auditd — security auditing

    Kernel-level auditing — who did what and when; watch rules and event search.

    auditctl -wauditctl -aauditctl -l

    8 min
  • sshd — the SSH server

    The OpenSSH server; edit the config with a second session open — a mistake in PermitRootLogin locks you out immediately.

    sshd -tsshd -Tsystemctl reload

    5 min
  • unattended-upgrades: security updates with no one at the keyboard

    Ubuntu's service that installs updates from allowed origins once a day on an apt timer; by default only security ones.

    systemctl list-timerscatapt-config dump

    12 min
  • fail2ban

    Log-based banning — protecting SSH and services from brute force; jails, status, unban.

    fail2ban-client statusfail2ban-client setfail2ban-regex

    7 min

Nothing found. Try a shorter query.

Loading…