Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Blacklist and whitelist limitation implementation method and platform, computer equipment and storage medium

A technology of black and white lists and implementation methods, applied in the field of gateway services, can solve the problem that spring cloud gateway does not support black and white list restrictions, and achieve the effect of high matching efficiency, flexible matching and flexible configuration

Inactive Publication Date: 2021-02-23
欧冶云商股份有限公司
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, because spring cloud gateway does not support black and white list restrictions, existing linux firewalls can only restrict machines. In actual usage scenarios, there may be scenarios where black and white lists are required for specific interfaces. Currently, there is no effective technology that can satisfy spring cloud gateway supports black and white list restrictions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Blacklist and whitelist limitation implementation method and platform, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0055] The present invention relates to a black and white list restriction implementation method, the method adopts the spring cloud gateway architecture system to realize, such as figure 1 As shown, the specific steps of the method are as follows:

[0056] Step 1. When the gateway service is started, add a gateway blacklist and whitelist filter.

[0057] Step 2: Read the blacklist and whitelist configuration from the database and parse the blacklist and whitelist configuration, and load the parsing result into the gateway blacklist and whitelist filter. This step specifically includes:

[0058] 2.1) Divide the policy information in all black and white list configurations into a black list policy set and a white list policy set according to type;

[0059] 2.1) Convert the domain names in the blacklist policy set and the whitelist policy set to decimal IPv4 addresses respectively, and then convert the decimal IPv4 policy addresses into ip ranges according to the subnet mask (...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a blacklist and whitelist limitation implementation method and platform, computer equipment and a storage medium, and the method comprises the steps: adding a gateway blacklist and whitelist filter when a gateway application is started; reading the blacklist and whitelist configuration information from the database, analyzing the read blacklist and whitelist configurationinformation, obtaining a blacklist ip interval and a whitelist ip interval, performing interval combination, and loading an analysis result into a gateway blacklist and whitelist filter; and when a client initiates a gateway request, executing ip long integer digital conversion on the request, and matching the conversion request ip in combination with the combined interval, so that black and whitelist matching is realized. Compared with the prior art, the method has the advantages that effective black and white list limitation can be realized on the basis of spring locked gateway, the matching efficiency is high, domain name matching is supported, wildcard character matching is supported, and the like.

Description

technical field [0001] The invention relates to the technical field of gateway services, in particular to a method, platform, computer equipment and storage medium for realizing restriction of black and white lists. Background technique [0002] In the field of gateway services, it is necessary to judge whether the request is allowed to be released according to the source of the call. At this time, the function of source access control (black and white list control) can be used. Origin access control restricts whether resources can pass according to the origin of the resource request. If a whitelist is configured, only when the request origin is in the whitelist can pass; if a blacklist is configured, the request will not pass when the origin is in the blacklist, and the rest request is passed. [0003] Spring cloud gateway is an open source netty-based high-performance gateway framework of spring, which provides powerful gateway routing management functions. The goal of s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/12
CPCH04L63/10H04L63/126H04L61/2503
Inventor 吕峰辉刘晶杜余波
Owner 欧冶云商股份有限公司
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More