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

    Webgui ['squid custom squid.conf options' textbox] encoding format?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 805 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.
    • B Offline
      brokendash
      last edited by

      I'm trying to pull some settings out of a recent config backup I made.  The squid3 package has a textbox in the webgui where one can enter whatever custom squid.conf config directives desired, i've located what I'm looking for in the config.xml, however when viewing the config.xml in a text editor the it looks like some encoding has been done on the data that is entered in the textbox via the webgui. I understand why it would be done that way from a design perspective but is there a simple way of decoding the data back into human readable format?

      screenshot.png
      screenshot.png_thumb

      1 Reply Last reply Reply Quote 0
      • BBcan177B Offline
        BBcan177 Moderator
        last edited by

        If you goto Diagnostics:Command Prompt in the GUI -

        And in the PHP Execute Box type :

        print base64_decode("  ENTER THE CODED STRING HERE  ");

        It will output the decoded string to the Screen. You will need to find the coded string in the /conf/config.xml file.

        Hope this helps!

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • B Offline
          brokendash
          last edited by

          thanks sir you rock…..  :-)

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