Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 970 Bytes

mod_trust_clientip.md

File metadata and controls

38 lines (28 loc) · 970 Bytes

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

    [basic]
    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
{
    "Version": "20190101000000",
    "Config": {
        "inner-idc": [
            {
                "Begin": "10.0.0.0",
                "End": "10.255.255.255"
            }
        ]
    }
}