Bonjour & DDNS= exposed to WAN?

Windows Access Rights Management
Post Reply
markc6123
Starting out
Posts: 31
Joined: Sun Oct 21, 2018 8:03 pm

Bonjour & DDNS= exposed to WAN?

Post by markc6123 »

Greetings. I run Plex on an Nvidia Shield TV, which accesses the NAS for files. I can't access the NAS files via Plex outside the LAN unless DDNS is enabled under network & virtual switch on the NAS.
I use XYPlorer as a replacement for Windows 10 file explorer. XYPlorer can't see the NAS files unless Bonjour is enabled on the NAS. (although Windows file explorer can). UPNP is disabled on router and NAS.
With Bonjour and DDNS enabled am I exposed to the WAN?
If DDNS does expose the NAS to WAN, if I assign a static IP to the NAS will that let me disable DDNS?
Thanks in advance.
-Mark

NAS TS-231P firmware is 4.5.1.1480
Mark C
TS-251
Windows 11
User avatar
dolbyman
Guru
Posts: 35276
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Bonjour & DDNS= exposed to WAN?

Post by dolbyman »

Why would you use DDNS if you do NOT want to expose any device in your LAN (or a dedicated VPN appliance) to WAN ?

Be very carefull what you expose and have external backups at all times... ransomware is on the hunt
User avatar
jaysona
Been there, done that
Posts: 856
Joined: Tue Dec 02, 2008 11:26 am
Location: Somewhere in the Great White North

Re: Bonjour & DDNS= exposed to WAN?

Post by jaysona »

If you want to access plex from the Internet, ddns is not required. Don't use QNAP DDNS stuff at all, just stay away.

For plex access from the Internet you just need to port forward tcp 32400 to your NAS, set your NAS up with a static IP and not DHCP. If you do not use a static IP, then your NAS could be given a new IP address, which would mean the original port forward is no longer working. This is why many people use DDNS and UPnP, it's the lazy (and insecure) way to make things work.

I have no answer for the XYPlorer question, other than it clearly does not know how to properly view SMB/CIFS shares, you may need to tweak the SMB settings somewhere, you should not need to use bonjour to browse files.
RAID is not a Back-up!

H/W: QNAP TVS-872x (i7-8700. 64GB) (Plex server & encoding host) / TVS-EC1080 (32Gig ECC) - VM host & seedbox
H/W: Asustor AS6706T (32GB) / Asustor AS7010T (16GB) (media storage)
H/W: TS-219 Pro / TS-509 Pro
O/S: Slackware 14.2 / MS Windows 7-64 (x5)
Router1: Asus RT-AX86U - Asuswrt-Merlin - 3004.388.6_2
Router2: Asus RT-AC66U - Asuswrt-Merlin - 386.12_6
Router3: Linksys WRT1900AC - DD-WRT v3.0-r46816 std
Router4: Asus RT-AC66U - FreshTomato v2021.10.15

Misc: Popcorn Hour A-110/WN-100, Pinnacle Show Center 250HD, Roku SoundBridge Radio (all retired)
Ditched QNAP units: TS-269 Pro / TS-253 Pro (8GB) / TS-509 Pro / TS-569 Pro / TS-853 Pro (8GB)
TS-670 Pro x2 (i7-3770s 16GB) / TS-870 Pro (i7-3770 16GB) / TVS-871 (i7-4790s 16GB)
markc6123
Starting out
Posts: 31
Joined: Sun Oct 21, 2018 8:03 pm

Re: Bonjour & DDNS= exposed to WAN?

Post by markc6123 »

Thank you for the response, very helpful AND it answered my question. Plex is already port forwarded on router but for some reason it failed without the DDNS on NAS turned on, the port is forwarded to the Shield since that's what's running Plex, not the NAS. Would I need to forward the port to the NAS as well? I'll try again and maybe reboot the shield for good measure.
Edit- I just tried Plex again from outside the LAN after setting static IP's for Shield and NAS and now it seems to work fine, thanks again.

jaysona wrote: Fri Nov 13, 2020 9:54 pm If you want to access plex from the Internet, ddns is not required. Don't use QNAP DDNS stuff at all, just stay away.

