Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Problem with two lan networks and access to ap

    Scheduled Pinned Locked Moved General pfSense Questions
    100 Posts 5 Posters 28.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kejianshi
      last edited by

      SAMBA4 might be something to look at as a stand-alone DC.

      https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Yes that would be the correct way to do it. It does mean you need an always on machine in addition to pfSense.
        JimP posted, a long while back now, about trying to make a cut down samba package that only ran as a WINS server. I don't think he could make it work which is a shame since it would fulfill these duties perfectly.

        https://forum.pfsense.org/index.php/topic,22561.msg116962.html#msg116962

        Steve

        1 Reply Last reply Reply Quote 0
        • K
          kejianshi
          last edited by

          I use SAMBA and I have a WINs server set up.  To save trouble, I have it running in a VM thats doing a whole lot of other things also.
          UBUNTU is really simple to do this with.  So is Mint and Centos.  Or it would also be simple enough to do it with the LINUX computer he is using as a work station currently.  It would be invisible to him once he set up the samba.conf  Only thing is, its not going to handle more than just 1 subnet unless he is magician.  Thats the part I'm not clear on.  How many subnets are there?

          (I maintain this, but I don't ACTUALLY need it)

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            It should work fine as long as you specify the IP of the WINS/samba machine in the DHCP settings from the other subnet. In his case wireless clients can contact a samba server on the wired side by IP no  problem so as long as they are set to use that for netbios queries it should work. Of course it relies on having the samba machine up before anything else tried to connect.

            Reading some docs it seems the only part of samba neccesarry to get this working is nmbd. Someone must have made a FreeBSD package for that already I'm thinking.

            Steve

            1 Reply Last reply Reply Quote 0
            • F
              firefox
              last edited by

              I already have Samba on Linux computers
              But it does not help

              They only see computers on their network

              @kejianshi:

              You really do not want to rely on broadcasts to keep track of 2000 computers and their shares.

              You need to get it mapped by IP and just access shares with IPs.

              It was an example of computer network at work

              I have a computer with a virtual machine on it
              Not the most powerful computer
              Because there is only one machine
              And the computer does not carry

              I will try to add another one and see if the Avahi package works

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                If you're already running a samba server, I imagine any Linux machine could do that, the configure it to be a WINS server. Then add the IP address of that machine to the DHCP server config on both the wired and wireless networks. There's a field for that marked 'WINS servers'. You will have to make sure that machine is always on (or almost always). You won't need a powerful machine to do this it should require almost nothing by way of resources.

                Avahi will not help if you are using SMB shares.

                Steve

                1 Reply Last reply Reply Quote 0
                • K
                  kejianshi
                  last edited by

                  I'm on Samba version 3.6.3

                  I think you'd need to get to version 4 to attempt this the way you want.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    What makes you think that? Samba has had WINS support for like forever.  ;)

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • K
                      kejianshi
                      last edited by

                      Yeah - WINs works for me, per subnet.  But I can't see whats on 10.10.10.0 from 10.10.11.0  thats all I'm saying.
                      For me anyway…  (I gave up trying a while ago)

                      My last use for it was getting netbios over TCP with Openvpn - Works fine for that for me.  (but plugging in IP is more reliable/faster)

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        I'll defer to your experience since I've never actually tried it but I can't see why it wouldn't work in theory.  ::)

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • F
                          firefox
                          last edited by

                          May be we are not on the same wavelength

                          When I said that I have Samba
                          I did not mean another computer
                          I meant Linux software installed on ubuntu that allows me to share

                          @stephenw10:

                          Avahi will not help if you are using SMB shares.

                          what is "SMB shares"

                          1 Reply Last reply Reply Quote 0
                          • K
                            kejianshi
                            last edited by

                            SAMBA "installed on ubuntu that allows me to share" = SMB share

                            But with samba shares you have to take some steps in the samba.conf file to make the workgroup correct, handle your printers, identify and name your file shares, AND you have to make it allow access without passwords unless you want passwords required.

                            That same samba.conf is also where you would set up WINs parameters if you want.

                            1 Reply Last reply Reply Quote 0
                            • K
                              kejianshi
                              last edited by

                              Do you already have file and printers shared?  If so, what are you using to do that?

                              1 Reply Last reply Reply Quote 0
                              • F
                                firefox
                                last edited by

                                I have file sharing and printers
                                I have a few computers with Ubuntu
                                And several computers with windows

                                I have access to all folders
                                When I wanted to share Ubuntu
                                I read should add the Samba
                                So I added
                                So I went to the folder and click Share Like in Windows

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  You want to configure one of those Ubuntu boxes as a WINS server. Something like:
                                  http://whereofwecannotspeak.wordpress.com/2007/10/24/samba-as-a-wins-server-in-a-windows-peer-network/
                                  Though that's obviously very old now.
                                  Then point all the other machines at it.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    firefox
                                    last edited by

                                    But it will have to remain turned on 24 \ 7
                                    Does is not ?

                                    If this is the case
                                    Right now I prefer to stay in the current situation

                                    In the coming month or two
                                    I'm going to install a home nas
                                    To be used to keep files of music and movies, etc. etc. etc.

                                    And it will turned on 24 \ 7
                                    I have not decided what system to put it
                                    I tend towards freenas

                                    This computer will be turned on 24 \ 7
                                    Which I can put put the Samba

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      kejianshi
                                      last edited by

                                      Sounds like you have a handle on it now.  Sounds reasonable.  :)

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        firefox
                                        last edited by

                                        I have two months to figure out how to do it

                                        {Meanwhile I will try to solve another problem I have with pfsense not related to this forum}

                                        Anyway
                                        Thanks everyone for the help

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.