π UFW Security Template
Install UFW (if not already installed)
Set default policies
Allow SSH access (default port 22)
If you use a custom SSH port (e.g. 2222), use:
Block outgoing connections to private/internal IP ranges
This prevents data exfiltration and limits lateral movement in case of compromise.
Make sure your node doesnβt rely on peers or services in these private IP ranges.
Enable UFW
Last updated