Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

aufi/anddos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About ANDDOS

Anti-DDOS module for nginx webserver. The aim is to restrict impact DDOS attacks to your webserver on HTTP level.

For more information visit https://github.com/aufi/anddos/wiki

Under development

Installation

Install/compile anddos to nginx (development enviroment)

$ cd src/nginx

$ make clean && ./configure --add-module=../anddos/anddos && make -j2

# make install
or
# /usr/local/nginx/sbin/nginx -s stop; make install && rm /usr/local/nginx/logs/* && /usr/local/nginx/sbin/nginx

Setup config files - nginx.conf

location / {
	
anddos;				#add this line to enable anddos

proxy_pass         http://127.0.0.1:80;		#your app server
   	proxy_redirect     off;
	
   	proxy_set_header   Host             $host;
   	proxy_set_header   X-Real-IP        $remote_addr;
   	proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
   	proxy_max_temp_file_size 0;
}

(Re)start nginx

# /usr/local/nginx/sbin/nginx -s stop
# /usr/local/nginx/sbin/nginx
or
# /usr/local/nginx/sbin/nginx -s reload

Author

Marek Aufart, [email protected], http://twitter.com/auficz

About

anti-ddos nginx webserver module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published