60 Mins
3. Network Stack & Service Hardening
Securing the Network Interface
Hardening the OS network stack involves sysctl tuning and strict firewall ingress/egress rules.
Text
# Disable IP forwarding if not a router net.ipv4.ip_forward = 0 # Ignore ICMP redirects net.ipv4.conf.all.accept_redirects = 0
- Disabling unnecessary network protocols (IPv6, DCCP, SCTP)
- Implementing stateful packet inspection with nftables
- Hardening SSH configurations (disabling root login, password auth)
Knowledge Check
Ready to test your understanding of 3. Network Stack & Service Hardening?