User Tools

Site Tools


hstarwiki:cust:gen:unifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hstarwiki:cust:gen:unifi [2016-10-06 T 21:37]
admin [Editing Files]
hstarwiki:cust:gen:unifi [2019-06-02 T 22:18] (current)
admin [Linux Installation]
Line 19: Line 19:
   * Cloud Key controller or Unifi Secure Gateway   * Cloud Key controller or Unifi Secure Gateway
 **IMPORTANT** This device must be on at all times and exist on the network at all times. If it does not, the APs will will allow access with or without a password, and will do traffic shaping, but the portal will not exist. The Unifi AP's do not work like standard ubnt devices and can not be logged into via a web portal to control, though they can be accessed via ssh. **IMPORTANT** This device must be on at all times and exist on the network at all times. If it does not, the APs will will allow access with or without a password, and will do traffic shaping, but the portal will not exist. The Unifi AP's do not work like standard ubnt devices and can not be logged into via a web portal to control, though they can be accessed via ssh.
-====Installation====+====Installation of network and hardware====
   * Setup Router and LAN.    * Setup Router and LAN. 
   * Router can be simple with no wifi.   * Router can be simple with no wifi.
-  * The router will NOT be part of the Unifi system. Think of the system as different subsets+  * The router can be independent or a Unifi router managed by the controller.  
-  * The subnet that is in the main router and access the controller and Unifi APs +  * There can be main kind of subnet configurations
-  * the subnet that client is on who connects to a Unifi AP+  ** A simple subnet that is the encompasses the main routercontroller and Unifi APs 
 +  ** With Unifi routers and othe rhardware you can have different subnet for clients who connect to a Unifi AP
   * The LAN that the Unifis are on can be any combination of Routers, switches, wireless links.   * The LAN that the Unifis are on can be any combination of Routers, switches, wireless links.
   * **Important** The Ubuiquti Unifi APs are the only devices that can act as APs and be managed by the controller. You can not for instance use a loco to connect to an Unifi and keep it in bridge mode. (this is not fully tested, but apparently will not work.)   * **Important** The Ubuiquti Unifi APs are the only devices that can act as APs and be managed by the controller. You can not for instance use a loco to connect to an Unifi and keep it in bridge mode. (this is not fully tested, but apparently will not work.)
-  * Option 1: Download controller software and install on machine. +  * Controller in 2 options: 
-  * Option 2: Go to IP address of Cloud key (may need to use nmap to discover IP) and register with a ubnt account. +  ** Option 1: Download controller software and install on machine. 
-  * Setup an accountremember user and password+  ** Option 2: Go to IP address of Cloud key (may need to use nmap to discover IP) and register with a ubnt account 
-====Access Unifi Controler Configuration====+==== Linux Installation ==== 
 +===Manually download and install=== 
 +These are simple instructions udpated in 2019 
 +to download the unifi controller software manuallyYou can find the link for the most current version on the website 
 +   wget unifiCurrent.deb 
 +You should update and upgrade the repositories and packages 
 +  sudo apt update 
 +  sudo apt upgrade 
 +Now the package can be manually installed and will perform the needed dependencies. 
 +  sudo dpkg -i unifi_sysvinit_all.deb 
 +  sudo apt install -f 
 +Once installedbe sure to enabled it for startup 
 +  sudo systemctl enable unifi 
 +There may be some other steps below that were performed AFTER these three commands listed directly above. Might take some tiral and error. 
 + 
 +====Other ways of installing==== 
 +Here are some other ways of installing tha are either old, not fully tested, or did not work properly. 
 +\\ Very good instructions are here:https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu 
 +\\ here is a summary of the type of commands you do: 
 +  * Add the unify repositories by creating a file in /etc/apt/sources.list.d/100-ubnt.list 
 +  sudo nano /etc/apt/sources.list.d/100-ubnt.list 
 +<code> 
 +deb http://www.ubnt.com/downloads/unifi/debian testing ubiquiti 
 +deb http://www.ubnt.com/downloads/unifi/debian oldstable ubiquiti 
 +deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti 
 +</code> 
 +  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50 
 +  sudo apt-get update 
 +  sudo apt-get install unifi 
 +====Access Local Unifi Controler Configuration====
 The controller acts as a daemon and web host. It can be accessed either: The controller acts as a daemon and web host. It can be accessed either:
   * Windows: Click on software icon to start controller software   * Windows: Click on software icon to start controller software
   * The window will say "launch a browser to manage the network" Or:   * The window will say "launch a browser to manage the network" Or:
-  * Go to: https://[localhost or IP of controller]:8443/manage/accounts/login+  * Go to: https://[localhost or IP of controller]:8443
 Cloud access Cloud access
   * Go To: https://unifi.ubnt.com/#/   * Go To: https://unifi.ubnt.com/#/
