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

    Hide/Secure FOG Client download page

    Scheduled Pinned Locked Moved
    General
    2
    3
    199
    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.
    • D
      DBCountMan
      last edited by DBCountMan

      I noticed the page/url where you can download the FOG client isn’t locked behind a login/auth so in case anyone is looking to lock it you can add these lines to /etc/apache2/apache2.conf:

      # Restrict access to FOG Client
      <Location "/fog/client/download.php">
          Require ip <*ip or subnet/mask*>
          Require all denied
      </Location>
      
      # Hide Server info
      ServerTokens Prod
      ServerSignature Off
      

      Restart apache2 service after making changes to apache2.conf

      What this will do is restrict access to the FOG Client downloads to specific IP or subnet. I have mine restricted to my lab/imaging network. I don’t think it is a good idea to have this download available to all production network users. I’m not 100% sure (devs please correct me) but I believe the FOG Client has the private key embedded in order to connect to the FOG server via HTTPS. I wouldn’t want that private key extracted from the client installer.

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @DBCountMan
        last edited by

        @DBCountMan Private key is built to the client at install time. The Public server ca cert is pulled at install time.

        So for this to be a “problem”

        The person would have to know the IP to download, as well as when installing the client on a new machine configuring it to send to that same server.

        What “problem” does this pose? The newly installed client would either already be registered to the FOG Server OR is a brand new and would be behind a “Pending Host/Pending MAC” on the FOG UI.

        What you’re suggesting isn’t difficult or problematic itself, so glad you’re sharing, just trying to understand that issue you’re attempting to solve with this beyond restricting it to whatever ip/subnet is being worked.

        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

        D 1 Reply Last reply Reply Quote 0
        • D
          DBCountMan @Tom Elliott
          last edited by

          @Tom-Elliott said in Hide/Secure FOG Client download page:

          Private key is built to the client at install time. The Public server ca cert is pulled at install time

          This is what I was unclear about. I thought the installer already had FOG’s private key. So each client gets its own private key?

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

          157

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project