Giter Site home page Giter Site logo

aliyun-whitelist-service's Introduction

aliyun-whitelist-service

阿里云的IP白名单服务

$pip install -r requirements.txt

$python whitelist.py

在settings.py中配置阿里云 SDK的账号,以及ECS服务器所在区域。

IP白名单服务: http://127.0.0.1:5001/list

返回值说明: 得到白名单列表,白名单包含:

1.阿里云账号下面的所有主机的内网IP,外网IP

2.配置的IP列表,以及以 white_ip_prefix(如值设置为192.168)开头的前缀的IP地址

注意事项: 当调用白名单服务的机器的IP地址在白名单内时,/list才会返回正确的IP列表,否则errorcode会返回-1。

centos上需要安装libxslt-devel: $sudo yum install libxslt-devel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.