Downloading and Installing YAMon v3.4.7

[Short version] Long Version [manual steps]

This page contains instructions on how to install v3.4.7... Go to this page to install the latest version (4.0.7)

This is a very brief `readers digest` version of the installation process. It supposes that you have the prerequisite knowledge and tools to complete the setup. Oh, and you'll also need a router with a USB port that has been `flashed` and properly configured with one of the following: DD-WRT, Turris, OpenWrt / LEDE, GNU/Linux, Asuswrt-Merlin, Tomato, etc.

For a more thorough explanation of the steps, see the long version below.

Please consider helping with the testing efforts for YAMon v. Thanks for your assistance!

The most complicated step - by far - is getting the firmware onto your router and then configuring it properly.

Before going any further ...
Remember that I said *properly* configured firmware? A number of firmware settings are known to prevent YAMon from collecting accurate traffic data - the most common recent culprit has been the Shortcut Forwarding Engine (SFE) option which was added in DD-WRT build 33006+ (and is enabled by default). Other known offenders include `enhanced privacy` tools (like PrivOxy) and Universal Plug and Play (UPnP) settings - see PrivOxy & UPnP. Apparently `Cut Through Forwarding` is similar to SFE so it too will be problematic but I don't have a lot of details on that yet... stay tuned!. These options *must* be disabled if you want to get accurate results from YAMon!

If you are updating from a previous version of YAMon (rather than a fresh install), back up everything before proceeding! This includes any customizations you've made to devices in the reports - see Exporting device customizations.

Steps:

  1. Download the latest installer script (v3.4.7)
  2. Expand the zip file on your PC and copy `install.sh` to the root of the USB drive attached to your router (e.g., `/opt`).
    Yes, your router should have a USB port. If you have any questions about this, see `Do I need a USB drive connected to my router?` (Spoiler alert, the answer is still yes.)
  3. Ensure that `install.sh` has execute permissions and then run it (e.g., `/opt/install.sh`)

    `install.sh` will download all of the necessary files to your router, and then launch a setup script that walk you through the initial configuration step, and (finally) start the `yamon` script on your router.

    Please read the online instructions and prompts in the setup script carefully!!!

  4. View the reports in your browser - typically http://192.168.1.1/user/index.html- but that URL may change depending upon your router setup and your selections in the setup script.

If anything comes up, please see Problems??? section below.

Sign-up to get automatic notifications when there are updates to YAMon.

Need a new router?


Detailed Installation steps Short steps

To run YAMon, you will require :

  1. a router *properly* configured to run one of the *WRT variants (e.g. DD-WRT, Turris, OpenWrt / LEDE, GNU/Linux, Asuswrt-Merlin, Tomato, etc.)

    For instructions on how to flash your router, see `How do I `flash` my router?`. If you are intimidated by the notion of `flashing` (or replacing) the firmware on your router, see some of the options at `Can I purchase a router that is ready to run YAMon?`.

    Firmware configuration issues are by far the most common support issue that I have to deal with. Here's a list of some of the most common problems.

  2. a USB drive connected to your router with the proper USB settings in your firmware

    Let me be clear about this... the easiest (and only supported) installation scenario is a router with a USB port. If your router does not have a USB port, I recommend that you upgrade your hardware. Apparently some users have made things work using a `CIFS Automount` partition or Samba but I have not and will not answer any questions about this configuration). If someone would like to provide detailed instructions I will add a link to it; but again, if you choose to go this route, you are on your own!

    The screenshot below shows the USB settings in the DD-WRT GUI. You can see that I named my volume `opt` which means that it will mount automatically to `/opt`. If you use a different volume name, you will have to copy your UUID (below the volume name) into the field named `Mount this partition to /opt`. For OpenWrt/LEDE, see `How do I configure USB support in OpenWrt/LEDE?`


  3. a suitably formatted USB drive

    - see `Recommendations regarding USB drives`
    - see `How should I format my USB drive?`

    I strongly recommend that you format your USB drive as `ext4`. However, some firmware/chipset combinations do not support, `ext4` - see ``. Most recently, I used Mini-Tool Partition Wizard (FREE) to format my drive but there are a host of other [free] Windows utilities with similar capabilities.

  4. at least passing familiarity with tools necessary to connect to your router. On Windows, I prefer:
    • WinSCP and PuTTY (or equivalent) to copy files and execute commands on your router
    • Notepad++ (or equivalent) to edit the config files (if necessary)

    See also - `OK, I flashed my router, now how do I connect to it?`

  5. and, last but not least, an understanding of some of the common Linux/Bash commands

Again, if all of this seems too daunting, there are options! See `Can I purchase a router that is ready to run YAMon?`.

Before going any further ...
Remember that I said *properly* configured firmware? A number of firmware settings are known to prevent YAMon from collecting accurate traffic data - the most common recent culprit has been the Shortcut Forwarding Engine (SFE) option which was added in DD-WRT build 33006+ (and is enabled by default). Other known offenders include `enhanced privacy` tools (like PrivOxy) and Universal Plug and Play (UPnP) settings - see PrivOxy & UPnP. Apparently `Cut Through Forwarding` is similar to SFE so it too will be problematic but I don't have a lot of details on that yet... stay tuned!. These options *must* be disabled if you want to get accurate results from YAMon!

If you are updating from a previous version of YAMon (rather than a fresh install), back up everything before proceeding! This includes any customizations you've made to devices in the reports - see Exporting device customizations.

To install YAMon v3.4.7:

  • copy latest installer script (v3.4.7) to your computer.
  • expand the zip file
  • copy `install.sh` to your router (using WinSCP or an equivalent tool). The remainder of this document assumes that you've copied into `/opt/`)
  • right click `install.sh` in WinSCP, choose `Properties` and give the script execute permission... or in a PuTTY window, run `chmod 775 /opt/install.sh`
  • run the install script (in PuTTY, enter `/opt/install.sh`)
  • answer the prompts in the install & setup scripts. They will guide you through the setup and configuration process. At the end of the script, it will ask whether or not you want to start YAMon.

    If you are an existing YAMon2.x user, the installer will ask whether you want to copy your config and data files to the YAMon3 installation directory... you probably should say `yes`!

Once the main YAMon script has been started, your /opt/YAMon3 & /tmp directories should look something like this:

In particular, look for the `YAMon3-running` directory in `/tmp`... it is not there, your main script is not running!


To view the YAMon reports,

Sign-up to get automatic notifications when there are updates to YAMon.

To update an earlier install of YAMon3.x to the latest version:

  • [optional] download the latest installer script (v3.4.7)
  • run `install.sh` again.
  • I recommend (strongly) that you answer `y` in the prompt that asks if you want to run setup again, and
  • then answer `y` in the prompt that asks if you want restart the script

Problems???

If you encounter issues with YAMon... you should