Make Check Page Reverse Proxy Nginx | Like Cloudflare's I'm Under Attack Mode
-
I have a large server with DDoS protection. I also have a setup for stopping layer 7 attacks. I want to set up a reverse proxy to my website on my other server and have a check page similar to cloudflare's I'm Under Attack Mode. Which only after displaying that check page and passing the check will the nginx reverse proxy pass the request onto my other server with the website. There is absolutely ZERO documentation on this. I have found https://index.hm/hashcat.html although there is many problems with this as you need perl modules. Which apt-get install nginx-extras doesn't have. I am just looking for some guidance, thank you!
-
Answer:
This question would probably be better on ServerFault (but I can't move it as I don't have enough rep) HashCat isn't really production-ready software, but as its developer I can give you an overview on how to prepare your server for it: It needs the ngx_http_perl_module module to run correctly, as I think you identified. As far as I'm aware, though, Debian does not compile nginx with the embedded Perl module by default. I think Red Hat does though, if it makes your life any easier. You can activate the module by building nginx with the flag --with-http_perl_module. Check out https://wiki.debian.org/BuildingAPackage#Get_the_source_package for a guide on compiling Debian packages - I've summarised it here for you. apt-get install build-essentials apt-get source nginx sudo mk-build-deps -i -r nginx cd nginx-xxxx nano debian/rules Add the configure flag "--with-http_perl_module" to the file. Now, we can recompile the package and produce a new .deb file debuild -us -uc Install the .deb sudo dpkg -i ../nginx-xxxxx.deb This should replace the nginx you have installed with a Perl-enabled version :-) (P.S. Don't forget to run cpan Digest::SHA1 String::Util) And to install HashCat, make a folder /usr/share/nginx/perl (if it doesn't already exist) and place the source files in it.
blue ice at Stack Overflow Visit the source
Related Q & A:
- How can I make a page my home page?Best solution by Yahoo! Answers
- What is angina and how do you know if it's not a heart attack?Best solution by Yahoo! Answers
- What's a good job for me if I'm not a 'people' person?Best solution by Yahoo! Answers
- How do I make mail page home page?Best solution by Yahoo! Answers
- What's the use of "I'm feeling lucky" button in Google?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.