Line 40: Line 70:
   * Click Unifi system you want to control   * Click Unifi system you want to control
   * Click "Launch Site" (lower area on page)   * Click "Launch Site" (lower area on page)
- 
 ====Cloud Access==== ====Cloud Access====
-The cloud access software can now be accessed with both the local controller software (as of 4.3) and Cloud key. This allows you to connect your controller, wherever it is, to the Ubiquiti server. You must have a registered account. You can use the same for forums. This account will be remotly linked to your controller. Once you have it linked, you can then remotely manage your unifi system. Multiple unifi systems can be managed from the cloud access.+The cloud access software can now be accessed with both the local controller software (as of 4.3) and Cloud key. This allows you to connect your controller, wherever it is, to the Ubiquiti server. You must have a registered account. You can use the same for forums. This account will be remotely linked to your controller. Once you have it linked, you can then remotely manage your unifi system. Multiple unifi systems can be managed from the cloud access.
  
 ====== Unifi AP's ====== ====== Unifi AP's ======
Line 55: Line 84:
 Once you adopt a new unifi, it will gain the user name and password that was set up for the contoller. This is very important when doing some of the steps below Once you adopt a new unifi, it will gain the user name and password that was set up for the contoller. This is very important when doing some of the steps below
 ==== Changing Controllers ==== ==== Changing Controllers ====
-If you want to move a unifi AP to a different contoller, you need to follow these steps. This is especially important when setting up a new unifi on a network without DHCP+If you want to move a unifi AP to a different controller, you need to follow these steps. This is especially important when setting up a new unifi on a network without DHCP
   * Setup a primary unifi controller on the desired network. Know what IP your controller is on.   * Setup a primary unifi controller on the desired network. Know what IP your controller is on.
   * install temp unifi Controler on a DHCP network   * install temp unifi Controler on a DHCP network
Line 63: Line 92:
   * Go into the AP settings and change IP address to something that will work on master controller network   * Go into the AP settings and change IP address to something that will work on master controller network
   * Apply   * Apply
-  * Move Unifi AP to desired network+  * Move Unifi AP to desired network (set inform will not work if not on the same network)
   * SSH into AP and run this command:   * SSH into AP and run this command:
-  * $set-inform http://[ip of master controller]:8080/inform+  * $set-inform %%http://[ip.of.master.controller]:8080/inform%%
   * exit   * exit
   * Access Master controller   * Access Master controller
   * The AP should automatically be provisioning or already adopting   * The AP should automatically be provisioning or already adopting
-==== Remote Reset==== 
-If you can ssh into device you can remove its adoption with some commands. THis is helpful when the device is difficult to physically reach. 
-  * ssh 
-  * $set-defualt 
  
-==== Change Inform IP ==== +NOTE!! Although this method did work at one timeit also failed on a second try. It may be that you will need to set the DHCP network below the main controller but where it can ping the main controller. Then You could actually try to adopt the unifi in a more traditional sense. 
-An alternative way to change an AP to a different controllerwhen the AP has an IP that you can ssh into: +
-  * ssh into unifi AP +
-  * $set-inform http://[IP of controller]:8080/inform+
 You can read more here: https://community.ubnt.com/t5/UniFi-Wireless/Adopting-your-Existing-APs-to-set-inform-to-L3-Controller/td-p/471517 You can read more here: https://community.ubnt.com/t5/UniFi-Wireless/Adopting-your-Existing-APs-to-set-inform-to-L3-Controller/td-p/471517
- 
 ====== Editing Client Splash Page ====== ====== Editing Client Splash Page ======
 ====Enable Editing==== ====Enable Editing====
Line 88: Line 110:
   * > Authentication > No Authentication. Here you can also set various rules such as password or hotspot for paying, but mostly we just want "No authentication" to have a simple agree to terms and service   * > Authentication > No Authentication. Here you can also set various rules such as password or hotspot for paying, but mostly we just want "No authentication" to have a simple agree to terms and service
   * Settings > guest Control > Portal Customization > Override Default Templates > Check to Enable. This is the step that will create a directory and files to edit.   * Settings > guest Control > Portal Customization > Override Default Templates > Check to Enable. This is the step that will create a directory and files to edit.
 +==== Editing index file====
 +There is a single index.html file that holds most of the information for the different web portals. So if you want to edit the no auth page, or voucher page, you edit this. It is also important to know that there is a folder called “portal” which contains all the files needed for the web hosting. You can make a compressed version of this folder as a backup if you have multiple things you are editing. 
 ==== View Splash page ==== ==== View Splash page ====
 To view the splash page even after accepting terms go to: To view the splash page even after accepting terms go to:
