Author: Dave Lasley

  • Active Directory Auth – Ubiquiti EdgeRouter

    In this tutorial, we will configure EdgeRouter Active Directory Authentication. This will allow you to login to your EdgeRouter using your Active Directory accounts. There are a few different methods to go about this, we will use `sssd` because it is recommended by [[https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/SSSD-Introduction.html|Red Hat]] # [[http://community.ubnt.com/t5/EdgeMAX-CLI-Basics-Knowledge/Add-Other-Debian-Packages-to-EdgeOS/ta-p/413071|Add Debian Repos]] # Escalate to root {{{ sudo…

  • Send Emails From Gmail Through Shell/Script – Linux

    [[[TOC]]] ——- =Intro= Sometimes there is a need to send an email via command line, or in a script (such as using PHP’s `mail()` method); but there is not an MTA (postfix, sendmail, etc) running on the machine. Note that while it is possible to set an MTA up as a gmail smarthost, they will…

  • Configure OpenVPN with X.509 – Ubiquiti EdgeRouter Lite

    In this tutorial, we will be configuring an OpenVPN server with X.509 certs on a Ubiquiti EdgeRouter Lite. We will also go through how to connect a remote Linux client to the VPN. Below is a physical network diagram: {{{ +——————————–+ | Ubiquiti ERL | (Public IP)| |192.168.69.254 =============={eth2 eth0}============= | \ / | |…

  • Configure Linux for Active Directory Authentication With SSSD

    In this tutorial, we will configure a Linux box to authenticate against Active Directory. There are a few different methods to go about this, we will use `sssd` because it is recommended by [[https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/SSSD-Introduction.html|Red Hat]] # Remove pam_ldap if it is installed {{{ # Red Hat/CentOS/Fedora yum remove pam_ldap # Debian/Ubuntu apt-get remove pam_ldap }}}…

  • NAT Reflection – Ubiquiti EdgeRouter Lite & Dynamic IP

    [[[TOC]]] = Intro = NAT Loopback/hairpin/reflection allows internal clients to access internal resources using an external IP/hostname. This is useful when you run a server inside of a local network, and would like to access it using your domain name/external IP. NAT reflection is fairly simple to accomplish, but becomes a manual process if you…

  • Initial Configuration – Ubiquiti EdgeRouter Lite

    [[[TOC]]] This tutorial will walk you through setting up a Ubiquiti EdgeRouter Lite for use in a SOHO environment using CLI commands. Below physical architecture diagram of the network we will be creating: [[image:erl_soho.png|medium|link=source]] # Login to ERL via SSH, go to configure mode {{{ configure }}} —— =Interfaces= In this section, we will setup…

  • Ubuntu prompting for upgrade when none is available

    After upgrading to Ubuntu 13.10, my system was continually telling me that there was an update available and to run `do-release-upgrade` to install it. Running this command yields {{{ root@server:/home/dlasley# do-release-upgrade Checking for a new Ubuntu release No new release found }}} but the system still prompts for an update. This is due to an…

  • Install Doxygen From Source

    * Install dependencies {{{ apt-get install graphviz flex bison }}} * Pull git snapshot {{{ git clone https://github.com/doxygen/doxygen.git && \ cd doxygen }}} * Configure and install {{{ ./configure && \ make && \ make install && \ make distclean }}} * Updating {{{ git pull && \ ./configure && \ make && \ make…

  • Install ffmpeg from source on Ubuntu

    This tutorial is designed for a headless server, and does not install anything related to `X11`. These instructions assume that you have escalated to root (`sudo su`), and have been tested with Ubuntu 12.04, 12.10, & 13.04. =Initial Installation= # Remove old `ffmpeg`, `x264`, and `avconv` {{{ apt-get remove -y ffmpeg x264 libav-tools yasm &&…

  • PXE booting with Ubiquiti EdgeRouter

    This tutorial will walk you through setting up a Ubiquiti EdgeRouter to allow PXE booting. This tutorial assumes that you have a TFTP & NFS Server running on `192.168.69.100`. [[pxe-server-ubuntu|A complete PXE setup guide is located here]]. # Login to router via ssh, enter configure mode {{{ lang=bash configure }}} # Add `bootfile-server` option to…