Welcome to ESSO '4K' APPS

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Please : Read and Ask questions and to avoid getting banned!

Advertising

Don't miss the opportunity to make yourself known to the world.

Account upgrade

Upgrade your account to unlock premium ibo resources!
Web page! Esso4k-IBOv2 Red . Take advantage of it →
Nginx Reverse Proxy + Mod Security WAF + fail2ban + geoip2 - XtreamUI | Streamcreed 1.1

DOWNLOAD Nginx Reverse Proxy + Mod Security WAF + fail2ban + geoip2 - XtreamUI | Streamcreed 1.1 2024-10-19

Register & Get access to index

The warning in this field is displayed on the resource view when viewing the resource.

Nginx Reverse Proxy + Mod Security WAF + fail2ban + geoip2 - XtreamUI | Streamcreed 1.1

Proxy Install v1.1
OS Ubuntu 20.04 LTS Server
Register for free to get accountID and licenseKEY from geoip2 lite at : dev.maxmind.com


- Nginx , Mod Security , Fail2ban , Mariadb for store ip banned ( next version whit webadmin ).
- Block User Agent -> /etc/nginx/useragent.rules
- Block ISP -> /etc/nginx/block_isp.conf
- Block ASN Number -> /etc/nginx/block_asn.conf
- Country Whitelist -> /etc/nginx/country_whitelist.conf ( Default block all country ) ( possibility to block for example US country but exclude some ip/range from US ( it.wikipedia.org )
- IP Whitelist for exclusion to req_limit zone -> /etc/nginx/ip_whitelist.conf
- SQL Injection prevention
- Ip Whitelist for exclusion to fail2ban -> /etc/fail2ban/jail.local find line :

[DEFAULT]
ignoreip = 127.0.0.1/8 10.0.0.0/8 192.168.0.0/16 172.16.0.0/16 add_ip_or_range_to_exclude_here

- Save and reload/restart fail2ban -> systemctl stop | start | reload | restart fail2ban

- Restart / Reload / Stop / Start Nginx -> systemctl stop | start | reload | restart nginx
- Restart / Reload / Stop / Start file2ban -> systemctl stop | start | reload | restart fail2ban

- Log Files :

- /var/log/nginx/error.log
- /var/log/nginx/access.log
- /var/log/fail2ban.log
- /opt/log/modsec_audit.log

- unban ip from nginx-req-limit -> fail2ban-client set nginx-req-limit unbanip IP_ADDRESS_HERE
- unban ip from nginx-4xx -> fail2ban-client set nginx-4xx unbanip IP_ADDRESS_HERE
- unban all ip --> fail2ban-client unban --all



- Disable ban for nginx-4xx -> /etc/fail2ban/jail.local and set enable = false :
[nginx-4xx]
enabled = false
....
bantime = 7200

then reload fail2ban --> systemctl restart fail2ban

- To add or remove mod security rules go to /etc/nginx/rules/ and move from this directory to another then reload nginx. systemctl reload nginx
- To disable mod securtiy go to /etc/nginx/nginx.conf and find : ModSecurityEnabled on; to ModSecurityEnabled off;
  • LIKE
Reactions: ercocco
Author
esso4k
Price
350 credits
Downloads
1
Views
152
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from esso4k

Similar content Most view View more

Esso4kv2 AUTO-TEST !

Connect Free our PANEL .
and download our APK for free (registered members only).!

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top