Skip to main content

Posts

Showing posts from November, 2017

Mongodb Systemd service on Ubuntu 16.04

Getting inspiration from Digital Ocean article on setting up mongodb on Ubuntu 16.04. There is a small caveat which i found today in the [Service] text and the config path /path/to/mongo/config which is causing my mongodb.service to fail to run. Here is my take based on the mongodb configuration file path on my Ubuntu 16.04: [Unit] Description=High-performance, schema-free document-oriented database After=network.target [Service] User=mongodb ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf [Install] WantedBy=multi-user.target If you have noticed in the original documentation the ExecStart points to /etc/mongod.conf, whereas on my system it should point to /etc/mongodb.conf. That's all for today. Follow my blog with Bloglovin

Setting up Firewall ports on Ubiquiti Unifi AP Controller @ Ubuntu 16.04

I am going to list TCP/UDP ports that need to be opened in setting up of Ubiquiti AP AC products on a locally based controller powered by Linux/GNU OS. The information contained herein are gleaned from various sources including the friendly Ubiquiti community. The tool used is UFW on a Ubuntu 16.04.3 device. The Ubiquiti reference page is here: https://help.ubnt.com/hc/en-us/articles/218506997-UniFi-Ports-Used Let's begin: sudo ufw limit 22/tcp   /* rate limit for openssh sudo ufw allow 80,443/tcp   /* for http and https connection respectively sudo ufw allow 8080,8443/tcp   /* for locally based unifi controller connection                                                      with the AP sudo ufw allow 3478/udp    /* STUN sudo ufw allow 10001/udp   /* ap discovery (optional) sudo ufw allow 8880,8843/tcp   /* for guest portals (optional for home user                                                         unless operating a homestay biz) sudo ufw allow out 22/tcp   /