Good nas security means a NAS should not accept administration traffic directly from the public internet. If you need to manage it while away, keep the inbound path closed and use a remote-access method that starts from inside your network.
That is the main lesson from a recent XDA Developers account of 40 hours of NAS login attempts. The author was checking a fan issue, opened the logs, and found repeated failed sign-ins against DSM. The cause was an old port 80 forward left behind after a temporary nginx test. Once the application behind that forward was gone, the NAS web interface answered instead.
The attempts stopped shortly after the forward was removed. That matters more than any individual setting on the NAS.
A NAS is a high-value target
A NAS often holds the files that would hurt most to lose: family photos, work documents, VM backups, application data, and copies of other backups. It may also hold credentials, shared folders, or network mounts that give an intruder a useful starting point elsewhere on the LAN.
Internet scanners do not need to know who owns the device. They scan address ranges, identify services that answer, and send login attempts at whatever they find. A DSM page, a QNAP admin interface, an SSH daemon, or a web panel on an appliance all create something for that automation to talk to.
A password manager and a unique password are still important. So is multi-factor authentication where the NAS supports it. But neither changes a basic fact: an exposed login endpoint receives untrusted traffic all day, and authentication controls only start working after that traffic has reached the device.
The XDA Developers report also shows why per-IP blocking has limits. The login attempts came from rotating addresses. A lockout rule that blocks one address after several failures may never see enough failures from any one source to trigger. Keep rate limits and automatic blocking enabled, but do not treat them as a replacement for closing an unnecessary route.
CGNAT is not a security plan
Many home internet connections use carrier-grade NAT, usually shortened to CGNAT. It places another layer of address translation at the provider, which commonly prevents unsolicited inbound IPv4 connections from reaching a home router.
That can make a port forward appear harmless. The router has a rule, but outside traffic does not arrive because the provider blocks it first.
The problem is that this can change. A service plan changes, equipment gets replaced, an ISP changes its network arrangement, or the WAN address turns out to be public after all. The XDA account describes exactly that mistaken assumption: the network was believed to be behind CGNAT, but the router had a public address and the old forward was live.
Even when CGNAT is present today, it is not a control you operate or audit. It also does not cover every remote-access path. Vendor relay features, IPv6 configuration, and changes to router settings deserve their own review.
Treat every port forward as live unless you have verified otherwise. Treat every device administration page as public if it can answer from a phone on mobile data.
Find the paths you forgot
Start with the router, not the NAS. Look for port forwarding, virtual server, NAT, gaming, firewall, or application rules. Router interfaces use different names for the same idea.
Check every rule, including rules attached to DHCP reservations or individual devices. The forgotten forward in the XDA report was tucked into the NAS reservation rather than an obvious central list. Remove rules that you cannot explain and that do not have a current operational need.
Also inspect these areas:
- UPnP or NAT-PMP settings on the router. Disable automatic port mapping unless there is a specific reason to retain it.
- Remote administration settings on the router itself.
- NAS vendor remote-access features and relay services. Know which are enabled and what they expose.
- IPv6 firewall rules. A device with a globally reachable IPv6 address can bypass the assumptions people make about IPv4 NAT.
- Old reverse proxies, test containers, and web servers. Temporary experiments tend to outlive their notes.
Then test from outside the house or office. Turn off Wi-Fi on a phone and use mobile data. Try the public IP address or the hostname you use remotely. You are checking whether a login page, certificate warning, timeout, or other response appears.
Do this after removing a rule as well. A router screen that says a forward is gone is useful evidence. An external timeout is better evidence.
Do not rely on an invalid or self-signed certificate to discourage scans. A person may stop at a browser warning. A bot sending HTTP requests does not care.
Use an outbound path for remote SSH
Remote access does not require publishing a NAS web interface, SSH port, or any other listener to the internet. An outbound design reverses the direction of the first connection: a device inside your network dials out to a service you choose, while the router continues to reject unsolicited inbound traffic.
SSH Guru's ESP32-S3 Bridge uses this model. The bridge connects outbound, so it can work behind a home router, office firewall, mobile hotspot, Starlink connection, 5G home internet, or CGNAT. It does not need a router port forward, UPnP, DDNS, a VPN, or an inbound listener.
The important part is scope. Remote access should be restricted to the exact SSH destinations you intend to administer. With the bridge, allow-list rules are written to the board and can only be changed over USB. That means the bridge is for permitted targets, not unrestricted access to every device on the local network.
For a NAS, a narrow setup might permit SSH to one internal address on port 22. It would not publish DSM's web login page. It would not expose every service on the NAS. It would not turn the whole LAN into a remotely reachable network.
That separation is useful in practice. Use the NAS web interface from the LAN when you are home. When you are away and need shell access for a real task, connect to the approved SSH host through the outbound bridge. You have reduced the number of internet-facing services while keeping a path for maintenance.
We explain the connection model in more depth in ESP32-S3 Bridges: How We Reach SSH Behind CGNAT Without Port Forwarding.
Keep the SSH side narrow too
Closing public web access is a large improvement. The SSH service behind your private remote path still needs ordinary care.
Use a dedicated account for administration where your NAS supports one. Avoid using a broad daily-use account for shell work. Prefer SSH keys over reusable passwords, and remove keys when a device or person no longer needs access. Disable direct root login if the NAS permits it, then use sudo for the specific work that needs elevated rights.
In SSH Guru, the terminal runs in the browser. Private keys and passwords are encrypted in the browser vault under your passphrase with Argon2id and AES-256-GCM. The service does not hold the private keys, passwords, or SSH sessions. Host keys are pinned in the browser, and a changed host key produces a warning.
That host-key check matters when you reconnect from a Chromebook, iPad, phone, or a locked-down work laptop. Do not click past a host-key change because you are in a hurry. A changed key can be expected after rebuilding a NAS or replacing its SSH configuration, but verify the reason through a separate trusted route first.
Keep NAS firmware and packages current. Review who has administrator access. Make sure backups are separate from the NAS itself, ideally with a copy that an attacker who reaches the NAS cannot immediately erase.
Remote administration should leave less exposed
The safest public NAS administration page is the one that does not exist. Remove old forwards, turn off automatic port mapping, and confirm the result from an external network.
Then choose a remote path with a smaller boundary: an outbound connection, a fixed SSH destination allow-list, and keys that remain under your control in the browser. That does not remove the need to patch systems or review accounts. It does remove a broad, always-visible login target that attackers can find without knowing anything about you.




Comments
No comments yet. Be the first.