zecure / shadowd

The Shadow Daemon web application firewall server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

Build Status Quality Gate Status

Shadow Daemon is a web application firewall that intercepts requests at the application level. This repository contains the main component of Shadow Daemon that handles the analysis and storage of requests.

Documentation

For the full documentation please refer to shadowd.zecure.org.

Installation

Preparation

Use cmake to configure and prepare the project. It is a good idea to create a separate directory for this. A typical installation might look like this.

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release ..

Compilation

If cmake is successful it creates a makefile. Use it to compile and install the project.

make shadowd
make install

Database

Install and configure a database server. At the moment shadowd officially supports PostgreSQL and MySQL. Afterward, create a new user and database for shadowd and import the correct layout.

If you are using PostgreSQL you can use psql to import the layout.

psql -Ushadowd shadowd < /usr/share/shadowd/pgsql_layout.sql

If you are using MySQL you can use mysql to import the layout. The user requires the CREATE ROUTINE privilege.

mysql -ushadowd -p shadowd < /usr/share/shadowd/mysql_layout.sql

Configuration

The installer copies the configuration file to /etc/shadowd/shadowd.ini. The file is annotated and should be self-explanatory.

About

The Shadow Daemon web application firewall server

License:GNU General Public License v2.0


Languages

Language:C++ 82.2%Language:PLpgSQL 14.3%Language:CMake 1.3%Language:Python 0.8%Language:Roff 0.7%Language:Dockerfile 0.5%Language:Shell 0.2%