Ubiquiti
Cloud Gateway Ultra
SSL Certificate
Certificate files location: /data/unifi-core/config/$filewithnumber.cert and .key
Nginx Configuration: /data/unifi-core/config/http/local-certs.conf
systemctl status|restart nginx
Commands
Basic Commands
info → Displays device information (model, firmware, IP, etc.).
set-default → Resets the device to factory settings.
reboot → Restarts the device.
poweroff → Shuts down the device.
uptime → Shows how long the device has been running.
Network & Configuration Commands
ifconfig → Displays network interface details.
ip address add / dev → Assigns a static IP.
ip route → Shows current gateway and routing table.
ping → Tests network connectivity.
arp -a → Displays the ARP table.
cat /mnt/.rwfs/data/data/udapi-config/dnsmasq.lease → Shows DHCP leases.
UniFi-Specific Commands
set-inform http://:8080/inform → Connects the device to a UniFi Controller.
upgrade → Manually updates firmware.
fwupgrade: perform firmware upgrade using previously downloaded firmware
ubnt-systool cputemp → Displays CPU temperature.
ubnt-systool cpuload → Shows CPU load.
ubnt-systool portstatus → Displays port status.
ubnt-ipcalc --network 192.168.1.42/24: get network of ip addressubn
/etc/init.d/S95unifios restart → Restarts the UniFi OS web interface.
Assign Static route to client via DHCP
Go to Vlan, scroll down and click add custom DHCP Options
Fill in:
Name: some name
Code: 121
Type: Hex Array
Hex Value of route and next hop, converted using Configuring Classless Static Route Option
Hex Array Example
Network: 192.168.2.0/24 - Gateway: 192.168.3.1: 18:c0:a8:02:c0:a8:03:01
Mask length 24: 18
Route Network 192.168.2: c0:a8:02
Gateway 192.168.3.1: c0:a8:03:01
Network: 192.168.2.100/32 - Gateway: 192.168.1.1: 20:c0:a8:02:64:c0:a8:01:01
Mask length 32: 20
Route Network 192.168.2.100: c0:a8:02:64
Gateway 192.168.1.1: c0:a8:01:01
Reference
Last updated