Nginx-Hardened-Mode icon indicating copy to clipboard operation
Nginx-Hardened-Mode copied to clipboard

Hardened Mode for Nginx

Nginx-Hardened-Mode

Hardened Mode for Nginx

  • Nginx-Hardened-Mode
    • Features
      • 1. Drop Requests for Unknown Server Name
      • 2. Drop Requests from Untrusted Source Address
      • 3. Get Latest IPs List of Trusted Service Automatically
      • 4. Immediately Error Reporting
    • Distribution of Nginx-Hardened-Mode
    • Roadmap
    • Known Issues
    • Contact Us

Features

v1.0-L7-Host v1.0-L3-CDN
1. Server Name Validation O
2. Source IP Address Validation O
3. Auto Update Trusted IPs List O
4. Immediately Error Reporting O O

1. Drop Requests for Unknown Server Name

  • If a request ask for server name out of trusted list, it'll be drop immediately.

2. Drop Requests from Untrusted Source Address

  • If a request comes from an address out of trusted list, it'll be drop immediately.

3. Get Latest IPs List of Trusted Service Automatically

  • Make it easier to deal with IPs lists provided by numerous well-known services which changed frequently.
    Currently supported: CloudFlare, Fastly.

4. Immediately Error Reporting

  • Auto reporting while failed over to Normal Mode (Behavior of Original Nginx) by WebHook.

Distribution of Nginx-Hardened-Mode

Roadmap

  • ✅ Server name validation
  • ✅ Source IP address validation
  • ✅ IP List of CDN (ex: cloudflare, fastly...etc)
  • 🚀 IP List of Public Cloud (ex: gcp, azure, aws, akamai... etc)
  • 🚀🚀 Secret Sauce :)

Known Issues

  • Commands nginx -s reload and nginx -s stop might fail in certain conditions. If encounter such error, you might have to kill nginx processes manually.

Contact Us

Funny Email 😍