Firewall, SSH, and Access Rules for Web Servers
UFW and SSH belong to the first security building blocks of a server. The snippet shows rules for network access and administrative remote access.
UFW rules for web servers
These rules limit incoming traffic, selected outgoing connections, and known address ranges.
SSH with keys and configuration
These settings establish key-based login and a clear administrative access path.
SSH commands for daily work
Jump hosts, local port forwarding, and agent forwarding belong to the most common daily access patterns.
Key points
- Access follows clear rules
- Keys protect server access
- HTTP, HTTPS, and SSH are declared explicitly in the firewall
- Block lists and logs support access protection
