IP 제한 정책 구성 참조
IP 제한 정책 구성 참조 (IP Restriction Policy Configuration Reference)
이 문서는 Kong에서 IP 기반으로 요청 접근을 제어하는 IP 제한 정책의 구성 옵션을 정리한 참조 자료예요. JSON 스키마 형태로 각 설정 속성을 설명하는데, 허용(allow)하거나 차단(deny)할 IP 주소와 CIDR 범위 목록, 거부된 요청에 반환할 메시지와 HTTP 상태 코드 등을 지정할 수 있어요. config.allow과 config.deny 중 하나는 반드시 지정해야 한다는 규칙도 함께 확인할 수 있어요
출처: 문서
본문
{
"properties": {
"config": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "The message to send as a response body to rejected requests."
},
"allow": {
"type": "array",
"items": {
"type": "string",
"description": "A string representing an IP address or CIDR block, such as 192.168.1.1 or 192.168.0.0/16."
},
"description": "List of IPs or CIDR ranges to allow. One of `config.allow` or `config.deny` must be specified."
},
"deny": {
"type": "array",
"items": {
"type": "string",
"description": "A string representing an IP address or CIDR block, such as 192.168.1.1 or 192.168.0.0/16."
},
"description": "List of IPs or CIDR ranges to deny. One of `config.allow` or `config.deny` must be specified."
},
"status": {
"type": "number",
"description": "The HTTP status of the requests that will be rejected by the policy."
}
}
}
}
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.