An easy-to-use web interface frontend to the policy checker of the Capirca "Multi-platform ACL generation system".
For this example we'll assume you are trying to install capirca-web on a clean installation of Ubuntu Server 12.04 LTS. You may need to do something different depending on your setup. Apply common sense as necessary.
- Install Apache 2, Python 2.7, dnspython and unzip:
sudo apt-get update && sudo apt-get install apache2 python2.7 python-dnspython unzip
- Download the latest version of capirca-web:
wget -O capirca-web-master.zip https://github.com/utwente/capirca-web/archive/master.zip
- Unzip the archive:
unzip capirca-web-master.zip
- Edit the
capirca_base
variable in thecapirca-web-master/aclcheck_cgi.py
file to reflect the path of your capirca directory using your favourite editor (nano, vim etc) - If the path to your cgi-bin directory is anything other than
/cgi-bin/
, edit thecgi_script
variable in thecapirca-web-master/static/js/custom.js
file to reflect that - Make sure your capirca directory is readable by the Apache
www-data
user - Create a new directory under the Apache document root:
sudo mkdir /var/www/capirca-web
- Copy the static files to the new directory:
sudo cp -r capirca-web-master/static/* /var/www/capirca-web/
- Copy the Python script to the Apache cgi-bin directory:
sudo cp capirca-web-master/aclcheck_cgi.py /usr/lib/cgi-bin/
- Make the Python script executable:
sudo chmod +x /usr/lib/cgi-bin/aclcheck_cgi.py
- Start watching the Apache error log in case anything goes wrong:
tail -f /var/log/apache2/error.log
- Open capirca-web in the browser of your choice and enjoy
- Capirca-web is released under the GNU General Public License Version 3
- jQuery is released under the MIT License
- Open Sans is released under the Apache License, Version 2.0