5.5 – IP filter (iptables)

You can set up IP filters for SparkView.

First, save you ip filters into a JSON file. Here is the format of the IP filter configuration file:

{
  "zoneRules": {
    "HTTP_API": {
      "allow": true,
      "ranges": [
        {
          "from": "192.168.12.100",
          "to": "192.168.12.200"
        },
        {
          "from": "169.254.84.132"
        }
      ]
    },
    "TCP": {
      "allow": true,
      "ranges": [
        {
          "from": "192.168.12.100",
          "to": "192.168.12.200"
        },
        {
          "from": "192.168.12.10",
          "to": "192.168.12.20"
        },
        {
          "from": "169.254.84.132"
        }
      ]
    }
  }
}

Then, you need to specify the location of this file in gateway.conf:
iptables=C:\\workspace\\data\\iptables.json

There are 3 zones available in SparkView:

Rules for accessing config.html:

  1. Always accessible from the localhost
  2. Accessible from anywhere if remoteManage=true in gateway.conf and correct password is provided
  3. Accessible if remoteManage=false and source IP is allowed in iptables

Revision #3
Created 5 April 2022 15:14:45 by Julian
Updated 14 March 2023 14:07:55 by Julian