Line 102: Line 126:
 Once you have access to the folder structure Once you have access to the folder structure
  
-====Editing Files==== +====== Data Locations and backup ====== 
- +Most of the Main data for the unifi is located in: 
-There is a single index.html file that holds most of the information for the different web portalsSo if you want to edit the no auth page, or voucher page, you edit thisIt is also important to know that there is a folder called "portal" which contains all the files needed for the web hosting. You can make a compressed version of this folder as backup if you have multiple things you are editing+  * Linux: /usr/lib/unifi/data/ 
-====== hotspot and vouchers ======+====Backup==== 
 +Backup is simple: 
 +https://help.ubnt.com/hc/en-us/articles/226218448-UniFi-How-to-Configure-Auto-Backup 
 +\\ Basically you have to go to the unifi setting and at the bottom is the autobackup settingsfrom there you can set the frequencyIf you want to transfer the file to another device, you can use cron job
 +====== Hotspot and Vouchers ======
 Work in progress Work in progress
 ====== Untested ====== ====== Untested ======
Line 118: Line 146:
   * There are many models, but the one that this link refers to is here:   * There are many models, but the one that this link refers to is here:
   * http://www.amazon.com/dp/B008XVAVAW?psc=1   * http://www.amazon.com/dp/B008XVAVAW?psc=1
 +====== Troubleshooting====
 +log
 + /usr/lib/unifi/logs/server.log
 + /usr/lib/unifi/logs/mongod.log
 +==== resetting configuration ====
 +If you are having issues with login, like you forgot your password, you can reset the basic config by renaming the file that holds initial setup. Then restart the service. Here is how to do it on linux:
 +  sudo mv /var/lib/unifi /var/lib/unifi.old
 +  sudo systemctl restart unifi
 +==== Remote Reset====
 +If you can ssh into device you can remove its adoption with some commands. THis is helpful when the device is difficult to physically reach.
 +  ssh
 +  set-defualt
 +==== Isolated DHCP server ====
 +In order to have a separate DHCP server that Clients get when attached from AP's you need the Ubiquiti "Unifi secure gateway". Otherwise you have to use the DHCP of the gateway the unifi is attached to. The APs, nor the controller software will not give out DHCP on their own.
 +==== Wireless uplink and Mesh ====
 +You can have the AP's connect to another AP for its uplink. THis is called "wireless uplink" in the ubiquiti nomenclature. To do this, you can follow this guide. We will have unifi A as the Master AP and unifi B as the device with the wireless uplink to unifi A
 +  * A and B should be adopted by the controller in the traditional unifi sense where they are both on the same subnet and connected via LAN (even if the LAN is through a wireless bridge.)
 +  * Remove B from the network so it is powered, but no longer on the subnet via LAN.
 +  * In the controller page, refresh until it is disconnected, wait for it to say "Isolated"
 +  * Choose B. The right pane will appear
 +  * choose Configure in the left pane
 +  * Below, drop down "Wireless Uplink"
 +  * A should be listed as long as its in range. Click the Chain Icon and you are done.
 +  * It will take a few minutes but that will work
 +Done! Different models might have different compatibility. You can only have 4 sub APs off of one, and sub APs can not host other sub APs.
 +==== Wireless Uplink restrictions ====
 +Here is a lot of information about Wireless Uplink: https://help.ubnt.com/hc/en-us/articles/205146000-UniFi-Set-up-UAPs-in-wireless-uplink-topology
 +\\ With a unifi mesh device, It is important to know that the wireless uplink uses the 5ghz channel and is not available with 2ghz. So if you use an omni 2ghz, and disable 5, you will not get wireless uplink.
 +\\ Here is some information about some of the restrictions, with 2 specific points quoted.
 +\\ https://community.ubnt.com/t5/UniFi-Wireless/UniFi-Mesh-vs-AirMax-Rockets-Bullets-for-open-mine/m-p/1988550/highlight/true#M237441
 +<code>
 +07-12-2017 10:43 AM
 +rebelwireless
 +UAP-AC-M units with AM-2G15-120, AM-2G16-90, AMO-2G10, or AMO-2G13 antennas may be a good choice.  These are used by many people for outdoor coverage.  These antennas are tuned to 2.4Ghz.  The 5Ghz radio will work with them but expect gain to be significantly lower than a 5Ghz antenna.
  
 +07-12-2017 01:30 PM
 +Dave-D
 +No: you should not use these 2.4GHz antennas as if
 +they were dual-band--they are not. If you must use
 +these, you should turn off 5GHz entirely. There will
 +be no uplink service available.    Dave
 +</code>
hstarwiki/cust/gen/unifi.1475789850.txt.gz · Last modified: 2017-03-03 T 17:15 (external edit)