Giter VIP home page Giter VIP logo

ar-autosecure's Introduction

ar-autosecure

Config automatically ArvanCloud Automatic Security Features

Brief

Turn On DDoS Protection if the system load is high Block High Request IPs in ArvanCloud Firewall

Capabalities

  • Set DDoS Level enable/disable
  • Block/Unblock IP in firewall
  • Get IP from analytics in CDN

Try it

Running the container:

git clone [email protected]:arvancloud/ar-autosecure.git && cd ar-autosecure 
docker build -t ar-autosecure .
docker run \
 -d \
 -e DOMAIN=example.com \
 -e AUTO_DDOS_PROTECT=true \
 -e AUTO_IP_BLOCK=true \
 -e BLOCK_IP_THRESHOLD=100 \
 -e WHITE_LIST_IPS='1.1.1.1,2.2.2.2' \
 -e HIGH_LOAD_THRESHOLD='5,10,50' \
 -e API_KEY='TOKEN_HERE' \
 -v /proc/loadavg:/proc/loadavg \
 ar-autosecure

Config

Name Description Type Default
API_KEY your Arvan API-Key string -
DOMAIN domain string -
AUTO_DDOS_PROTECT enable auto ddos bool true
AUTO_IP_BLOCK enable auto block bool true
WHITE_LIST_IPS white list ips (used for auto block) string or comma separate list -
BLOCK_IP_THRESHOLD request count threshold number 1000
HIGH_LOAD_THRESHOLD ddos thresholds string or comma separate list - three number (map to cookie, javascript and recaptcha thresholds) 5,10,50
CHECK_INTERVAL check interval (seconds) number 60
BASE_URL Arvan base URL string https://napi.arvancloud.com/cdn/4.0
ARVAN_METRICS_PERIOD Arvan report period enum(1h, 3h, 6h, 12h, 24h, 7d, 30d) 3h

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Contributors:

  • SadeghHayeri https://github.com/sadeghhayeri

ar-autosecure's People

Contributors

3aaber avatar ssttehrani avatar

Watchers

 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.