Coder Social home page Coder Social logo

njcx / peppa_waf Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 6.0 3.42 MB

学习lua而开发的waf, 支持动态更新一些拦截域名或者 url规则

Makefile 0.20% CSS 0.05% HTML 1.59% C 57.29% Lua 4.55% Roff 0.01% C++ 0.28% Batchfile 0.10% Perl 29.40% Python 0.01% Vim Script 0.20% GDB 0.01% DTrace 0.01% Perl 6 6.09% Shell 0.06% Elixir 0.01% XS 0.13%
waf nginx tengine

peppa_waf's Introduction

peppa_waf :

an open source waf (Web Application Firewalls) base on Tengine-2.2.2 and luajit2.1.0,jemalloc-5.1.0

包括如下模块:

1,规则处理引擎:加载规则,实时分析处理请求,拦截异常流量

2,API接口模块: 动态添加规则,相关模块的启停

功能

1,IP黑白名单,URL(正则URL)/域名(正则域名)/泛域名黑名单

2,CC防御,域名/URL限流

3, Get/Post/UA等恶意参数拦截

安装

#sudo apt-get install libpcre3 libpcre3-dev openssl wget libssl-dev

#yum install pcre pcre-devel openssl openssl-devel zlib-devel wget

#cd lua && make && make install

#cd /usr/local/src && wget https://github.com/jemalloc/jemalloc/releases/download/5.1.0/jemalloc-5.1.0.tar.bz2 && tar xvf jemalloc-5.1.0.tar.bz2 && cd jemalloc-5.1.0 && ./configure --prefix=/usr/local/jemalloc && make && make install

#echo "/usr/local/lib" >> /etc/ld.so.conf

#ldconfig

先安装 luajit

然后安装tengine

#./configure --prefix=/usr/local/nginx --with-jemalloc=/usr/local/src/jemalloc-5.1.0 --with-http_lua_module --with-luajit-lib=/usr/local/lib/ --with-luajit-inc=/usr/local/include/luajit-2.1/ --with-lua-inc=/usr/local/include/luajit-2.1/

#make && make install

peppa_waf's People

Contributors

njcx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.