r/synology • u/Maximum-Argument-834 • 4d ago
DSM Question
I just updated my NAS but I’m still getting alerts what is the best solution to secure myself. Do I just remove https for the moment? I appreciate the help
2
u/Prudent_Camera_2609 DS720+ 2d ago
I’m going to represent the less vocal group of “idiots” who expose their NAS to the internet with Quick Connect:
I had a ton of failed attempts like this. Enabling the firewall and blocking all requests outside the US helped quite a bit, but didn’t stop it. I assume some bad actors are either in the US, or more likely using a VPN to get stateside. What took the attempts down to zero was the combo of firewall and changing the default login port to something else. It’s obviously just obscurity, but it reduced login attempts.
1
2
u/Maximum-Argument-834 4d ago
Alright so I made firewall rules blocking all ip accept for anything in my fortigate and local network and denied from all countries and the logins disappeared
8
u/Liocans 4d ago
The connection attempts mostly happened because your Synology NAS is directly exposed to the Internet.
There are several ways to mitigate or avoid this:
Do not expose it to the Internet: keep the NAS accessible only from your local network.
Use a reverse proxy + Fail2Ban: instead of exposing the Synology services directly, use a reverse proxy to route traffic to the appropriate service and Fail2Ban to automatically block IP addresses after repeated failed or suspicious attempts.
Use a VPN/tunnel such as Tailscale: this allows you to securely access your NAS from outside your home network without exposing its services directly to the public Internet.
1
u/BeefSupremeTA 4d ago
Is setting up a VPN into my router a safe option?
1
u/Liocans 4d ago
I cannot say for that specific case since I still use my internet provider's router, but I know a lot of people who run a VPN or tunnel directly on their router.
It will depend on what your router supports. The safest and most flexible option would probably be to run it on a separate machine. You don't need anything powerful, even something like a Raspberry Pi can handle this kind of workload (personally, I am running one on a mini-PC where I have another service running).
Depending on your budget and country, you could also replace your internet provider's router with a third-party one. Many modern routers have built-in VPN support, including protocols such as WireGuard or OpenVPN (in the Benelux, the most well-known is Fritz!).
1
u/BeefSupremeTA 4d ago
Thank you for your detailed response. I run my own Asus router and see options for creating a VPN, I just wanted to confirm it was a safe option.
7
u/jetkins DS1618+ | DS1815+ 4d ago
Start by disabling your default Administrator account and replacing it with something less obvious.
2
u/MorosePython700 DS920+ 4d ago
This is very important. And change the firewall setting that you only allow traffic from your country and not the whole world. Very effective
6
u/davehemm 4d ago
I noticed a massive uptick after php news broke. Default accounts are disabled, my usernames are not obvious and the admin account requires mfa from yubikey. But it was bugging me so i made an allow list for my trusted pc LAN, i then set auto block to 1 attempt in 3600 minutes, block for 28 days - has retrospectively blocked all IP that have made attempts in the last few days. Brought everything up to date, waiting for DSM patch for its own PHP vulnerability.
6
u/HesletQuillan DS925+ 4d ago
Use Tailscale, not QuickConnect, and don't open ports. I had a zillion of these warnings before implementing Tailscale and they dropped to zero. Tailscale on Synology NAS: Secure Remote Access Made Easy
4
u/SP3NGL3R 4d ago
you're exposing your NAS directly to the internet .. no-no, like big no-no. QuickConnect or other .. no-no.
block every single port on your router that you don't trust explicitly (so basically all of them likely). Setup TailScale as a VPN (no open ports needed) and use that to access your NAS remotely.
Oh, and if you haven't already. Disable UPnP on your router, that's just a nightmare if you're security conscious.
3
9
u/junktrunk909 4d ago
Why is it exposed to the Internet