Giter Site home page Giter Site logo

ngoctint1lvc / waf Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 3.0 69.31 MB

Web Application Firewall for thesis

Shell 0.02% Dockerfile 0.02% HTML 2.41% Lua 0.14% Python 1.14% JavaScript 0.22% Jupyter Notebook 2.25% C 93.80% Makefile 0.01%
waf modsecurity docker machine-learning

waf's Introduction

Web Application Firewall

This project is a web application firewall (WAF) based on ModSecurity Core Rule Set with some Machine Learning improvements. This project is currently under development and will release soon.

How to run

Prerequisites

To build and run this project, you must install docker and docker-compose first. Refer to the official docker documentation for the installation.

Deployment

Clone and init submodule

git clone https://github.com/ngoctint1lvc/waf.git
cd waf/
git submodule update --init --recursive

Create .env file from .env.example

MONGODB_SERVER=log-db
MONGO_INITDB_ROOT_USERNAME=
MONGO_INITDB_ROOT_PASSWORD=
DEBUG=1
MONGO_EXPRESS_USERNAME=
MONGO_EXPRESS_PASSWORD=
COLLECTION_PREFIX=test

Add your certificate and private key in openresty/nginx/ssl folder

./openresty/nginx/ssl
├── localhost-key.pem
└── localhost.pem

Start all services

docker-compose -f docker-compose.prod.yml up -d

Redirect all traffic to http proxy server at port 80

How to develop

Clone this project and start all docker services. Two images for testing including DVWA and Nginx server.

git clone https://github.com/ngoctint1lvc/waf.git
cd waf/
git submodule update --init --recursive

Add 2 local dns record to your host files

127.0.0.1 dvwa.test
127.0.0.1 nginx.test

Start all containers

docker-compose up -d

Authors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.