Results 1 to 7 of 7

Thread: How to configure UFW to allow Samba to talk to network NAS

  1. #1
    Join Date
    Sep 2009
    Location
    Jersey
    Beans
    153
    Distro
    Ubuntu 12.04 Precise Pangolin

    How to configure UFW to allow Samba to talk to network NAS

    I'm sure this is really simple but how do I configure my standard firewall using UFW to allow samba to communicate with my network hard drive.

    If I turn off the firewall the network works just fine.

    Sorry for such a dumb question but I just can't work it out.

    Many thanks
    Laptop : Acer Aspire 5920G Intel Core 2 Duo T7300, 4GB DDR2, NVidia GeForce 8600GT, 500GB HDD
    Desktop : Intel Core i7 930 overclocked to 4GHz, 6GB DDR3, ATI Radeon HD 5870 Vapor-X, 2TB + 2TB + 300GB HDD & 60GB SDD

  2. #2
    Join Date
    Jan 2007
    Beans
    6,537
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to configure UFW to allow Samba to talk to network NAS

    From the look of it, getting the Samba client to talk through ufw requires editing a config file:

    According to this bug you need to do the following:

    Hit Alt-F2 and enter:
    Code:
    gksu gedit /etc/default/ufw
    then add:
    Code:
    nf_conntrack_pptp
    nf_conntrack_netbios_ns
    to IPT_MODULES

  3. #3
    Join Date
    Sep 2009
    Location
    Jersey
    Beans
    153
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to configure UFW to allow Samba to talk to network NAS

    I will try this when I get back home. Looks like it wasn't as simple as I thought.

    No wonder I couldn't get it to work! Thought I was being a bit dense.
    Laptop : Acer Aspire 5920G Intel Core 2 Duo T7300, 4GB DDR2, NVidia GeForce 8600GT, 500GB HDD
    Desktop : Intel Core i7 930 overclocked to 4GHz, 6GB DDR3, ATI Radeon HD 5870 Vapor-X, 2TB + 2TB + 300GB HDD & 60GB SDD

  4. #4
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to configure UFW to allow Samba to talk to network NAS

    Quote Originally Posted by Paqman View Post
    According to this bug you need to do the following:
    Thanks for posting that link. I think it's disgraceful that after nearly two years that bug has not been dealt with, or another way found of getting ufw to play nicely with samba shares.

    In Maverick I found that if you install gufw and add the preconfigured inbound and outbound rules for samba, then samba was still blocked! I had to allow all traffic in my local network IP range to get samba past the firewall. Ridiculous. That looks a much better fix. Thanks again.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  5. #5
    Join Date
    Jan 2007
    Beans
    6,537
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to configure UFW to allow Samba to talk to network NAS

    Quote Originally Posted by coffeecat View Post
    In Maverick I found that if you install gufw and add the preconfigured inbound and outbound rules for samba, then samba was still blocked!
    I believe that's because the Samba profile is designed for a Samba server, not a Samba client.

    But yes, not really good enough at all.
    Last edited by Paqman; March 12th, 2011 at 01:46 PM.

  6. #6
    Join Date
    Jun 2009
    Location
    Alabama
    Beans
    2,232

    Unhappy Re: How to configure UFW to allow Samba to talk to network NAS

    I have been fighting this problem for three days. I had finally been forced to turn off ufw. Then I started searching for how to fix the combination of ufw and Samba server when I found this thread.

    Note that the bug has been open for two years! Bleh!

    Tim
    Cyberpower PC, Core i5 2500 3.3 gHz, 8GB DDR3, ATI 6770 1GB, Samsung BX 2440 LED 1080p, 1 TB SATA III, 2 TB SATA III, Siduction Linux 64-bit

  7. #7
    Join Date
    Jul 2006
    Location
    Chippenham
    Beans
    12
    Distro
    Kubuntu 22.10 Kinetic Kudu

    Re: How to configure UFW to allow Samba to talk to network NAS

    Many thanks for this post. I thought it was just me.

    Regards

    K

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •