• 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

Scheduled Pinned Locked Moved 2.5 Development Snapshots (Retired)
32 Posts 6 Posters 3.0k Views 5 Watching
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.
  • S Offline
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    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 Offline
                      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 Offline
                        stephenw10 Netgate Administrator
                        last edited by Mar 22, 2020, 7:09 PM

                        Rapido! 😁

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          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 Offline
                            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 Offline
                              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 Offline
                                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 Offline
                                  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 Offline
                                    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 Offline
                                      nafeasonto @stephenw10
                                      last edited by Mar 23, 2020, 3:18 PM

                                      @stephenw10 okay great, thank you.

                                      1 Reply Last reply Reply Quote 0
                                      • N Offline
                                        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
                                        • S Offline
                                          stephenw10 Netgate Administrator
                                          last edited by Mar 24, 2020, 11:23 AM

                                          It reverted the file? Curious.

                                          You could apply it using the system patches package. You can set that to auto-apply if required.

                                          Steve

                                          1 Reply Last reply Reply Quote 0
                                          20 out of 32
                                          • First post
                                            20/32
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received