Results 1 to 5 of 5

Thread: SAMBA Host allow with dynamic dns such as no-ip?

  1. #1
    Join Date
    Oct 2021
    Beans
    2

    SAMBA Host allow with dynamic dns such as no-ip?

    Hi,
    First, excuse my english, i'm french :)

    For test purposes, i had to install a samba server on a distant server for work. Everything works fine.
    My issue is to deal with access restrictions: I use "host allow" command in the smb.conf, wich works fine when I use my client ip address, but client ip address change frequently. I had the idea to use a dyndns such as "no-ip" to retrieve changing ip with an http factor.
    But it seems that "host allow" option from samba does not resolve the ip with that factor, although he recognize it. here is an extract of the log where it recognize my connection (replaced some infos by x):

    In my smb.conf:

    hosts allow = xxx.ddns.net

    [2021/10/08 16:08:09.519621, 0] ../source3/lib/access.c:338(allow_access)
    Denied connection from areims-xxx-x-xx-xx.w90-7.abo.xxxxxxx.fr (90.x.x.99)

    the ip that semba regognize is the right one, but deny the access...

    Someone could help with a hint?
    Thanks in advance

  2. #2
    Join Date
    May 2010
    Beans
    3,247

    Re: SAMBA Host allow with dynamic dns such as no-ip?

    I don't suggest you expose Samba to the internet. It's a really bad idea.
    Are you using Samba for authentication, file sharing or both please?
    What is the output of:
    Code:
    lsb_release -a
    uname -a
    dpkg -l | grep -i samba
    Thanks

  3. #3
    Join Date
    Oct 2021
    Beans
    2

    Re: SAMBA Host allow with dynamic dns such as no-ip?

    I've already been told this, but this is the only protocol recognized by the software i intend to use with...
    I'm using it for file sharing, not sure what you mean with authentication?

    The output for your cli code is:


    No LSB modules are available.
    Distributor ID: Debian
    Description: Debian GNU/Linux 8.5 (jessie)
    Release: 8
    Codename: jessie



    Linux ns3045576.ip-94-23-25.eu 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET 2016 x86_64 GNU/Linux




    ii libwbclient0:amd64 2:4.2.14+dfsg-0+deb8u13 amd64 Samba winbind client library
    ii python-samba 2:4.2.14+dfsg-0+deb8u13 amd64 Python bindings for Samba
    ii samba 2:4.2.14+dfsg-0+deb8u13 amd64 SMB/CIFS file, print, and login server for Unix
    ii samba-common 2:4.2.14+dfsg-0+deb8u13 all common files used by both the Samba server and client
    ii samba-common-bin 2:4.2.14+dfsg-0+deb8u13 amd64 Samba common files used by both the server and the client
    ii samba-dsdb-modules 2:4.2.14+dfsg-0+deb8u13 amd64 Samba Directory Services Database
    ii samba-libs:amd64 2:4.2.14+dfsg-0+deb8u13 amd64 Samba core libraries
    ii samba-vfs-modules 2:4.2.14+dfsg-0+deb8u13 amd64 Samba Virtual FileSystem plugins

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

    Re: SAMBA Host allow with dynamic dns such as no-ip?

    Thread moved to Debian sub-forum.
    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
    Apr 2014
    Location
    Tucson AZ, USA
    Beans
    1,057
    Distro
    Ubuntu

    Re: SAMBA Host allow with dynamic dns such as no-ip?

    Can you use sshfs to mount the remote location locally? Then just use it like any other local files stem. Sure safer than Samba

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
  •