For plex access from the Internet you just need to port forward tcp 32400 to your NAS, set your NAS up with a static IP and not DHCP. If you do not use a static IP, then your NAS could be given a new IP address, which would mean the original port forward is no longer working. This is why many people use DDNS and UPnP, it's the lazy (and insecure) way to make things work.

I have no answer for the XYPlorer question, other than it clearly does not know how to properly view SMB/CIFS shares, you may need to tweak the SMB settings somewhere, you should not need to use bonjour to browse files.
Last edited by markc6123 on Sat Nov 14, 2020 4:33 am, edited 1 time in total.
Mark C
TS-251
Windows 11
markc6123
Starting out
Posts: 31
Joined: Sun Oct 21, 2018 8:03 pm

Re: Bonjour & DDNS= exposed to WAN?

Post by markc6123 »

Exactly what I'm trying to do. I've never messed with DDNS or bonjour settings before which is why I asked the question
dolbyman wrote: Fri Nov 13, 2020 9:40 pm Why would you use DDNS if you do NOT want to expose any device in your LAN (or a dedicated VPN appliance) to WAN ?

Be very carefull what you expose and have external backups at all times... ransomware is on the hunt
Mark C
TS-251
Windows 11
User avatar
dolbyman
Guru
Posts: 35276
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Bonjour & DDNS= exposed to WAN?

Post by dolbyman »

explain in detail what you are trying to do
markc6123
Starting out
Posts: 31
Joined: Sun Oct 21, 2018 8:03 pm

Re: Bonjour & DDNS= exposed to WAN?

Post by markc6123 »

Access NAS via Plex from outside the LAN without DDNS enabled - FIXED
Access NAS files via XYPlorer, Windows 10 file browser replacement without enabling Bonjour on the NAS

dolbyman wrote: Sat Nov 14, 2020 4:59 am explain in detail what you are trying to do
Mark C
TS-251
Windows 11
User avatar
dolbyman
Guru
Posts: 35276
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Bonjour & DDNS= exposed to WAN?

Post by dolbyman »

if you have a static IP, you dont need DDNS ..otherwise, that why you would need DDNS

I don't know that explorer replacment ..but a MAC protocol (Bonjour) requirement for it seem strange
markc6123
Starting out
Posts: 31
Joined: Sun Oct 21, 2018 8:03 pm

Re: Bonjour & DDNS= exposed to WAN?

Post by markc6123 »

On XYPlorer, that's my thought as well but I only know enough to be dangerous. Further, if I uncheck all services under the setting but leave bonjour enabled at the top it still works, if I uncheck bonjour, it fails. If I enable it again, it fails, enable samba, it works, disable samba, it continues working.
Since it's not broadcasting any services I'd need an Apple or XYPlorer guru to figure that one out.
In the meantime, since it's not broadcasting any services am I still technically exposed to the WAN?
dolbyman wrote: Sat Nov 14, 2020 7:57 am if you have a static IP, you dont need DDNS ..otherwise, that why you would need DDNS

I don't know that explorer replacment ..but a MAC protocol (Bonjour) requirement for it seem strange
Mark C
TS-251
Windows 11
User avatar
dolbyman
Guru
Posts: 35276
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Bonjour & DDNS= exposed to WAN?

Post by dolbyman »

if you remove uPnP and manual portforwards on the router..nothing should be exposed to WAN
markc6123
Starting out
Posts: 31
Joined: Sun Oct 21, 2018 8:03 pm

Re: Bonjour & DDNS= exposed to WAN?

Post by markc6123 »

UPNP is disabled on router and NAS. The only port forward is to the Shield TV so Plex can run outside the LAN. My concern centered on bonjour and having it enabled but no services being broadcast.

dolbyman wrote: Sat Nov 14, 2020 11:15 pm if you remove uPnP and manual portforwards on the router..nothing should be exposed to WAN
Mark C
TS-251
Windows 11
User avatar
dolbyman
Guru
Posts: 35276
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Bonjour & DDNS= exposed to WAN?

Post by dolbyman »

if no ports are forwarded to the NAS, there is no danger of WAN exposure
Post Reply

Return to “Windows”