DSM is accessible via own domain address, but certificate causes problems within LAN

Currently reading
DSM is accessible via own domain address, but certificate causes problems within LAN

Hi there,

I managed to access my NAS and its various services form the WAN with a valid LE certificate. However, this certificate causes problems when my devices are within the same LAN as the NAS. E.g. on a windows machine, I get warnings and alarms from my malware protection solution, or from the browser itself. Even more problematic: Synology's DS Note app (and others? Not sure) is unable to connect to the server and sync. However, deactivating the Wi-Fi and using my 4G data plan is OK. That's not convenient at all.

Some web sites suggest this is due to a DNS loopback issue. I could find some tutorials explaining how to set up a DNS server on the NAS itself, but the given examples are never based on the same problem I have and I didn't managed to have this work.

So my two questions are:
  1. Is the DNS loopback diagnostic right, or am I on the wrong way?
  2. Do you know any (beginner friendly) resource that could help me with this issue?
Thank you for your answer and have nice evening!
 

Rusty

Moderator
NAS Support
2,873
876
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Is the DNS loopback diagnostic right, or am I on the wrong way?
Yes, this sounds like a NAT loopback problem, getting to your local hosted FQDN destinations from inside your LAN. This is why it works outside your LAN.

What's your network setup like (router, ISP, etc)? Maybe you can configure the NAT loopback option on your router and that will not require the need to set up your local DNS to resolve your services while inside LAN.
 
10
5
NAS
DS1010+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Linux
  2. macOS
  3. Windows
  4. other
Mobile operating system
  1. Android
  2. iOS
Hello,
I suggest you install a pi-hole on your network (or on your DSM docker), that will allow you to add local dns names with no headache (or no configuration of the DSM dns server) , then you will be able to access your fqdn from inside and your wilcard certificat will work just fine :)
 
Last edited:
What's your network setup like (router, ISP, etc)?
Router is Synology's MR2200, connected to my ISP with a media converter only (because optical fiber). No bridge or similar setup. All devices are connected to the MR either via switch, or Wi-Fi. I don't know what other information could help :)

The NAS is a 920+.

I had a look on Synology's User Manual but couldn't find the "loopback" keyword, so I guess it is not a built-in feature (if such thing exists).

I suggest you install a pi-hole on your network
That was my plan for a near future, but I wanted to fix "basic things" first, make a break of a few weeks with all that IT work at home, and open the project later again. But if you say it would be easier to do so first... Is it really? Would you have any good resource to recommand for a beginner like me?

The same for the wildcard certificate.

Thank's for the advices!
 
10
5
NAS
DS1010+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Linux
  2. macOS
  3. Windows
  4. other
Mobile operating system
  1. Android
  2. iOS
I understand what you wanted to achieve, but sometimes adding stuff make the whole easier to use :)
So I believe on the 920+ you have the docker package installed. So you have all prerequisite to follow this very clear tutorial : How to Install Pi-Hole on Your Synology NAS
(haven't tested it but looks clear and complete to me).

Just one thing, you should use only DNS role of pihole, not dhcp, leave that to your router.
One pihole is setup, go to your router config and set the pihole ip (should be your nas local ip address) address as primary dns server. refresh your dhcp lease on one test device, then check if you can resolve dns.
Then logon as admin, go to Local DNS/DNS Records and add mynas.mydomain.org -> 192.168.0.x, and try the fqdn from inside :)

For the certificate, I add one included in my domain name hosting, so I am using it locally too. I believe you could use Let's Encrypt (Let's Encrypt - Free SSL/TLS Certificates) but I never used it so I can't really help on that
 

Rusty

Moderator
NAS Support
2,873
876
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Router is Synology's MR2200, connected to my ISP with a media converter only (because optical fiber). No bridge or similar setup.
Syno routers do support nat loopback out of the box but if your have your isp router in front of it you are looking at double nat (if it’s not bridged) and that will not work well with using your fqdn names in your lan without what esquimo said.
 
I have no ISP router. The only routerI have is my MR2200, as my ISP does support it.

OK, I'll have a look at the Pi-hole solution. It looks more reasonable I planned to do it later anyway.
Thank's agains for all your advices and answers!
 
1,681
718
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
The referenced guide uses Docker’s bridge network. All client requests will show up as if they are coming from the Docker gateway. I’m not sure what happens if you enable the DNS. That might fix it.

A better –a bit harder to configure though– way is to use Docker’s Macvlan driver when configuring Pi-hole.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Top