WebTitan

Device Configuration Examples

The examples below describe common OTG 2 situations for users and the JSON configuration you can use in Settings > Devices for that situation.

See Advanced Device Configuration for details on how to view and edit individual device configuration.

See Editing the Global Device Configuration Template for details on pushing configuration changes out to all devices.

Warning

Incorrect JSON configuration can cause OTG 2 devices to stop working, so please edit with caution and test carefully.

There is a helpful JSON formatted and validator available at https://jsonformatter.curiousconcept.com/ external_link.png

Example 1: If the public IP of a device is 192.0.2.0, use the default machine DNS resolver.

{"filters":[
{
"rule": "192.0.2.0",
"resolvers": []
}
]}

Example 2: If the public IP of a device is 192.0.2.0, use 198.51.100.0 as the DNS resolver.

{"filters":[
{
"rule": "192.0.2.0",
"resolvers": ["198.51.100.0"]
}
]}

Example 3: If the public IP of a device is either 192.0.2.0 or 198.51.100.0 then use 203.0.113.0 as the DNS resolver.

{"filters":[
{
"rule": "192.0.2.0",
"resolvers": ["203.0.113.0"]
}
,
{
"rule": "198.51.100.0",
"resolvers": ["203.0.113.0"]
}
]}

Example 4: If a device is accessing the domain “example.com”, use 192.0.2.0 as the DNS resolver.

{"filters":[
{
"resolvers": [
"192.0.2.0"
],
"domain": "example.com"
}]}

Example 5: When a device is accessing the domain “example.com”, and the public IP of the device is 192.0.2.0, use 198.51.100.0 as the DNS resolver.

{"filters":[
{
"resolvers": [
"198.51.100.0"
],
"domain": "example.com",
"rule": "192.0.2.0"
}
]
}

Example 6: To hide the OTG 2 OTG-W2-tray-icon.jpg icon from the system tray on a user machine after OTG 2 installation.

Note

The show/hide system tray feature is available with WebTitan OTG 2 for Windows version 2.0.3 or later.

In the configuration example below, "tray_type" can have the following values:

  • "hidden": hides the tray icon.

  • "default": reads the registry value of "hide" or "unhide".

  • "tooltip": show balloon is not checked in the system tray, the icon is shown.

 {
   "cfg":{
      "persistent":{
         "key":""
      },
      "runtime":{
         "locations":[
           
         ],
         "user":"",
         "otg":{
 "tray_type":"balloon"
         }
      }
   },
   "filters":[]}