Friday, 22 May 2015

Updating Ubiquiti over SSH command line

For anyone who uses Ubiquiti kit (and if you don't why not.. their kit rocks) the following 3 commands allow you to update the config over ssh:

vi /tmp/system.cfg

cfgmtd -f /tmp/system.cfg -w

/usr/etc/rc.d/rc.softrestart save

Useful *nix commands

Carving DNS A record lookups using tcpdump, grep and awk:

tcpdump -lnv port 53 | grep -E 'A\?' | awk '{print $(NF-6),$(NF-5),$(N