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

Reverse Squid no longer working on latest development branch

2.5 Development Snapshots (Retired)
6
32
2.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.
  • N
    nafeasonto
    last edited by stephenw10 Mar 22, 2020, 12:28 PM Mar 21, 2020, 3:49 PM

    I am starting to get this error:

    FATAL: Bungled /usr/local/etc/squid/squid.conf line 89: http_port Array:80 accel defaultsite=mysite.com vhost

    and my Squid can longer start.

    1 Reply Last reply Reply Quote 0
    • K
      kiokoman LAYER 8
      last edited by Mar 21, 2020, 4:43 PM

      2.4.5 or 2.5.0 ?

      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
      Please do not use chat/PM to ask for help
      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

      N 1 Reply Last reply Mar 21, 2020, 5:06 PM Reply Quote 1
      • N
        nafeasonto @kiokoman
        last edited by Mar 21, 2020, 5:06 PM

        @kiokoman 2.5.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Mar 21, 2020, 8:49 PM

          And you do actually see that line in squid.conf?

          That site is something you have configured?

          Steve

          N 1 Reply Last reply Mar 21, 2020, 10:23 PM Reply Quote 0
          • N
            nafeasonto @stephenw10
            last edited by nafeasonto Mar 21, 2020, 10:23 PM Mar 21, 2020, 10:23 PM

            @stephenw10 yes that line is in squid.conf. been running this for over a year. The latest dev branch seems to have broken something.

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Mar 21, 2020, 11:42 PM

              So the actual line in the file is?:
              http_port Array:80 accel defaultsite=mysite.com vhost

              Is it only the reverse proxy failing?

              That line looks like it's from a much older Squid version. The only recent thing I'm seeing is this:
              https://github.com/pfsense/FreeBSD-ports/pull/776

              What snapshot were you running previously when it was working?

              Steve

              1 Reply Last reply Reply Quote 0
              • N
                nafeasonto
                last edited by nafeasonto Mar 21, 2020, 11:50 PM Mar 21, 2020, 11:47 PM

                Yes, mysite.com is obliviously my outside DNS not mysite.com. And i am running the latest package I can get from the available packages. About 3 snaphots ago, i don't remember which on. Omg i forgot to mention I have Pfsense firewall on what it is running on.

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Mar 22, 2020, 12:27 AM

                  'Array' there looks like it might be incorrect. It should be the listening listening interface

                  Try editing the file to correct that and starting the service. It will be overwritten if you make changes but will prove the issue.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • N
                    nafeasonto
                    last edited by Mar 22, 2020, 12:55 AM

                    What should I change it to?

                    1 Reply Last reply Reply Quote 0
                    • M
                      MikeV7896
                      last edited by MikeV7896 Mar 22, 2020, 2:15 AM Mar 22, 2020, 2:14 AM

                      I think Steve is saying to remove the Array: part of the line, so it should be just http_port 80 accel...

                      Stop the service, edit the file, and restart the service. Just remember that making any changes to Squid settings via the GUI will likely reintroduce the Array: bit back into the file, at least until the issue is fixed.

                      The S in IOT stands for Security

                      1 Reply Last reply Reply Quote 0
                      • S
                        serbus
                        last edited by Mar 22, 2020, 3:36 AM

                        Hello!

                        For reference:

                        http://www.squid-cache.org/Versions/v3/3.5/cfgman/http_port.html

                        John

                        Lex parsimoniae

                        N 1 Reply Last reply Mar 22, 2020, 4:12 AM Reply Quote 0
                        • N
                          nafeasonto @serbus
                          last edited by Mar 22, 2020, 4:12 AM

                          @serbus That worked. Thanks. But why is it doing that? Who can inform the devs to fix that for PFSENSE?

                          1 Reply Last reply Reply Quote 0
                          • K
                            kiokoman LAYER 8
                            last edited by kiokoman Mar 22, 2020, 10:54 AM Mar 22, 2020, 10:51 AM

                            @nafeasonto said in Squid no longer working on latest development branch:

                            /usr/local/etc/squid/squid.conf

                            i'm unable to reproduce this, everything seems to work fine on my side
                            the generation of the squid.conf is ok idk maybe some glich on your pfsense

                            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                            Please do not use chat/PM to ask for help
                            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                            S 1 Reply Last reply Mar 22, 2020, 12:30 PM Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Mar 22, 2020, 12:25 PM

                              It looks like it should be producing a line like: http_port ipaddress:80 accel defaultsite=mysite.com vhost

                              It should be choosing the IP address from an array of the ip addresses on the interfaces by the interface it's listening on.

                              I would guess that last change that went in to add IPv6 missed something for the reverse proxy case.

                              I also note 'vhost' is a deprecated option. Reverse Squid could use some love. 😉

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • S
                                stephenw10 Netgate Administrator @kiokoman
                                last edited by Mar 22, 2020, 12:30 PM

                                @kiokoman said in Squid no longer working on latest development branch:

                                i'm unable to reproduce this

                                In reverse mode?

                                1 Reply Last reply Reply Quote 0
                                • K
                                  kiokoman LAYER 8
                                  last edited by Mar 22, 2020, 12:31 PM

                                  i put some random stuff inside and it was working, i will try again 🤷

                                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                  Please do not use chat/PM to ask for help
                                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Mar 22, 2020, 12:55 PM

                                    May be something else required to 'tickle' it. Like something in the array contents... or a lack of contents etc.

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      kiokoman LAYER 8
                                      last edited by kiokoman Mar 22, 2020, 2:14 PM Mar 22, 2020, 1:00 PM

                                      ah ok found it.. yeah it put Array in the config
                                      bug https://redmine.pfsense.org/issues/10367

                                          foreach (explode(",", $ifaces) as $i => $iface) {
                                                  $real_ifaces[] = squid_get_real_interface_address($iface);
                                                  if ($real_ifaces[$i][0]) {
                                      

                                      $real_ifaces[] contain only "Array"

                                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                      Please do not use chat/PM to ask for help
                                      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                      1 Reply Last reply Reply Quote 3
                                      • N
                                        nafeasonto
                                        last edited by nafeasonto Mar 22, 2020, 5:05 PM Mar 22, 2020, 5:05 PM

                                        Good job finding it. I love when people listen to me. Thanks for taking the time to read the post.

                                        1 Reply Last reply Reply Quote 0
                                        • V
                                          viktor_g Netgate
                                          last edited by Mar 22, 2020, 6:41 PM

                                          Fix:
                                          https://github.com/pfsense/FreeBSD-ports/pull/805

                                          1 Reply Last reply Reply Quote 3
                                          10 out of 32
                                          • First post
                                            10/32
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.