This script will configure a Raspberry Pi as a WAN emulator, running a Meraki themed web interface for configuration.
This script assumes the following:
- You will be using eth0 and eth1 as the bridged interfaces for the WAN Emulator. You will need a USB Ethernet Adapter compatible with the Raspberry Pi
- You will be using wlan0 for access to the web interface, and wlan0 is already configured.
- The Raspberry Pi has apt installed
This script will:
- Install iproute2, which contains tc for adding delay, loss, jitter.
- Install lighttpd as the web server, and enable access logging
- Grab the latest files from GitHub and extract them to /var/www/html
- Configure a network bridge between eth0 and eth1
- (Optionally) set cron jobs to alternate between clean and degraded performance on the network bridge
To install, simply run this command:
wget https://raw.githubusercontent.com/nathanwiens/merakiwanemulator/master/meraki_wan_emulator_install.sh && chmod a+x meraki_wan_emulator_install.sh && sudo ./meraki_wan_emulator_install.sh
You can either automatically cycle the WAN Emulation automatically (via cron job), or set it manually via the web interface. Thresholds for the cron job can be modified by editing the scripts in /var/www/html/cron after installation.