Internet provider by Microtik - PFsense - virtualbox (samba share connection)


  • Hello!
    How are you?

    My scenario:
    Our Internet provider (public IP) give us Internet by Microtik that go to our PFsense NO DHCP Mode (first NIC - Wan and second NIC our Lan) from Lan to switchs, so from switch to our clients and servers, Right?
    We have a Ubuntu Linux server with Virtualbox and inside Linux and windows - Yes, Linux with virtualbox guest additions iso installed and insert user to vboxsf group.

    So, Inside Virtualbox Linux I have a samba share folder configured and works fine. At this scenario all windows machines and windows versions can access this Linux virtualbox share folder by: //server/share_folder without problems BUT for Linux Machines can not by: smb://server/name_share_folder only smb://IP_server/share_folder

    I am with this problem many times so, I did the same scenario in my house. Only difference is that in my house the internet came by Fiber to ZHONE modem, and from modem to my Dlink router wireless 809 without Microtik. At my house I have Xubuntu 20.04, so install virtualbox, virtualbox guest additions iso too and insert user at vboxfs group and install windows 10 on virtualbox. I did install in virtualbox OpenMediaVault a NAS Debian base and did other share folder inside it. More one other Linux inside virtualbox to act as client. So, at my house ALL OS inside or out virtualbox can access by windows mode: //server/share_folder and Linux mode: smb://server/share_name normally.

    Somebody Can help me please?

    Thank you

    Douglas


  • That sounds like a resolver problem (DNS)

    Can you ping the server by name from the linux where you have problems.

    If your Xubuntu have avahi (mDNS) installed , that might be the reason that it works there.

    /Bingo


  • @bingo600 said in Internet provider by Microtik - PFsense - virtualbox (samba share connection):

    That sounds like a resolver problem (DNS)

    Can you ping the server by name from the linux where you have problems.

    If your Xubuntu have avahi (mDNS) installed , that might be the reason that it works there.

    /Bingo

    Hello. In the Office and my house Xubuntus are the same version and same install mode. I can not understand why not works as in my house where all OS access samba share folder by name: //server/share_folder (windows) and smb://server/share_folder (Linux). Seems that in Office (that have microtik) the network in some place works kind different

    I did other lab test: In the office I did get one old machine and install pfsense from zero, right! Insert it on the same network and get free IP (10.x.x.x) from office network that came office's PFsense. I use this IP to be the Wan of the second pfsense on old machine and chose other IP for Lan (192.168.0.1). so, I did try the same scenario that I posted before And: Inside the OFFICE, same with other second pfsense machine, Linux can not access the samba share folder by Name (smb://server/share_folder_name) only by smb://IP/share_folder_name

    I can be wrong but, there are network problems or microtik influence or, wrong configuration in some place. I do not know how to fix it. And we need to configure others services in the network in this Office but FIRST, need fix it. What to do?

    Thank you

    Douglas


  • @doguibnu said in Internet provider by Microtik - PFsense - virtualbox (samba share connection):

    Can you ping the server by name from the linux where you have problems.

  • LAYER 8

    try if you can access with
    smb://server.localdomain.local/share_folder_name
    if you can,
    you are probably missing

    dns-search localdomain.local
    

    this is automatically added on windows but not on Linux
    substitute localdomain.local with what you have for your Lan network


  • @bingo600 said in Internet provider by Microtik - PFsense - virtualbox (samba share connection):

    @doguibnu said in Internet provider by Microtik - PFsense - virtualbox (samba share connection):

    Can you ping the server by name from the linux where you have problems.

    Hello!
    I did try ping the server by name in my Linux and it Fails to resolution name....


  • @kiokoman you save me man!
    Now its ok

    samba ok

    Oww, Thank you for help friends!

    Great

    Douglas

    @kiokoman said in Internet provider by Microtik - PFsense - virtualbox (samba share connection):

    try if you can access with
    smb://server.localdomain.local/share_folder_name
    if you can,
    you are probably missing

    dns-search localdomain.local
    

    this is automatically added on windows but not on Linux
    substitute localdomain.local with what you have for your Lan network