LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-05-2024, 12:53 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Rep: Reputation: 10
Post Protecting Nginx against DDoS attacks by Fail2Ban


Hello,
To protect Nginx against DDoS attacks by Fail2Ban I found the following tutorial:
https://easyengine.io/tutorials/nginx/fail2ban/

What does HOST mean in the following line? Should I enter the IP address of the host or the domain name of the website?
Code:
failregex = limiting requests, excess:.* by zone.*client: <HOST>
Thank you.
 
Old 03-05-2024, 03:37 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by Jason.nix View Post
What does HOST mean in the following line?
It's the "placeholder" in the regex that tells F2B where to extract the IP address from.
Quote:
Originally Posted by Jason.nix View Post
Should I enter the IP address of the host or the domain name of the website?
None of the above. Try reading some documentation such as https://fail2ban.readthedocs.io/en/latest/filters.html rather than blindly relying on "How To" guides.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Protecting Code Integrity with PGP -- Part 7: Protecting Online Accounts LXer Syndicated Linux News 0 03-27-2018 03:42 PM
LXer: How To Protect Server Against Brute Force Attacks With Fail2ban On Linux LXer Syndicated Linux News 0 11-07-2017 01:15 PM
LXer: World Live DDoS attack maps – Live DDoS Monitoring LXer Syndicated Linux News 0 08-09-2014 08:30 PM
LXer: 7 essentials for defending against DDoS attacks LXer Syndicated Linux News 0 06-18-2013 07:30 PM
LXer: Protecting your MySQL database from SQL injection attacks with GreenSQL LXer Syndicated Linux News 0 08-25-2008 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration