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

    XMLRPC Sync Squid

    Scheduled Pinned Locked Moved Cache/Proxy
    5 Posts 2 Posters 1.4k 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.
    • vallumV
      vallum
      last edited by

      Hey Everyone,

      I have like 10 squid instance running at different locations

      In Squid:-
      Is it possible to sync only few Tabs, like :-
      1. Squid Traffic Managment Settings
      2. Squid Access Control Lists

      I don't want to sync Authentication information from my primary squid. (because i have different radius key for all my locations with different ldap servers)

      Thanks :)

      Manu

      1 Reply Last reply Reply Quote 0
      • vallumV
        vallum
        last edited by

        @RootMd5:

        Hey Everyone,

        I have like 10 squid instance running at different locations

        In Squid:-
        Is it possible to sync only few Tabs, like :-
        1. Squid Traffic Managment Settings
        2. Squid Access Control Lists

        I don't want to sync Authentication information from my primary squid. (because i have different radius key for all my locations with different ldap servers)

        Thanks :)

        Any suggestion guys?

        Manu

        1 Reply Last reply Reply Quote 0
        • vallumV
          vallum
          last edited by

          @marcelloc
          Hi marcello can you give suggestion please :)

          Manu

          marcellocM 1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc @vallum
            last edited by marcelloc

            @rootvallum said in XMLRPC Sync Squid:

            @marcelloc
            Hi marcello can you give suggestion please :)

            You will need to code a bit to get it working. Take a look on sync replication code under squid.inc. You will see all the "tabs" it includes before pushing to backup server.
            If you comment tabs you do not want to sync, you can forward your configuration to other boxes.

            	$xml = array();
            	$xml['squid'] = $config['installedpackages']['squid'];
            	$xml['squidupstream'] = $config['installedpackages']['squidupstream'];
            	$xml['squidcache'] = $config['installedpackages']['squidcache'];
            	$xml['squidantivirus'] = $config['installedpackages']['squidantivirus'];
            	$xml['squidnac'] = $config['installedpackages']['squidnac'];
            	$xml['squidtraffic'] = $config['installedpackages']['squidtraffic'];
            	$xml['squidreversegeneral'] = $config['installedpackages']['squidreversegeneral'];
            	$xml['squidreversepeer'] = $config['installedpackages']['squidreversepeer'];
            	$xml['squidreverseuri'] = $config['installedpackages']['squidreverseuri'];
            	$xml['squidauth'] = $config['installedpackages']['squidauth'];
            	$xml['squidusers'] = $config['installedpackages']['squidusers'];
            	/* Assemble XMLRPC payload */
            	$params = array(XML_RPC_encode($password), XML_RPC_encode($xml));
            

            Remember to disable replication on squid before any package update/upgrade.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            vallumV 1 Reply Last reply Reply Quote 1
            • vallumV
              vallum @marcelloc
              last edited by

              @marcelloc said in XMLRPC Sync Squid:

              @rootvallum said in XMLRPC Sync Squid:

              @marcelloc
              Hi marcello can you give suggestion please :)

              You will need to code a bit to get it working. Take a look on sync replication code under squid.inc. You will see all the "tabs" it includes before pushing to backup server.
              If you comment tabs you do not want to sync, you can forward your configuration to other boxes.

              	$xml = array();
              	$xml['squid'] = $config['installedpackages']['squid'];
              	$xml['squidupstream'] = $config['installedpackages']['squidupstream'];
              	$xml['squidcache'] = $config['installedpackages']['squidcache'];
              	$xml['squidantivirus'] = $config['installedpackages']['squidantivirus'];
              	$xml['squidnac'] = $config['installedpackages']['squidnac'];
              	$xml['squidtraffic'] = $config['installedpackages']['squidtraffic'];
              	$xml['squidreversegeneral'] = $config['installedpackages']['squidreversegeneral'];
              	$xml['squidreversepeer'] = $config['installedpackages']['squidreversepeer'];
              	$xml['squidreverseuri'] = $config['installedpackages']['squidreverseuri'];
              	$xml['squidauth'] = $config['installedpackages']['squidauth'];
              	$xml['squidusers'] = $config['installedpackages']['squidusers'];
              	/* Assemble XMLRPC payload */
              	$params = array(XML_RPC_encode($password), XML_RPC_encode($xml));
              

              Remember to disable replication on squid before any package update/upgrade.

              Thanks for your Guidance marcello .
              I'll try this :)

              Manu

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