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

ProxyDHCP help

Scheduled Pinned Locked Moved
FOG Problems
3
8
2.4k
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
    kurtblah
    last edited by Jul 14, 2016, 7:30 PM

    I’m seeking a single-box solution for our fog servers used in our labs. Legacy BIOS is currently working great with the trunk builds, but I am trying to sort out a solution to support both BIOS and UEFI systems. Running DNSMasq on the fog server supports BIOS machines fine, but, as noted in previous threads, UEFI and BIOS cannot coexist with the version of DNSMasq I am using (on Fedora 23).

    The windows-based CloneDeploy proxy DHCP server, when run on windows client connected to the LAN, works as it should, supporting BIOS and UEFI machines that boot from the FOG server’s /tftpboot folder. However, I’d rather not have to worry about keeping track of this task on different hardware.

    My question is, is there something similar to this to run on the fog server instead of DNSMasq? Or does the most recent DNSMasq version solve the UEFI issue?

    I have tried using node-dhcproxy but it bombs out when a machine is discovered:

    [root@localhost node-dhcproxy]# node dhcproxy.js
    server listening: 0.0.0.0:67
    proxy listening: 0.0.0.0:4011
    14 Jul 13:55:14 - Got DHCPDISCOVER from 0.0.0.0:68 (54:04:a6:2f:3d:1e)  with packet length of 548 bytes
    Received DHCP DISCOVER
    buffer.js:69
          throw new Error(
          ^
    
    Error: If encoding is specified then the first argument must be a string
        at new Buffer (buffer.js:69:13)
        at Packet.toBuffer (/root/git/node-dhcproxy/lib/packet.js:58:12)
        at DHCPServer._send (/root/git/node-dhcproxy/lib/server.js:47:19)
        at DHCPServer.offer (/root/git/node-dhcproxy/lib/server.js:75:15)
        at dhcpd.discover (/root/git/node-dhcproxy/lib/dhcpd.js:97:17)
        at emitTwo (events.js:106:13)
        at DHCPServer.emit (events.js:191:7)
        at DHCPServer._emitPacket (/root/git/node-dhcproxy/lib/server.js:60:15)
        at DHCPServer.<anonymous> (/root/git/node-dhcproxy/lib/server.js:24:20)
        at emitTwo (events.js:106:13)
    [root@localhost node-dhcproxy]# 
    

    Any suggestions or direction on approaching this would be greatly appreciated. Solving this ProxyDHCP issue is the last hurdle in my path towards simplified lab support ( I am a college art professor with no IT staff support…)

    Thanks, -kurt

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Jul 14, 2016, 8:04 PM

      Grab the latest binary of dnsmasq. Support for UEFI in ProxyDHCP mode has been added. See here for details:
      https://forums.fogproject.org/topic/7424/dnsmasq-to-support-proxydhcp-for-uefi

      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
      • K
        kurtblah
        last edited by Jul 14, 2016, 9:32 PM

        That did it, problem solved. Thanks for the info on the new DNSMasq binary.

        -kurt

        1 Reply Last reply Reply Quote 1
        • S
          Sebastian Roth Moderator
          last edited by Jul 14, 2016, 11:00 PM

          @kurtblah Yeah, you are actually the first person I know who looked into using my node-dhcproxy. It’s been more like a proof of concept as not very many people use proxy DHCP and most of them are happy with dnsmasq.

          Would be still interesting to get this sorted for the future. Does it error out with the exact same stack trace on every received DHCP message?

          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 Jul 15, 2016, 1:36 AM Reply Quote 1
          • K
            kurtblah @Sebastian Roth
            last edited by Jul 15, 2016, 1:36 AM

            @Sebastian-Roth yes, consistent behavior every time, and almost instantly when a the client starts up. That’s about all the info I can give you, along with the screen capture above. I quite liked the one from the CloneDeploy project and its debug mode, too bad it only came in the windows flavor. I also tried out PyPXE and proxyDHCPd.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Jul 19, 2016, 1:53 PM

              @kurtblah Would you be able to capture those dhcp packets using wireshark/tcpdump? Would be of great help to fix the node-dhcproxy code. Let me know if you need help with those tools. Display filter bootp with wireshark is very helpful. Options for tcpdump would be -i eth0 -o outfile.pcap udp, then open the pcap file in wireshark, display filter bootp and export that to a new pcap file. Please upload the PCAP file here.

              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 Jul 20, 2016, 10:30 PM Reply Quote 1
              • K
                kurtblah @Sebastian Roth
                last edited by Jul 20, 2016, 10:30 PM

                @Sebastian-Roth I had to reinstall node.js, but I followed a different set of directions than before, and wouldn’t you know, node-dhcproxy functions as it should. I’m guessing that I did not have node.js setup properly the last time I ran it. I’ve attached the dump file anyway.

                0_1469053427459_dump.zip

                Thanks for your help on this, it is nice to have another option for our network environment should dnsmasq becomes unusable. -kurt

                W 1 Reply Last reply Jul 20, 2016, 10:32 PM Reply Quote 2
                • W
                  Wayne Workman @kurtblah
                  last edited by Jul 20, 2016, 10:32 PM

                  @kurtblah way to go, and awesome work @Sebastian-Roth!

                  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
                  • 1 / 1
                  1 / 1
                  • First post
                    4/8
                    Last post

                  194

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project