[Synology] Basic NAS security

If after launching the following command, you see on your Synology NAS something like the above lines, you might apply these simple configuration security rules.

# echo -e “HEAD / HTTP/1.0\r\n\r\n” | nc -v localhost 80

HTTP/1.1 302 Found
Date: Fri, 21 Dec 2012 12:12:12 GMT
Server: Apache/6.1.12 (Unix) mod_ssl/4.8.13 OpenSSL/6.8.9h PHP/8.3.10 BruceWillisWillSaveMe/12.21.2012
X-Powered-By: PHP/8.3.10
Location: http://:31337/
Vary: Accept-Encoding
Connection: close
Content-Type: text/html

  1. ServerTokens

    First, edit at least (might affect other files) the following files:

    • conf/extra/httpd-default.conf-webdav
    • conf/extra/httpd-default.conf-sys
    • conf/extra/httpd-default.conf-user

    Replace (line 55 for my DSM version)

    ServerTokens Full


    ServerTokens Prod

  2. ServerSignature

    Second, edit the same files and replace (line 65 for my DSM version)

    ServerSignature On


    ServerSignature Off

  3. expose_php

    Third, edit the file /usr/syno/etc/php.ini and replace (line 436 for my DSM version)

    expose_php = On


    expose_php = Off

  4. Disable admin account

    Create a new account (my_new_admin_account_you_wont_find) with administator privileges.
    Log in with this new administrator account.
    Disable the good old ‘admin’ account.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s