This is an old revision of the document!
COPY CONFIG.GATEWAY.JSON TO UNIFI CONTROLLER
Mac OS X / Linux
- Open Terminal on your machine
- Navigate to the folder where the config.gateway.json file resides on your computer.
- Enter the following :
python -m SimpleHTTPServer 8000
- Port 8000 is the default, however, you can change to any unused port and use below.
Note: This will create a webserver from your machine.
- Open another Terminal instance.
- 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/
- The following command will pull the config.gateway.json file from the directory where the file resides on your pc and copy it to the controller.
wget http://X.X.X.X:8000/config.gateway.json
where X.X.X.X is the IP of the computer above.
- Rename the file to replace the current version.
mv config.gateway.json.1 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.