Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Modifying Login Screen looks / logo.svg

    Scheduled Pinned Locked Moved webGUI
    5 Posts 3 Posters 183 Views
    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.
    • N
      NetworkTechie
      last edited by

      Hi there,

      I am an IT guy, and i work multiple sites and jobs, and everywhere i go i try to implement PFsense firewalls. Because i have many locations to manage i would like to modify the login pages for the devices. Because of eye strain i have already set all my managed PFsense boxes to the Dark theme, and i try to differ the login page colours between devices. But this only gets me this far.

      What i really want to be able to do, is to change the PFSense logo on the login page to something customised, or add another image next to it, and add a bit of text on the login page somewhere, to warn the local techs not to touch this, or to call me if they want something.

      I have looked into how the pfsense logo on the login page is set up, it seems to be built from the file /usr/local/www/logo.svg.
      But when i try to modify this .svg file with a customised one, the login page breaks, and will no longer let me log in. I have tried to open the file in Adobe Illustrator, replaced the contents with my own vector based graphics, and uploading it. But it will always break the login page.
      The one thing i did manage, is to make the logo 1px by 1%, and managed to do the same to the text on the bottom of the page. Leaving a clean page with only a hostname and login prompt.

      But to be clear, i do not sell any devices, and i am not trying to rebrand the software. And the interface after login is fine as is. I would just like to obfuscate the device the login page is for, and neatly differentiate between a multitude of similar pfsense devices by adding the customer or event logo to it. And since the firewall is my biggest pal on any network, it gets my nerd juices flowing if they can greet me in a customised fashion. But i appreciate the thing i am trying to accomplish might be frowned upon because of a potential rebranding hazard.

      Even so i would like to know if it is at all possible to replace the logo on the login page with a custom one, or to add one next to it, somehow. And if not, i would like to know if this (customised login screens) is a feature that might be implemented at some point, or if it never will and why (possibly due to the rebranding issue?)

      Thanks in advance.

      GertjanG S 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @NetworkTechie
        last edited by

        Probably this :

        @NetworkTechie said in Modifying Login Screen looks / logo.svg:

        or if it never will and why (possibly due to the rebranding issue?)

        so no documented way of doing things.
        That said, I'm just a user like you. I can't speak for 'them'.

        Making your own Theme might be a solution ?

        But what you do with 'your' files is, imho, up to you ^^

        @NetworkTechie said in Modifying Login Screen looks / logo.svg:

        to warn the local techs not to touch this

        If you trust the guys who have the password, what about : install the Notes package, and create some sort of log book, and 'Read me first' messages and so on.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        N 1 Reply Last reply Reply Quote 0
        • N
          NetworkTechie @Gertjan
          last edited by

          @Gertjan thanks for your reply. I have not yet looked into theming for pfsense, but i suppose that would be the next step. Thing is though, i am fine with the default themes, other than the way the login page looks. And i thought a modification that minor might have been easier to do to an existing theme. And since the current themes all have a relatively similar login page, i fear it might be by design the logo on the login page was rendered un-customisable.

          From what the internet told me there used to be a regular logo.png image that was easily replaced, but some years back it was changed to an SVG image. It seems some were able to modify that for a while but the articles on it i found stopped pretty quickly after the change, so it seems to me they may have made it very hard to replace logo.svg by design. If so it might also be impossible to do by creating my own theme. Before i follow this another rabbit hole, does anyone know if a custom theme would allow full customization of the login page by any chance?

          If you trust the guys who have the password
          

          my experience in letting other people touch my setup, has mainly been to not trust anyone as far as i can throw them ;oD

          1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @NetworkTechie
            last edited by

            @NetworkTechie If this is what you mean this should be in 2.8 and soon 25.03:
            https://redmine.pfsense.org/issues/9293

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            N 1 Reply Last reply Reply Quote 0
            • N
              NetworkTechie @SteveITS
              last edited by

              @SteveITS Thanks for pointing that out! That is indeed very close to what i need. The customisable message will do fine for my clients, i hope it will allow for an image to be put into it.

              And my nerdy self would still like to replace the pfsense logo with something else. So i could be able to have a clean black login screen with merely a login prompt and a HAL9000 eye staring at me, for example :-)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.