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

    Squid GUI "Custom options" Line feed problem …

    pfSense Packages
    2
    6
    3.6k
    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.
    • C
      cylent
      last edited by

      If you add any options via the web gui to the custom options in squid the result in the squid.conf file is without line feeds.

      for example

      if i put:

      refresh_pattern -i exe$ 0 100% 999999
      refresh_pattern -i zip$ 0 100% 999999

      and i look at squid.conf it shows up like this:
      refresh_pattern -i exe$ 0 100% 999999refresh_pattern -i zip$ 0 100% 999999

      this is a problem? i am using firefox if that matters…

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Did you read the note under that box?

        You can put your own custom options here, separated by semi-colons ( ; ). They'll be added to the configuration. They need to be squid.conf native options, otherwise squid will NOT work.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • C
          cylent
          last edited by

          so even with the ; they will still be one line. squid knows to separate the two lines?

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            The ; is a trick to make it work. The parser in the squid package splits it on ; and makes it separate lines in the actual config.

            Just follow what it says, and it will work.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • C
              cylent
              last edited by

              thanks that did work!

              on a side note; please tell me why there are lines for "delay_pools" when i have explicitly set all delays to off or rather left them at 0…
              all four boxes in the traffic management page are set to 0
              ever box below is unchecked

              so why are there delay_pool options in the file?

              ((i didnt want to start a new thread about this))

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                I would start a new thread for that. I really don't know the answer and nobody would find that question in this thread. Your best chance at getting an answer would be a new topic with a more relevant subject line.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

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