Synology: Show Currently Open Ports And Their Status

Synology Show Currently Open Ports And Their Status

Did you know you can view your currently open ports on your Synology NAS and monitor their status by using Task Scheduler? And you don’t need terminal for this. In computing, netstat (network statistics) is a command-line network utility that displays network connections and a number of network interface and some network protocol statistics. It is available on Linux, DSM (based on Linux) and other operating systems. Today I will teach you how to easily monitor open ports on your NAS and their status.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Activate email notifications. Go to Control Panel / Notification / Email / Check Enable email notifications and add your email credentials. After that select your current provider (in my case it’s Gmail). Click Apply. If you have already activated Notification via Email on your Synology NAS, skip this STEP.

1 Synology NAS Show Currently Open Ports And Their Status

  • STEP 3

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.

2 Synology NAS Show Currently Open Ports And Their Status

  • STEP 4

Once you click on User-defined script, a new window will open. Follow the instructions below:

  1. General: In the Task field type in “Port Status“. Uncheck the “Enabled” option. Select your current NAS user.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that click OK.
netstat -an

3 Synology NAS Show Currently Open Ports And Their Status

  • STEP 5

After you click OK on STEP 4, select your “Port Status” Task then click the “Run” tab. You will be asked to run Port Status – click Yes. Follow the instructions in the image below.

4 Synology NAS Show Currently Open Ports And Their Status Run

  • STEP 6

Done! Now check your email. You will have all the open ports on your Synology NAS and their status in one email.

5 Synology NAS Show Currently Open Ports And Their Status

Note: In the email you will also see all the listening ports of your current Docker containers.
Note: You can also use terminal, but I prefer the Task Scheduler method so I can have a copy of everything in my email.
Note: You can also use the command line netstat -nap instead netstat -an on STEP 4 but you need to select “root” user instead of the current NAS user. You will get better details via email.

This post was updated on Sunday / August 28th, 2022 at 3:02 PM