ipnetworking.net

linux and networking articles

Category: Linux (page 1 of 5)

Unifi controller on Synology NAS

This post is about how to configure and run the Ubiquiti unifi controller on a Synology NAS using Docker.

Quite recently I purchased UAP-AC-PRO access-point. Part of the Ubiquiti unifi solution is the unifi controller. I have tried installing the unifi controller on a Ubuntu 16.04 (LTS) system with shared applications but that didn’t work out well because of ipv6 running on this box. The installation of the unifi controller failed because of this. Normally you would dedicate a VPS to the unifi controller function. :)

Then i thought about running the unifi controller on my Synology NAS DS412+. After some investigation I saw that docker was an application that was available and that someone actually published the unifi controller on dockerhub.

Here’s some small steps on what you need to do to get the unifi controller running on a Synology NAS running DSM 6.0.2-8451 Update 6 using the GUI:

1.) Install docker from package center

2.) Open docker and go to Register, search for unifi “https://hub.docker.com/r/jacobalberty/unifi/” and click download.

3.) Within a few minutes (depending on your download speed) the image should be available in the image tab.

4.) Within the image tab click start and choose a wise name to identify your own unifi controller (mine is called wifi-controller).

5.) Set the network settings 1:1 (TCP/UDP ports), make sure you do not have any other applications running on these ports (like SabNZB).

6.) Start the wifi-controller and access it through: https://<nas-ip>:8443

Have fun!

Python script for PPPoE and PPPoA users

I wrote this python script to check for the amount of PPPoE and PPPoA users on a Cisco IOS-XE box. It’s also used by a provisioning system to check whether a PPPoX session came up or not. (Note: still learning Python)

The output will look like this for PPPoA users:

The output will look like this for PPPoE users:

Here is the script, latest version is always on github

 

Python script for PIM SSM mappings

A small functional python script to generate a lot of static SSM mappings for IOS-XR. The entries of mcast-groups.txt is an excel file (not comma separated).

 

Synology NAS backup with rsync

This post will outline the configuration needed to backup a Synology NAS to a remote rsync server running Ubuntu server 16.04

rsyncd server configuration

Configure rsync to run as daemon

edit /etc/rsync/defaults and set:

edit /etc/rsyncd.conf and set the following vars, path should be edited to where your mountpoint is. Below mount point is a NFS mount.

edit /etc/rsyncd.secrets and add the following:

This is the username and password you will need to configure on the Synology NAS when setting up the backup target with hyperbackup.

Set the file permissions correctly:

After this restart rsyncd:

NFS mountpoint

The configuration below is my own setup and related to the content above.

edit /etc/fstab and add the following entry:

The ls command should now trigger automount:

 

Older posts

© 2017 ipnetworking.net

Theme by Anders NorenUp ↑