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

proxyDHCP Issue

Scheduled Pinned Locked Moved Unsolved
FOG Problems
proxydhcp issue
4
42
26.7k
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.
  • E
    Exig3nci
    last edited by Wayne Workman Jul 9, 2015, 3:17 PM Jul 9, 2015, 9:09 PM

    Hello,
    I’m created a virtual mahine with Ubunutu Server (12.04.5) I’ve got the FOG software installed, now I’m trying to setup dnsmasq.
    I’ve set the ltsp.conf file with the following, let’s say the ip for the server is 10.10.8.55

    port=0
    tftp-boot=\tftpboot
    dhcp-option=undionly.kpxe,10.10.8.155,10.10.8.155
    dhcp-option=17,/images
    dhcp-option=vendor:PXEClient,6,2b
    dhcp-o-override
    pxe-prompt="Press F8 for boot menu", 3
    pxe-service=X86PC, "Boot from network", undionly.kpxe
    pxe-service=X86, "Boot fom local hard disk", 0
    dhcp-range=10.10.8.155,proxy
    

    I try to run “sudo service dnsmasq restart,” and it spits out: * Restarting DNS forwarder and DHCP server configuration syntax check [fail]
    I also try to run “sudo dnsmasq -d,” but I get another error saying port 53 is already in use.
    Is there something I’m missing?

    Mod edited to use code box.

    W 6 Replies Last reply Jul 9, 2015, 9:15 PM Reply Quote 0
    • W
      Wayne Workman @Exig3nci
      last edited by Wayne Workman Jul 9, 2015, 3:18 PM Jul 9, 2015, 9:15 PM

      @Exig3nci Are you sure that you need to use ProxyDHCP ?

      And, this is what my house dnsmasq settings are: (wondering if you copied? lol)

      port=0
      log-dhcp
      tftp-root=/tftpboot
      dhcp-boot=undionly.0,10.0.0.3,10.0.0.3
      dhcp-option=17,/images
      dhcp-option=vendor:PXEClient,6,2b
      dhcp-no-override
      pxe-prompt="Press F8 for boot menu", 3
      pxe-service=X86PC, “Boot from network”, undionly
      pxe-service=X86PC, "Boot from local hard disk", 0
      dhcp-range=10.0.0.3,proxy
      

      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
      • W
        Wayne Workman @Exig3nci
        last edited by Jul 9, 2015, 9:19 PM

        @Exig3nci Oh duh.

        So, make sure you have a symbolic link for undionly.kpxe

        ln -s /tftpboot/undionly.kpxe /tftpboot/undionly.kpxe.0
        

        Yes you need to use the full paths in the command.

        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
        • W
          Wayne Workman
          last edited by Jul 9, 2015, 9:27 PM

          And for the port issue, I’d say figure out what’s running on port 53… dnsmasq is supposed to use 53…

          Try to reboot? List your processes with the “top” command to see if there is anything weird going on?

          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/

          E 1 Reply Last reply Jul 9, 2015, 9:42 PM Reply Quote 0
          • E
            Exig3nci @Wayne Workman
            last edited by Jul 9, 2015, 9:42 PM

            @Wayne-Workman Thanks for the reply, I added the symbolic link.
            But for port 53, I still get the same issue after a restart. What exavtly would I be looking for with the top command?
            It’s just a bunch of text that I’m not too familiar with aha.

            W 1 Reply Last reply Jul 9, 2015, 9:45 PM Reply Quote 0
            • W
              Wayne Workman @Exig3nci
              last edited by Wayne Workman Jul 9, 2015, 3:45 PM Jul 9, 2015, 9:45 PM

              @Exig3nci said:

              But for port 53, I still get the same issue after a restart.

              Check this out: http://www.cyberciti.biz/faq/find-out-which-service-listening-specific-port/

              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/

              E 1 Reply Last reply Jul 13, 2015, 11:05 PM Reply Quote 0
              • T
                Tom Elliott
                last edited by Jul 9, 2015, 10:50 PM

                Comment the port=0 line.

                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                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

                E 1 Reply Last reply Jul 13, 2015, 11:11 PM Reply Quote 0
                • E
                  Exig3nci @Wayne Workman
                  last edited by Jul 13, 2015, 11:05 PM

                  @Wayne-Workman so I still get the error even though it’s listed in netstat.
                  Also, to answer your original question, it’s because our DHCP here in my environment is handled through the switches instead of a DHCP server. And I don’t have any Cisco training to make changes lol.7-13-2015 4-03-49 PM.jpg

                  1 Reply Last reply Reply Quote 0
                  • E
                    Exig3nci @Tom Elliott
                    last edited by Jul 13, 2015, 11:11 PM

                    @Tom-Elliott I still get the same issue unfortunately.

                    W 1 Reply Last reply Jul 14, 2015, 12:36 AM Reply Quote 0
                    • W
                      Wayne Workman @Exig3nci
                      last edited by Jul 14, 2015, 12:36 AM

                      @Exig3nci

                      I ran this command on my box at home (which uses dnsmasq) and get this output:

                      [root@fog ~]# netstat -tulpn
                      Active Internet connections (only servers)
                      Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
                      tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      684/smbd            
                      tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -                   
                      tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      9497/php-fpm: maste 
                      tcp        0      0 0.0.0.0:41098           0.0.0.0:*               LISTEN      672/rpc.statd       
                      tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      684/smbd            
                      tcp        0      0 0.0.0.0:55118           0.0.0.0:*               LISTEN      -                   
                      tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      9407/rpcbind        
                      tcp        0      0 0.0.0.0:20048           0.0.0.0:*               LISTEN      9452/rpc.mountd     
                      tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      7734/vsftpd         
                      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      659/sshd            
                      tcp6       0      0 :::443                  :::*                    LISTEN      9506/httpd          
                      tcp6       0      0 :::445                  :::*                    LISTEN      684/smbd            
                      tcp6       0      0 :::42142                :::*                    LISTEN      672/rpc.statd       
                      tcp6       0      0 :::35007                :::*                    LISTEN      -                   
                      tcp6       0      0 :::2049                 :::*                    LISTEN      -                   
                      tcp6       0      0 :::9090                 :::*                    LISTEN      1/systemd           
                      tcp6       0      0 :::3306                 :::*                    LISTEN      7437/mysqld         
                      tcp6       0      0 :::139                  :::*                    LISTEN      684/smbd            
                      tcp6       0      0 :::111                  :::*                    LISTEN      9407/rpcbind        
                      tcp6       0      0 :::80                   :::*                    LISTEN      9506/httpd          
                      tcp6       0      0 :::20048                :::*                    LISTEN      9452/rpc.mountd     
                      tcp6       0      0 :::22                   :::*                    LISTEN      659/sshd            
                      udp        0      0 0.0.0.0:4011            0.0.0.0:*                           3385/dnsmasq        
                      udp        0      0 0.0.0.0:2049            0.0.0.0:*                           -                   
                      udp        0      0 0.0.0.0:67              0.0.0.0:*                           3385/dnsmasq        
                      udp        0      0 0.0.0.0:68              0.0.0.0:*                           940/dhclient        
                      udp        0      0 0.0.0.0:69              0.0.0.0:*                           7693/xinetd         
                      udp        0      0 0.0.0.0:111             0.0.0.0:*                           9407/rpcbind        
                      udp        0      0 0.0.0.0:678             0.0.0.0:*                           9407/rpcbind        
                      udp        0      0 127.0.0.1:849           0.0.0.0:*                           672/rpc.statd       
                      udp        0      0 0.0.0.0:58511           0.0.0.0:*                           672/rpc.statd       
                      udp        0      0 0.0.0.0:36026           0.0.0.0:*                           -                   
                      udp        0      0 0.0.0.0:20048           0.0.0.0:*                           9452/rpc.mountd     
                      udp        0      0 0.0.0.0:14057           0.0.0.0:*                           940/dhclient        
                      udp6       0      0 :::36715                :::*                                -                   
                      udp6       0      0 :::49021                :::*                                940/dhclient        
                      udp6       0      0 :::2049                 :::*                                -                   
                      udp6       0      0 :::111                  :::*                                9407/rpcbind        
                      udp6       0      0 :::678                  :::*                                9407/rpcbind        
                      udp6       0      0 :::48245                :::*                                672/rpc.statd       
                      udp6       0      0 :::20048                :::*                                9452/rpc.mountd     
                      
                      

                      Notice that dnsmasq is using ports 4011 and 67.

                      My home fog server’s IP address is 10.0.0.3 and I use undionly.kkpxe as my boot file. Instead of making a symbolic link (because that’s never worked for me), I just copy undionly.kkpxe to undionly.0 like this:

                      cp /tftpboot/undionly.kkpxe /tftpboot/undionly.0
                      

                      However Tom and everyone else will recommend creating a symbolic link… and to that I say good luck 🙂 lol.
                      Here is the contents of my /etc/dnsmasq.d/ltsp.conf

                      [root@fog ~]# cat /etc/dnsmasq.d/ltsp.conf
                      port=0
                      log-dhcp
                      tftp-root=/tftpboot
                      dhcp-boot=undionly.0,10.0.0.3,10.0.0.3
                      dhcp-option=17,/images
                      dhcp-option=vendor:PXEClient,6,2b
                      dhcp-no-override
                      pxe-prompt="Press F8 for boot menu", 3
                      pxe-service=X86PC, “Boot from network”, undionly
                      pxe-service=X86PC, "Boot from local hard disk", 0
                      dhcp-range=10.0.0.3,proxy
                      

                      However, if you look a the output you posted, it says that dnsmasq is already running… both with IPv6 and with IPv4.

                      Since it’s saying port 53 is already in use, and port 53 is being used by dnsmasq, then I’d say kill dnsmasq and anything else that appears to be using port 53 with the “kill” command and it’s process ID. (pid).

                      Here’s how you’d list all processes that dnsmasq has:

                      ps axjf | grep dnsmasq
                      

                      one of the numbers given by that command will be the PIDs of dnsmasq. You’d then kill those tasks like this (we’re using the example number 3385 for this):

                      kill 3385
                      

                      or this:

                      kill -KILL 3385
                      

                      After you kill the instances of dnsmasq, check your port usage again… see if it’s free’d up.

                      Then cross your fingers and try to start dnsmasq, then check it’s status after it’s started.

                      Let us know how it goes.

                      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
                      • W
                        Wayne Workman @Exig3nci
                        last edited by Wayne Workman Jul 13, 2015, 6:46 PM Jul 14, 2015, 12:42 AM

                        @Exig3nci

                        Oh.

                        I found your problem

                        Line two needs a forward slash instead of back slash. 🙂

                        Line 6 you missed a “n”
                        dhcp-o-override should be dhcp-no-override

                        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/

                        E 1 Reply Last reply Jul 15, 2015, 5:00 PM Reply Quote 0
                        • E
                          Exig3nci @Wayne Workman
                          last edited by Jul 15, 2015, 5:00 PM

                          @Wayne-Workman That worked! I tried your method of copying the file worked I believe, now I’m stuck with the PXE-E51 message when I try to boot into PXE on a machine, any advice on troubleshooting?

                          I see you’re a regular here Mr. Workman. I tried looking at this:
                          https://forums.fogproject.org/topic/4867/issues-booting-to-fog-using-dnsmasq
                          I ran the ls command for the tftpboot folder. Below is what it spat out if that helps at all.
                          7-15-2015 9-59-02 AM.jpg

                          W 1 Reply Last reply Jul 15, 2015, 6:03 PM Reply Quote 0
                          • W
                            Wayne Workman @Exig3nci
                            last edited by Jul 15, 2015, 6:03 PM

                            @Exig3nci said:

                            I’m stuck with the PXE-E51 message when I try to boot into PXE on a machine

                            That means the machine didn’t get either DHCP offers or ProxyDHCP offers.

                            Check that your firewall is off on the FOG server, check that SELinux is off.

                            Beyond that, fire up TCPDump and see what’s actually happening. https://wiki.fogproject.org/wiki/index.php/Troubleshoot_TFTP#Troubleshooting

                            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/

                            E 1 Reply Last reply Jul 16, 2015, 11:49 PM Reply Quote 0
                            • E
                              Exig3nci @Wayne Workman
                              last edited by Jul 16, 2015, 11:49 PM

                              @Wayne-Workman What’s a good way to share files between an ubuntu server vm and windows 7? I’ve tried auto fs, and installing VMWare tools, but I’m getting no luck. And I can’t get to the file.

                              W 1 Reply Last reply Jul 17, 2015, 12:00 AM Reply Quote 0
                              • W
                                Wayne Workman @Exig3nci
                                last edited by Jul 17, 2015, 12:00 AM

                                @Exig3nci Several options.

                                You can place it inside your fog server’s /tftpboot directory and use tftp commands in Win7 to get the file via command prompt as seen here: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_TFTP#Try_to_get_a_file_with_Windows: Or you can place the file inside of your /images directory and then use FTP to get the file as seen here: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#Try_to_get_a_file_with_Windows: Or, you can connect to a windows share on your Ubuntu machine and copy the file there as seen here: https://wiki.fogproject.org/wiki/index.php/Fedora_21_Server#mounting_a_smb_share.2FNAS_at_boot

                                The easiest and quickest way is to copy it to your /tftpboot directory and then use WIn7’s command prompt to just get the file. Using this method will (normally) download the file to %userprofile%

                                To find out where the %userprofile% is, at your win7 command prompt, issue:

                                echo %userprofile%
                                

                                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
                                • W
                                  Wayne Workman @Exig3nci
                                  last edited by Jul 17, 2015, 12:57 PM

                                  @Exig3nci Did you get the file transferred? When you have ProxyDHCP issues, you’re number one tool is TCPDump and Wireshark.

                                  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/

                                  E 1 Reply Last reply Jul 17, 2015, 9:04 PM Reply Quote 0
                                  • E
                                    Exig3nci @Wayne Workman
                                    last edited by Jul 17, 2015, 9:04 PM

                                    @Wayne-Workman Thanks again Wayne, wish I could focus on this project, but I’m also busy with HelpDesk tickets. Sorry for the late reply, but I managed to get the file to my windows 7 PC, but I keep getting this error when I open the file.
                                    7-17-2015 2-03-39 PM.jpg

                                    W 1 Reply Last reply Jul 17, 2015, 9:57 PM Reply Quote 0
                                    • W
                                      Wayne Workman @Exig3nci
                                      last edited by Wayne Workman Jul 17, 2015, 3:57 PM Jul 17, 2015, 9:57 PM

                                      @Exig3nci said:

                                      I keep getting this error when I open the file.

                                      I’ve gotten that error the last time I tried to do a TCPDump at home with a dnsmasq issue… That was maybe two weeks ago.

                                      Because you too have gotten this error, it leads me to think that either something about dnsmasq changed or something about Wireshark changed, or something about TCPDump changed - and I doubt that TCPDump changed - and I doubt that dnsmasq changed…

                                      I see you’re using the latest version of Wireshark. Could you try an older version? Maybe 6 months older?

                                      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/

                                      E 1 Reply Last reply Jul 20, 2015, 8:09 PM Reply Quote 0
                                      • E
                                        Exig3nci @Wayne Workman
                                        last edited by Jul 20, 2015, 8:09 PM

                                        @Wayne-Workman unfortunately the issue is still the same.
                                        Is there a way to cap the file when using TCPdump? I’ve tried -s 65535 but I still get the same result.

                                        W 1 Reply Last reply Jul 21, 2015, 4:22 AM Reply Quote 0
                                        • W
                                          Wayne Workman @Exig3nci
                                          last edited by Jul 21, 2015, 4:22 AM

                                          @Exig3nci Not ignoring you, just thinking about the issue and problems.

                                          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
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            11/42
                                            Last post

                                          248

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project