NAS can run website servers, but three hurdles mean it's only suitable for your own people

The backend received a message saying he wrote a small blog and posted it on a certain cloud platform for over 100 yuan a year, asking if my Flying Bull, which runs every day, could take over the site and save money. I actually have some say in this issue—I have a small site attached to a cloud server, and when I chose a location for it, I went through the entire NAS route at home from start to finish. Conclusion for now: the station can run on NAS and visitors can get in, but the three hurdles mean it's only fit to run for its own people.
Let's get straight to the point: a NAS is originally a website server
Here's a counterintuitive fact: the NAS features you use every day are all web pages at the bottom. Synology's backend is DSM, 5000 ports; Feiniu is 5666; Home Assistant is 8123; AdGuard Home is 3000, each one is a standard web service. On my N100 mini PC, there are six or seven 'websites' running just in Docker, and you can open them by clicking an address in your browser.
So the question of "Can NAS run websites?" is actually the opposite—it runs websites every day. The real problem is the opposite: you only access these sites within your own local network, and once you want outsiders to enter a domain name, the trouble starts from the very first step. The friend commenting wasn't thinking about running, but about "letting others see it." The difficulty between these two is on a whole level.
First hurdle: 80 and 443—Jiakuan was born without these two numbers
Visitors type www and click 'com' in the browser's address bar, press Enter, and the browser defaults to that server's port 80, which is https 443. This is a rule written in the HTTP protocol; you can't change the browsers of visitors worldwide. For home broadband, the 80 and 443 input directions < a href="https://www.shunot.com/en/192-168-2-1/858.html"> carriers are basically all blocked. It has nothing to do with how your router sets up the optical modem; it's a matter at the data center level.
There is only one way to bypass it: the website moves the high-level port, such as 5230, and then forwards it to port , and when visitors type the domain name, they should bring their own colon and port number. It works, but that colon can turn away half the visitors—you yourself are embarrassed to send such an address to your friends. What's worse is the search engine indexing and WeChat forwarding experience—a string of long links with ports that look like a phishing page at first. Don't expect to switch ports without anyone noticing; some operators will scan any HTTP service on any port and greet you just as they see you're on a running site.
To confirm if your 80 emails have been blocked, the method is simple: set up a test page on your computer and listen to port 80, turn off WiFi on your phone to use data, and enter your public IP directly in your browser. After a long round, you're blocked; if you open it instantly, it's not blocked. I tested broadband for three companies: Telecom, Unicom, and China Mobile, and none were missed—everything was just spinning in circles. Don't rely on luck.
Second hurdle: The IP isn't yours, it's borrowed
The cloud server gives you a fixed IP, but the home broad fiber does not. First< a href="https://www.shunot.com/en/192-168-2-1/858.html"> check if you have a public IP: Telecom calls 10,000 numbers, and most mobile users get CGNAT starting with 100.64. Internal network interception is basically dead, not even worth messing around.
Even if it becomes a genuine public IP, it will still float. The broadband line at my home drifted from an address starting with 117.136 to 111.72 two years ago, without any warning. DDNS can keep up with changes, but DNS has caches, so switching has a window period. In those few minutes, your site disappears from the internet into thin air. IPv6 is half a solution, Each device has a unique address number, bypassing NAT, but the prerequisite is that the visitor side also has IPv6—company WiFi, school network, and half of the old four-grid address. You can't just post an announcement on the homepage: This site only supports IPv6 access.
By the way
, bandwidth, which many people worry about, is actually the least worrisome of all. My home has 50 trillion Mbps online, and how many gigabytes can a pure text blog run all day? Even with a wall chart, it's still far enough. What has always been a choking point isn't the thickness of the pipe, but the house number and household registration — these two vague things.
The third hurdle: the registration hurdle is basically impossible for Jiakuan to overcome
The first two hurdles are technical hurdles—grit your teeth and you can get around them. The third hurdle is the regulatory hurdle: if you run a website on a domestic server, your domain name must be registered with ICP—this is an official requirement. Cloud providers have a complete filing pipeline, with photos and verification, and can be completed within ten to half a month. The process is tedious but manageable.
What about Jiakuan's path? Filing must be registered under the name of the access provider. Your broadband is an operator, and in principle, the operator does not allow home broadband to provide website services externally, so the registration for home broadband website construction is basically unsuccessful. Unregistered domain names can be resolved to domestic IPs, at best blocked by resolution, or at worst by receiving rectification notices. Some people wonder, "I'll switch to high-level ports to avoid scanning." As mentioned earlier, this is a gray area and not a compliant route. You should practice and play around without anyone caring. Take building your site seriously and don't gamble your domain on it.
Doing the math: a cloud server costing just a few dozen yuan a year—are you really saving yourself
?Open the tables on both sides to look. On the cloud side: lightweight application server with 2 cores and 2GB, new users get a promotion of 30 to 40 yuan per year, regular price just over 100 yuan; Domain .com can be lost sixty or seventy a year. NAS side: domain names still have to be bought, not a cent missed; Electricity cost monthly average of nine yuan is already being paid and not counted as increment; You've already installed a UPS before. The real savings inside and out were just those few dozen yuan on server fees.
There's a trick in buying cloud servers: the annual price of 30 to 40 yuan is usually just the new user price plus a one-time purchase limit, and the renewal in the second year can get you back to 200-300. Before placing an order, check the renewal price before deciding. Don't be swayed by the first-year price. This was a small pitfall I made when I first choosed.
What is the cost? Domains can be blocked at any time due to lack of filing, IP drift gaps, the serial address after 80 blocks with colons, and exposing the NAS itself to the public network—the NAS is the door to all your data. If you open this door to the whole network, being scanned or forced is routine, and you have to figure out the certificate yourself. HTTP and HTTPS are unavoidable.
My own plan is to divide labor from both ends: the site and data subject are stored in the cloud, and for a few dozen yuan a year, you can buy a fixed IP plus 80 ports for peace of mind; The home NAS handles the big files, and the image bed materials < a href="https://www.shunot.com/en/nas/1084.html"> the cloud drive mounting method is attached to the site for use, while each side does its own thing. By the way, a reminder: when testing your own site at home, there's a pitfall of NAT backflow. If your home WiFi is working, it doesn't mean it's working outside. Remember to turn off your phone's data when verifying.
Theproper way to build a NAS website: only for your own people to see
After figuring this out, it suddenly became clear: the most valuable "websites" on NAS should never be shown to outsiders. Photo Library Sharing is for my mom to browse her grandson's photos, the HA panel manages my own lights, and the AdGuard backend is absolutely forbidden for outsiders to touch. These sites don't require a single level of filing, and not a single port needs to be exposed.
Their official access is threefold: direct connection at home, just tap the internal IP to get there; When you're out and about connect to a vendor repeater or IPv6 directly, checking the status is sufficient; If you find it slow and want to transfer large items, just < a href="https://www.shunot.com/en/lybk/978.html" > VPN home, and the experience is no different from sitting in the living room. And if you really want to show the whole world—blogs, portfolios, sites that need to be indexed or ranked—spend a few dozen yuan to put it in the cloud, and NAS can confidently serve as its warehouse and intranet service station, with no one competing for each other's work.
| Where is the best place to hang | the items |
|---|---|
| For your family's photo station, file site, | NAS internal network, and a read-only account |
| dashboards and automated panel | NAS at home, use relay or VPN when going out |
| Personal blogs and portfolios—rankings on cloud servers are needed for | indexing, costing tens of yuan a year to save money |
| Just wanting to practice the website building process | , justtinkering with NAS and internal network |
If you really want to try, here's the order: first run the site on the NAS internal network, and make sure domain resolution, certificates, and backend are all smooth; Then ask yourself whether this stop should be shown to strangers, or if not, it's done; Package the data and move it to the cloud, keeping the internal network as a testing environment. Don't start off by stubbornly battling with port 80 and filing—that's a long detour.
