• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

1 Master Server + 1 Storage Node + DNSmasq + 2 Different location

Scheduled Pinned Locked Moved Unsolved
General
4
9
2.6k
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
    kwetiaw
    last edited by Sep 2, 2016, 3:16 AM

    Hi all

    I have 2 sites with different subnets and the current fog server setup on these two locations are independent (both master) both running RC-8 in Ubuntu 14. DNSmasq installed on each of them (since I dont have access to modify the switches)

    How do you configure DNSmasq to serve these two locations? For example SITE A has 10.3.XXX.XXX and SITE B has 10.40.XXX.XXX. Is it possible?

    Thanks

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sep 2, 2016, 7:11 AM

      @kwetiaw The internet is saying that it should be possible. One of the main questions is: Are there two different interfaces for the two different subnets on that server you are running dnsmasq on? Please tell us a bit more about your network setup.

      If it only has one interface you probably need to fiddle around with dhcp relay (aka ip helpers with cisco). Check out this discussion on the dnsmasq mailinglist (possible answer with a config snippet right at the end of the discussion)

      Otherwise I guess you should be fine using this kind of configuration (notice the different interfaces):

      dhcp-range=eth0,10.3.XXX.XXX,10.3.XXX.XXX,4h
      dhcp-range=eth1,10.40.XXX.XXX,10.40.XXX.XXX,4h
      

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      K 1 Reply Last reply Sep 5, 2016, 2:06 AM Reply Quote 0
      • G
        george1421 Moderator
        last edited by Sep 2, 2016, 12:15 PM

        In regards to the dhcp relay: Lets assume you have a main dhcp server at the HQ site and also dnsmasq at HQ. For the HQ site the dhcp server and dnsmasq server are in the same broadcast domain. So the dnsmasq server hears when some device requests a dhcp address. This is the design. Now when a client at a remote site requests a dhcp address the dhcp helper agent hears the request and forwards it to the dhcp server. Since this communication is a unicast communication the dnsmasq server doesn’t hear the dhcp request so no additional information is supplied.
        The solution to this is to add your dnsmasq server as the last dhcp server in your dhcp relay chain. You don’t want dnsmasq to supply the dhcp address only to be aware that a dhcp request was made and to supply the missing dhcp settings to the remote client via the dhcp relay.

        I know that was a lot of words to just say, add your dnsmasq server last in your dhcp=relay configuration. As for the dnsmasq configuration, I don’t know the exact settings only that it should work.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        K 1 Reply Last reply Sep 5, 2016, 12:37 AM Reply Quote 0
        • K
          kwetiaw @george1421
          last edited by Sep 5, 2016, 12:37 AM

          @george1421 @Sebastian-Roth

          These are pretty complex and way above my skillset i think. I might leave the 2 major locations separate with their own independent server.
          Im not too sure either our network setup here as I dont have access to it.

          @Sebastian-Roth I might try adding the dhcp range to my ltsp.conf and see what happens.

          Thanks

          1 Reply Last reply Reply Quote 0
          • K
            kwetiaw @Sebastian Roth
            last edited by Sep 5, 2016, 2:06 AM

            @Sebastian-Roth

            How do you specify the dhcp-range? lets say I want to cover all in 10.40.xxx.xxx range?

            is this correct?

            dhcp-range=10.40.1.10, proxy, 255.0.0.0
            

            https://wiki.fogproject.org/wiki/index.php?title=Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server

            W 1 Reply Last reply Sep 5, 2016, 4:44 PM Reply Quote 0
            • W
              Wayne Workman @kwetiaw
              last edited by Wayne Workman Sep 5, 2016, 10:44 AM Sep 5, 2016, 4:44 PM

              @kwetiaw I understand you are using dnsmasq in proxy mode?

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              K 1 Reply Last reply Sep 5, 2016, 10:54 PM Reply Quote 0
              • K
                kwetiaw @Wayne Workman
                last edited by Sep 5, 2016, 10:54 PM

                @Wayne-Workman

                Yes proxymode,
                I pretty much followed this guide to get my fog up and running
                https://wiki.fogproject.org/wiki/index.php?title=Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server

                W 1 Reply Last reply Sep 6, 2016, 1:29 AM Reply Quote 0
                • W
                  Wayne Workman @kwetiaw
                  last edited by Wayne Workman Sep 5, 2016, 7:35 PM Sep 6, 2016, 1:29 AM

                  @kwetiaw so can you run dnsmasq per location to make the needed dhcp adjustments?

                  Also I’ve never seen a multiscope dnsmasq implementation in proxy mode.

                  There’s a dnsmasq mailing list that Simon Kelly ( creator & maintainer of dnsmasq) runs, he accepts questions via this mailing list and answers them there also. All the emails are also archived on his site for others to browse. I might suggest asking Simon about it. He’s a super cool guy.

                  And, share what you find here. I’m on the mailing list so I’ll see your question and his response when it goes through. But I’d rather you post it and the outcome too.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sebastian Roth Sep 6, 2016, 8:47 AM Sep 6, 2016, 2:46 PM

                    @kwetiaw Well, dnsmasq in proxy mode might be a different story. I have to admit that I read your initial post about using dnsmasq because you are not allowed to touch the real DHCP servers but somehow wasn’t aware of that fact when posting my answer.

                    From the dnsmasq man page:

                    For directly connected networks (ie, networks on which the machine running dnsmasq has an interface) the netmask is optional: dnsmasq will determine it from the interface configuration. For networks which receive DHCP service via a relay agent, dnsmasq cannot determine the netmask itself, so it should be specified, otherwise dnsmasq will have to guess, based on the class (A, B or C) of the network address.

                    So we are back to my question on how is you server (running dnsmasq) connected to those two networks?

                    Maybe this could work (if you have two different NICs for those two networks - please post the full output of ip a s on that server):

                    dhcp-range=eth0,10.3.0.1,proxy
                    dhcp-range=eth1,10.40.0.1,proxy
                    

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    1 / 1
                    • First post
                      9/9
                      Last post

                    188

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project