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

SQUID + SQUIDPROXY: How to setup primary and secundary nodes with XMLRPC Sync?

Scheduled Pinned Locked Moved Cache/Proxy
6 Posts 1 Posters 909 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.
  • S
    SipriusPT
    last edited by SipriusPT Mar 3, 2022, 4:39 PM Mar 3, 2022, 3:46 PM

    Hello everyone,

    I've two pfsense boxes working on high availability, and I am struggling on how to setup both primary and secundary boxes in orders to replicate squid config, and use it on high availability.

    Regarding SQUID:

    On primary node, I've enabled cache, and setup a user (squid_sync) with password on system users, with previleges for:

    1ff6e652-f734-40c9-b87a-799e672f561b-image.png

    On secundary node, I've set https auth:

    7a3d4f25-c53c-4f54-b9a8-bd83cf3f1f68-image.png

    I've tried to add ACLs on primary node but nothing was passed to secundary node. How do I check if squid is synching? On logs there is nothing related with squid.

    Regarding SQUIDGUARD, I've:

    On primary node nothing.

    On secundary node, I've the following option but dont know what should I add:

    1964034a-e96b-43b2-9a8d-96c243c5eb1c-image.png

    From secundary node, I got continues:

    15:58:01 Exception calling XMLRPC method merge_installedpackages_section #-2 : Authentication failed: not enough privileges
    15:58:01 Exception calling XMLRPC method exec_php #-2 : Authentication failed: not enough privileges

    But this account has admin privileges to all webgui.

    From internet I dont find any documentation or tutorials on how to perform this. If you have any useful likes, feel free to post.

    Any of you, that has already setup this, can share your knowledge on how to perform it?

    Thanks in advance!

    1xSG-4860-1U
    1xSG-3100
    2xpfSense Virtual Machines

    S 1 Reply Last reply Mar 3, 2022, 4:52 PM Reply Quote 0
    • S
      SipriusPT @SipriusPT
      last edited by Mar 3, 2022, 4:52 PM

      Seems like its working, but it was not supposed to update squid ACLs?

      fa63748a-a1ff-4743-9f91-eb6dad2a8419-image.png

      1xSG-4860-1U
      1xSG-3100
      2xpfSense Virtual Machines

      S 1 Reply Last reply Mar 3, 2022, 5:14 PM Reply Quote 0
      • S
        SipriusPT @SipriusPT
        last edited by Mar 3, 2022, 5:14 PM

        CARP Status VIP on Squid, doesnt seem to be working, when choosing the same interface in both units (I think that both services are stopped on secundary boxes till secundary box choosen CARP is set to master):

        Scenarios:

        • If I disable CARP on primary node, both squid and squidproxy services continues running, but on secundary node those services continues stopped.
        • If I enable CARP on primary node, all services remain the same, on primary node all running, on secundary node, nothing.

        If I try to enable those services on secundary box, and enable CARP on primary node, those services on secundary box, stop working.

        1xSG-4860-1U
        1xSG-3100
        2xpfSense Virtual Machines

        S 1 Reply Last reply Mar 3, 2022, 5:16 PM Reply Quote 0
        • S
          SipriusPT @SipriusPT
          last edited by Mar 3, 2022, 5:16 PM

          Pfsense versions: 21.05.2
          Squid versions: 0.4.45_8
          Squidproxy versions: 1.16.18_20

          1xSG-4860-1U
          1xSG-3100
          2xpfSense Virtual Machines

          S 1 Reply Last reply Mar 3, 2022, 6:00 PM Reply Quote 0
          • S
            SipriusPT @SipriusPT
            last edited by Mar 3, 2022, 6:00 PM

            I was finally able to sync both services settings, but only notice now that those XMLRPC Sync's must be done on primary node, after setting in both, all settings have been passed.

            To pass all settings I had to switch from stopped to run, both services. Seems like while those are not running, there is no sync being done.

            My question is, with CARP Status sync setup in both services, it is expected that those services to be turn off when that CARP VIP interafce on secundary node is on backup mode?

            1xSG-4860-1U
            1xSG-3100
            2xpfSense Virtual Machines

            S 1 Reply Last reply Mar 4, 2022, 4:57 PM Reply Quote 0
            • S
              SipriusPT @SipriusPT
              last edited by SipriusPT Mar 4, 2022, 5:03 PM Mar 4, 2022, 4:57 PM

              After several tests, enabling CARP Status VIP on squid of primary node, it changes on secundary node.

              But If I disable primary CARP temporary (or even disconnect the cable of that interface), and secundary node, changes to master, there is no changes on squid and squidguard services in both nodes. In other words it doenst change anything.

              If I leave CARP Status VIP disabled, all services work in both sides. When I set to none on CARP Status VIP, those services on secundary node, come back to life.

              There is any impact on both enduser and backoffice sides, on leaving CARP Status VIP disabled on a high availability system?

              1xSG-4860-1U
              1xSG-3100
              2xpfSense Virtual Machines

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