NASutils Knowledge BaseUnofficialPolski

How do I set up QuFirewall on a QNAP?

Install QuFirewall from App Center, choose the basic profile and the country, then add only the allow rules you need: for the home network, the VPN's ports and the VPN clients' network. Rules work from the top. The last one rejects everything else.

Topic: Network

Before you start

Propose a change

Leave yourself a way in for mistakes: work from the home network and have a second administrator account. Write down which services are really reachable from the internet.

  1. volume, wolumin
    A part of a pool, or of a RAID, with a filesystem, where shared folders are.
    In App Center install QuFirewall. The app needs a default volume.
  2. On first start choose a profile. For a home or a small company choose "Basic protection": it lets in the country you select; check in the profile that it also has a rule for your local network. "Include subnets only" lets in only the local network, and "Restricted security" only some ports.
  3. firewall, zapora sieciowa
    Rules that let network connections through or refuse them.
    Choose the country the NAS is in and turn the firewall on.
  4. Open the active profile and check that the global rules for applications and IP access protection are at the top. QNAP recommends that they come before yours.
  5. Below the global rules and above the rule that rejects, add allow rules:
    • the VPN's port, UDP, from any source (from the settings of QVPN Service, 443 or 39443, for example);
    • the VPN clients' network (10.6.0.0/24 for QBelt by default; check VPN client IP pool in QVPN Service), all ports;
    • the website's ports, TCP 80 and 443, only if the NAS serves one;
    • other ports one by one, with a note of what they are for.
  6. The router's address and your home network should be let in by the local network rule.
  7. Apply the profile.

Check that it worked

Propose a change

From a phone on mobile data, connect over the VPN and open the panel at its local address. Then, without the VPN, try to open the panel at the public address: it should not open. Rejected connections appear in the firewall's events.

Before you limit access to one country

Propose a change

NAT
The router's translation between addresses of the home network and the public address.

A rule with one country also rejects legitimate traffic. A website behind Cloudflare or another proxy receives connections from that service's addresses, which GeoIP assigns to other countries, over IPv6 too. For such services allow the proxy's addresses and not a country. Region rules may not work with NAT loopback, when the firewall does not see the real source.

What not to do

Propose a change

  • Do not add a rule that allows everything. The firewall then protects nothing.
  • Do not forward ports on the router that you do not need. The firewall does not replace closing them.
  • SSH
    An encrypted connection to a command line on another computer.
    Do not open the panel, SSH or Telnet to the internet. Come in over the VPN.
  • Do not move to high port numbers in place of a firewall. Scanners find high ports as well.
  • firmware, oprogramowanie sprzętowe
    QNAP's word for the system of the NAS, QTS or QuTS hero. It updates automatically or from an image you upload; the NAS restarts to finish the update.
    Do not stop updating the firmware and apps. The firewall does not replace that.

Checked: 25 November 2026, against QNAP's documentation. We did not run QuFirewall; profile names are in English, as in the documentation.

All questions