Unified Firewall HTTP-Proxy Whitelist

With the following Addin script you can create new HTTP-Proxy Whitelists and fill them with content.

/**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports.main = function (config, context) {
  const ufApi = config.getUfApi();

  ufApi.modifySettings('http-proxy-settings/default?ignore_warnings=true', {
      "whitelists": [
          {
              "name": "Name of 1st Whitelist",
              "description": "Description of Whitelist",
              "whitelist": [
                  "1.1.1.1",
                  "8.8.8.8",
                  ".lancom.de"

              ],
              "active": true // true or false
          }
          /* Include another bracket for 2nd or 3rd whitelist in one script
          ,
          {
            "description": "Description of Whitelist",
              "whitelist": [
                  "1.1.1.1",
                  "8.8.8.8",
                  ".lancom.de"

              ],
              "active": true // true or false
          }
          */
      ]
  });

};

download json file

results matching ""

    No results matching ""