Router Configuration

If your Synology NAS device is on a local area network, other devices on the Internet cannot connect to it. You can set up port forwarding rules at Control Panel > External Access > Router Configuration to make your Synology NAS device accessible over the Internet.

Setting up Router

Before adding port forwarding rules, you need to set up a connection between your Synology NAS device and the router.

Note:

  • To configure port forwarding rules and assign static IP address, you need to have administrative privileges to the router.
  • Before setting up Synology NAS device's connection to an UPnP router, make sure DSM has successfully retrieved the external IP address of your Synology NAS (at Control Panel > External Access > DDNS). If not, please check the network and firewall settings of your Synology NAS device and the UPnP router.

To set up Synology NAS device's connection to your router:

  1. Click Set up router to launch the setup wizard. Click Start and DSM will begin by testing the following network components/settings before proceeding to the next step.
    • Network interface
    • Gateway connection
    • Internet connection
    • DNS server
    • Network environment
    • Router information
  2. Depending on the type of your router, do one of the following:
    • If your UPnP router has been tested to be compatible with Synology NAS device, click Apply when you see a summary of the router's information. Your Synology NAS device's connection to the router is then successfully set up.
    • If your UPnP router has not been tested to be compatible with Synology NAS device, do either of the following:
      • To automatically set up connection to the router and perform a compatibility test, choose Quick and click Next.
        • If the router is tested to be compatible with Synology NAS device's router configuration service, click Done to set up your Synology NAS device's connection to the router. You can tick the checkbox to send the test report to help Synology update the router compatibility database.
        • If the router is tested to be incompatible with Synology NAS device's router configuration service, you can still configure port forwarding rules on the router's user interface. Please contact the manufacturer of your router if you have any questions concerning its configuration. Click Close to leave the setup wizard.
      • To manually set up connection to the router, choose Advanced and click Next. Follow the steps below:
        1. Choose your router from the Router drop-down menu. If you cannot find your router here, you can still configure port forwarding rules on the router's user interface.
        2. Set up protocol and port of your router. The protocol and port vary depending on the model of your router. If you cannot connect using the default Protocol (HTTP) and Port (80), refer to the documentation that comes with your router for correct settings.
        3. If your router requires a custom account, tick Use custom account and fill in the Account and Password fields.
        4. Click Done to finish.

Managing Port Forwarding Rules

Port forwarding rules can specify destination ports of your Synology NAS that will receive packages from specific ports of your router.

If your Synology NAS connects to the Internet via a router, please click Create to open the port forwarding setup wizard.

There are two ways to add port forwarding rules:

  • If you want to create port forwarding rules for system services (for example, FTP, Web Station, etc), select Built-in application.
  • If you want to create port forwarding rules for other services, select Custom port.

You can use the following syntax to specify port numbers and range:

  • Use “-” to describe port range, for example: 6881-6890.
  • Use “,” to separate ports, for example: “21,22”, “21,55536-55663”.

Note:

  • Each port of the gateway router can be used for one forwarding rule only. Using a router port for two or more rules will cause conflicts, and a warning message will appear on the screen. You need to set another port in the rule to avoid conflicts.
  • Some routers don't allow using custom ports for system services forwarding.

To save rules:

Click Save after creating the rules. Otherwise, the rules won't be applied.

After saving the rules, you might need to wait for a few minutes before the rules start working, depending on the models of your routers.

To test whether your rules are working or not:

Choose the rules you want to test and click Test Connection. The result will be displayed in the Connection Test Result column.

Setting up Router
Managing Port Forwarding Rules