Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Configuring ufw firewall to allow access to NAS drives via SMB

  • Please log in to reply
No replies to this topic

#1 jonuk76


  • Members
  • 2,120 posts
  • Gender:Male
  • Location:Wales, UK
  • Local time:03:56 PM

Posted 08 August 2017 - 11:03 PM

I'm sure I've had this setup working in the past, but obviously I've forgotten how to configure it at some point!!  I'm using Mint 18.2.  I have a NAS drive which contains a lot of my files, and it uses the SMB protocol.


When I have the firewall active with the default configuration (deny in, allow out) it blocks access to the NAS. Attempting to "browse" the shares using the file manager is unsuccessful.  I understand this. Where it gets weird though is that when I add firewall rules to allow TCP/UDP incoming access on ports 137, 138, 139 and 445 (actually I use pre-configured samba rules using gufw which set these), I still can't access the shares using the file manager.


I am certain that it is being firewalled. I can turn the firewall off (or allow all incoming connections) and immediately, I can browse the NAS and other Windows computers on the network.  Turn it back on, and immediately I can't access file browsing again.


Aside from the above mentioned ports, does anyone know what other rules need to be set?


I'm using a NAT router with firewall to access the internet.



Edited by jonuk76, 09 August 2017 - 08:21 AM.


BC AdBot (Login to Remove)



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users