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

Fog on Existing DHCP server

Scheduled Pinned Locked Moved Solved
FOG Problems
4
8
3.2k
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.
  • V
    vascomorais
    last edited by Jun 23, 2018, 8:51 PM

    Hello, i am installing FOG for the very first time, i had chosen centos at the begining, but i then watched a tutorial online and he used kubuntu, so i am now using that to install fog.

    Since i have a DHCP server that is provided by my router, i chose fog server not to use it’s DHCP server, but when i install it says that i should enable option 66 or 67 and forward it to my fog server ip address etc etc…
    The thing is… i don’t have that option on my router, and i am not using a dhcp server on linux or windows.

    I am stuck, what should i do? creating a firewall with pfsence is allways an option, but i am trying to figure out how people would do this with a simple modem/router

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Jun 23, 2018, 9:57 PM

      pfsense is a good option, but not the only one.

      If you are using a soho (home router) that doesn’t support dhcp booting options, you can use / install a service on the FOG server called dnsmasq. This is a dhcp proxy service that will supply the boot information only to the pxe booting client.

      Just install dnsmasq from your linux distro’s repository. Then edit / create a file called ltsp.conf in the /etc/dnsmasq.d directory. In that ltsp.conf file put in the following :

      # Don't function as a DNS server:
      port=0
      
      # Log lots of extra information about DHCP transactions.
      log-dhcp
      
      # Set the root directory for files available via FTP.
      tftp-root=/tftpboot
      
      # The boot filename, Server name, Server Ip Address
      dhcp-boot=undionly.kpxe,,<fog_server_IP>
      
      # Disable re-use of the DHCP servername and filename fields as extra
      # option space. That's to avoid confusing some old or broken DHCP clients.
      dhcp-no-override
      
      # inspect the vendor class string and match the text to set the tag
      dhcp-vendorclass=BIOS,PXEClient:Arch:00000
      dhcp-vendorclass=UEFI32,PXEClient:Arch:00006
      dhcp-vendorclass=UEFI,PXEClient:Arch:00007
      dhcp-vendorclass=UEFI64,PXEClient:Arch:00009
      
      # Set the boot file name based on the matching tag from the vendor class (above)
      dhcp-boot=net:UEFI32,i386-efi/ipxe.efi,,<fog_server_IP>
      dhcp-boot=net:UEFI,ipxe.efi,,<fog_server_IP>
      dhcp-boot=net:UEFI64,ipxe.efi,,<fog_server_IP>
      
      # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
      pxe-prompt="Booting FOG Client", 1
      
      # The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
      # Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
      # This option is first and will be the default if there is no input from the user.
      pxe-service=X86PC, "Boot to FOG", undionly.kpxe
      pxe-service=X86-64_EFI, "Boot to FOG UEFI", ipxe.efi
      pxe-service=BC_EFI, "Boot to FOG UEFI PXE-BC", ipxe.efi
      
      dhcp-range=<fog_server_ip>,proxy
      

      Don’t forget to replace <fog_server_ip> in the above text with the IP address of your fog server. The tag appears many times.

      If your distro has a config file in that directory, remove it and only place one config file (ltsp.conf) in that directory path.

      One other point to check, make sure the version of dnsmasq installed is 2.76 or later. You can find out by using the following command: dnsmasq -v

      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!

      1 Reply Last reply Reply Quote 0
      • V
        vascomorais
        last edited by Jun 24, 2018, 9:14 PM

        uhhh, nice, i have been configuring pfsense to replace my router, but i am stuck with a weird issue.

        • non related fog project stuff here –

        begin
        After configuring all the corresponding vlans for GPON, IPTV and VOIP, i get an ip that doesn’t lead to the internet, and i don’t know why, usualy vodafone ip’s start with 89. something, i was getting an ip starting with 47.
        The weirdest thing is that i couldn’t ping any dns’s or i couldn’t ping my own ip on the internet (using another internet connection) but i could ping my own ip, and if i moved my address 1 number forward or backward i could ping them as well…
        it was as if my internet connectiong was accepted into a limbo pit of some sort, the worst part is that vodafone doesn’t provide tech support for anything that doesn’t use their own stuff…
        So my second option was to use my router and connect it to the pfsense wan port, and have a router on top of a router… and use the second’s dhcp service…
        Not good
        end.

        Anyway your method is interesting, and it would solve me a lot of problems.
        is there a way i could reach my pxe boot from the exterior?

        G 1 Reply Last reply Jun 25, 2018, 12:14 AM Reply Quote 0
        • G
          george1421 Moderator @vascomorais
          last edited by Jun 25, 2018, 12:14 AM

          @vascomorais said in Fog on Existing DHCP server:

          is there a way i could reach my pxe boot from the exterior?

          From some place else on the internet? In concept, yes. But you would open both your fog server and target computer up to compromise. Also you would need to configure the remote dhcp server to point/load the boot file from your fog server, plus your fog server would need to have an internet addressable IP address.

          Generally, its possible but a bad idea for security reasons.

          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!

          1 Reply Last reply Reply Quote 0
          • V
            vascomorais
            last edited by Jun 28, 2018, 12:55 AM

            well… got pfsense and fog already is booting into his pxe menu. Thanks!
            I am now reading the rest of the tutorials you mentioned so i can get ahead and configure this awsome server.
            many thanks George!

            1 Reply Last reply Reply Quote 0
            • T
              TechWiz
              last edited by Nov 26, 2018, 11:15 AM

              Hi George1421

              Thanks for the pxe update.

              With this change what other changes do you need to make with the fog server default install.

              Thx

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Nov 26, 2018, 12:43 PM

                @TechWiz It’s probably best if you open a new topic and tell us more about you setup. What kind of DHCP server, FOG version, VLANs?, etc.

                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

                T 1 Reply Last reply Nov 26, 2018, 1:29 PM Reply Quote 1
                • T
                  TechWiz @Sebastian Roth
                  last edited by Nov 26, 2018, 1:29 PM

                  @Sebastian-Roth Hi Sir I will do so thnx

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

                  183

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project