Introduction

Check client IP of incoming request against trusted ip dict. If matched, mark request/connection is trusted.

Configuration

  • Module config file

    conf/mod_trust_clientip/mod_trust_clientip.conf

    1. [basic]
    2. DataPath = ../conf/mod_trust_clientip/trust_client_ip.data
  • Trusted IP data file

    conf/mod_trust_clientip/trust_client_ip.data

    | Config Item | Type | Description || —————- | ——— | ———————————————————————————————- || Version | String | Verson of config file || Config | Struct | trusted client ip dict. Key: lable, Value: a list of IP segment |

    1. {
    2. "Version": "20190101000000",
    3. "Config": {
    4. "inner-idc": [
    5. {
    6. "Begin": "10.0.0.0",
    7. "End": "10.255.255.255"
    8. }
    9. ]
    10. }
    11. }