Skip to content

Instantly share code, notes, and snippets.

View Damotron500's full-sized avatar

damotron500 Damotron500

View GitHub Profile
@Damotron500
Damotron500 / free_ports.sh
Last active May 19, 2025 12:57 — forked from hjbotha/free_ports.sh
Free ports 80 and 443 on Synology NAS
#!/bin/bash
# WARNING: Use at your own risk. Test carefully before applying in production.
# THIS SCRIPT WAS UPDATED FROM THE ORIGINAL USING CHATGPT!
# IT worked on a DS920+ as of 19th May 25.
# Updated for DSM 7.2.2 compatibility.
# This script will attempt to free up ports 80 and 443 used by the built-in nginx.
HTTP_PORT=81
HTTPS_PORT=444