notebook:copy_config.gateway.json_to_unifi_controller

This is an old revision of the document!


COPY CONFIG.GATEWAY.JSON TO UNIFI CONTROLLER

  • Open Terminal on your machine
  • Navigate to the folder where the config.gateway.json file resides on your computer.
  • Enter the following :
    • scp config.gateway.json <user>@x.x.x.x:~

Note:

  • <user> - your user account on the UniFi Controller's operating system
  • x.x.x.x - UniFi Controller's IP

  • SSH into your controller.
  • Navigate to the location of the folder <unif-base> where config.gateway.json should exist.
    • UniFi - Where is <unifi_base> - for information on where the folder resides.
    • Unifi Controller Example (with only one site in default):
      • cd /srv/unifi/data/sites/default/
  • Rename the file to replace the current version.
    • sudo mv ~/config.gateway.json config.gateway.json

Warning: Adding a custom config.gateway.json could cause unintended consquences such as a provisioning loop on your USG. Please be careful and validate your file via JSONlint before creating or replacing on your controller; however, this DOES NOT promise proper provisioning…ONLY that the JSON is valid

  • notebook/copy_config.gateway.json_to_unifi_controller.1527471689.txt.gz
  • Last modified: 2025/05/12 13:37
  • (external edit)