• 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.
  • 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
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Mar 22, 2020, 7:09 PM

                          Rapido! 😁

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

                            nice work as always viktor 👏 👏 😀

                            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                            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 23, 2020, 12:53 AM Reply Quote 0
                            • N
                              nafeasonto @kiokoman
                              last edited by Mar 23, 2020, 12:53 AM

                              @kiokoman you updating the package on Pfsense?

                              1 Reply Last reply Reply Quote 0
                              • K
                                kiokoman LAYER 8
                                last edited by Mar 23, 2020, 9:40 AM

                                nope, i'm just a regular user like you, viktor have done the work, now Jim and Renato will do the update

                                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                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 1
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Mar 23, 2020, 12:24 PM

                                  Pretty simple patch, you could just modify /usr/local/pkg/squid_reverse.inc yourself to test it.

                                  https://github.com/pfsense/FreeBSD-ports/commit/7716b1cb15b3d5ad7985118bc4716565a1c7dbfc?diff=unified

                                  Steve

                                  1 Reply Last reply Reply Quote 1
                                  • N
                                    nafeasonto
                                    last edited by nafeasonto Mar 23, 2020, 2:14 PM Mar 23, 2020, 2:13 PM

                                    @stephenw10 The modifications in the link you told me worked. Thanks.

                                    Will you be modifying the package for the future?

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Mar 23, 2020, 3:18 PM

                                      Not me personally but it will almost certainly be pulled in, yes.

                                      Steve

                                      N 1 Reply Last reply Mar 23, 2020, 3:18 PM Reply Quote 1
                                      • N
                                        nafeasonto @stephenw10
                                        last edited by Mar 23, 2020, 3:18 PM

                                        @stephenw10 okay great, thank you.

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          nafeasonto
                                          last edited by Mar 24, 2020, 2:07 AM

                                          @stephenw10 For some reason on reboot, it went back to the old settings.

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