How I Fixed SMB Access Issues to My Home NAS Behind a VLAN-Enabled Router

light on computer hardware

When I recently set up my home lab, I ran into a frustrating snag: I couldn’t connect to my NAS SMB share from my PC, even though basic network connectivity (ping) was working perfectly. Here’s how I diagnosed and fixed the problem — hopefully this helps you too.

The Scenario

Step 1: Confirm Basic Network Connectivity

I started by verifying the basics:

This confirmed that Layer 3 routing and VLAN tagging were functioning.

Step 2: Review Router Firewall Rules

Next, I examined firewall rules on the router. Initially, attempts to insert new firewall rules failed due to CLI syntax differences.

I added explicit accept rules allowing traffic to flow between the client VLAN subnet and the NAS VLAN subnet on the router’s firewall, specifically permitting SMB-related traffic (TCP ports 445 and 139):

/ip firewall filter add chain=forward src-address=CLIENT_VLAN_SUBNET dst-address=NAS_VLAN_IP action=accept comment="Allow Client VLAN to NAS"
/ip firewall filter add chain=forward src-address=NAS_VLAN_IP dst-address=CLIENT_VLAN_SUBNET action=accept comment="Allow NAS to Client VLAN"

Then I moved these rules above any default drop rules to ensure traffic wasn’t blocked.

Step 3: Validate NAS Network Configuration

On the NAS itself:

Step 4: Check SMB Service Status & Configuration on NAS

I made sure the SMB service was running properly:

shellCopyEditservice samba_server status

I also reviewed the Samba configuration file:

Step 5: Test SMB Access by IP Address

Using Windows, I connected to the SMB share directly via the NAS IP address rather than a hostname, to bypass potential DNS or NetBIOS issues:

perlCopyEditnet use \\NAS_IP_ADDRESS\ShareName

This succeeded, confirming that both routing/firewall and SMB service were now working correctly.

What Was the Root Cause?

The main blockers were:

Lessons Learned

Final Thoughts

Network troubleshooting can be tricky, but breaking it down step-by-step helped me get my SMB shares accessible again behind a segmented VLAN network.

If you want more hands-on networking and NAS setup tips, stick around and subscribe to my blog!

Comments

Leave a Reply