# Easy_whitelist
Easy_whitelist 是一个探测本机互联网 IP 地址,将并本机互联网IP地址,自动更新到云安全组白名单的小工具。工具使用 Python 编写。
Easy_whitelist is a smart tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist. The tool is written in Python.
主要功能包括:
* 自动探测本机互联网 IP 地址
* 支持阿里云、腾讯云的安全组白名单更新
* 腾讯云支持地址模板更新
Main functions include:
* Automatically detect the local Internet IP address
* Support security group whitelist updates for Alibaba Cloud and Tencent Cloud
* Tencent Cloud supports address template updates
## 适用场景 Applicable Scenarios
* 场景一:不知道如何探测本机的公网IP的用户,通过本工具自动探测公网 IP,并添加云安全组白名单
* 场景二:IP 地址因为 NAT 环境经常变化,包括家庭环境或者公司无固定出口 IP 的宽带环境,需要安全的使用云环境资源
* 场景三:测试场景,频繁变换客户端环境,需要安全的使用云环境资源
* Scene1: Users who do not know how to detect the public IP of their local machine can use this tool to automatically detect the public IP and add it to the cloud security group whitelist
* Scene2: IP addresses often change due to NAT environments, including home environments or broadband environments without fixed export IPs in companies, which require safe use of cloud environment resources
* Scene3: Test scenarios, frequent changes in client environments, which require safe use of cloud environment resources
## 安装指南 Installation Guide
需要 Python3 环境
Python3 is required
## 使用说明 Basic Usage
* 通过列表选择模版,设置白名单
```shell
$ easy template list
```
* 通过新创建模版,设置白名单。需要指定关联的安全组ID
```shell
$ easy template create rule_id
```
Raw data
{
"_id": null,
"home_page": null,
"name": "easy_whitelist",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "qiqilelebaobao <qiqilelebaobao@163.com>",
"keywords": "automation, whitelist, acl, security-groups, alibaba-cloud, tencent-cloud, security-tools, security-group-rule",
"author": "qiqilelebaobao",
"author_email": "qiqilelebaobao <qiqilelebaobao@163.com>",
"download_url": "https://files.pythonhosted.org/packages/92/b5/5ca52c030fa22430ce1f09f9032c02e4a48c24d8e32ea3ead010b38a1919/easy_whitelist-1.0.32.tar.gz",
"platform": null,
"description": "# Easy_whitelist\n\nEasy_whitelist \u662f\u4e00\u4e2a\u63a2\u6d4b\u672c\u673a\u4e92\u8054\u7f51 IP \u5730\u5740\uff0c\u5c06\u5e76\u672c\u673a\u4e92\u8054\u7f51IP\u5730\u5740\uff0c\u81ea\u52a8\u66f4\u65b0\u5230\u4e91\u5b89\u5168\u7ec4\u767d\u540d\u5355\u7684\u5c0f\u5de5\u5177\u3002\u5de5\u5177\u4f7f\u7528 Python \u7f16\u5199\u3002\n\nEasy_whitelist is a smart tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist. The tool is written in Python.\n\n\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a\n* \u81ea\u52a8\u63a2\u6d4b\u672c\u673a\u4e92\u8054\u7f51 IP \u5730\u5740\n* \u652f\u6301\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u7684\u5b89\u5168\u7ec4\u767d\u540d\u5355\u66f4\u65b0\n* \u817e\u8baf\u4e91\u652f\u6301\u5730\u5740\u6a21\u677f\u66f4\u65b0\n\nMain functions include:\n* Automatically detect the local Internet IP address\n* Support security group whitelist updates for Alibaba Cloud and Tencent Cloud\n* Tencent Cloud supports address template updates\n\n## \u9002\u7528\u573a\u666f Applicable Scenarios\n\n* \u573a\u666f\u4e00\uff1a\u4e0d\u77e5\u9053\u5982\u4f55\u63a2\u6d4b\u672c\u673a\u7684\u516c\u7f51IP\u7684\u7528\u6237\uff0c\u901a\u8fc7\u672c\u5de5\u5177\u81ea\u52a8\u63a2\u6d4b\u516c\u7f51 IP\uff0c\u5e76\u6dfb\u52a0\u4e91\u5b89\u5168\u7ec4\u767d\u540d\u5355\n* \u573a\u666f\u4e8c\uff1aIP \u5730\u5740\u56e0\u4e3a NAT \u73af\u5883\u7ecf\u5e38\u53d8\u5316\uff0c\u5305\u62ec\u5bb6\u5ead\u73af\u5883\u6216\u8005\u516c\u53f8\u65e0\u56fa\u5b9a\u51fa\u53e3 IP \u7684\u5bbd\u5e26\u73af\u5883\uff0c\u9700\u8981\u5b89\u5168\u7684\u4f7f\u7528\u4e91\u73af\u5883\u8d44\u6e90\n* \u573a\u666f\u4e09\uff1a\u6d4b\u8bd5\u573a\u666f\uff0c\u9891\u7e41\u53d8\u6362\u5ba2\u6237\u7aef\u73af\u5883\uff0c\u9700\u8981\u5b89\u5168\u7684\u4f7f\u7528\u4e91\u73af\u5883\u8d44\u6e90\n\n* Scene1: Users who do not know how to detect the public IP of their local machine can use this tool to automatically detect the public IP and add it to the cloud security group whitelist\n* Scene2: IP addresses often change due to NAT environments, including home environments or broadband environments without fixed export IPs in companies, which require safe use of cloud environment resources\n* Scene3: Test scenarios, frequent changes in client environments, which require safe use of cloud environment resources\n\n## \u5b89\u88c5\u6307\u5357 Installation Guide\n\n\u9700\u8981 Python3 \u73af\u5883\nPython3 is required\n\n## \u4f7f\u7528\u8bf4\u660e Basic Usage\n\n* \u901a\u8fc7\u5217\u8868\u9009\u62e9\u6a21\u7248\uff0c\u8bbe\u7f6e\u767d\u540d\u5355\n```shell\n$ easy template list\n```\n\n* \u901a\u8fc7\u65b0\u521b\u5efa\u6a21\u7248\uff0c\u8bbe\u7f6e\u767d\u540d\u5355\u3002\u9700\u8981\u6307\u5b9a\u5173\u8054\u7684\u5b89\u5168\u7ec4ID\n```shell\n$ easy template create rule_id\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Easy_whitelist is a smart tool that detects the local Internet IP address and automatically updates the local Internet IP address to the cloud security group whitelist. The tool is written in Python.",
"version": "1.0.32",
"project_urls": {
"Homepage": "https://github.com/qiqilelebaobao/easy_whitelist"
},
"split_keywords": [
"automation",
" whitelist",
" acl",
" security-groups",
" alibaba-cloud",
" tencent-cloud",
" security-tools",
" security-group-rule"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "4862c561041bda4d67fa7d3b7ce343baface5752e84b83bd2773cd02dfd67fb2",
"md5": "bff1ed342c5ad5db10ecff771df9e2e3",
"sha256": "b292f718afe2c8162ffaeac514a490568596fc1013e00cff7141ed716264594e"
},
"downloads": -1,
"filename": "easy_whitelist-1.0.32-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bff1ed342c5ad5db10ecff771df9e2e3",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.6",
"size": 13234,
"upload_time": "2024-11-12T07:52:39",
"upload_time_iso_8601": "2024-11-12T07:52:39.081205Z",
"url": "https://files.pythonhosted.org/packages/48/62/c561041bda4d67fa7d3b7ce343baface5752e84b83bd2773cd02dfd67fb2/easy_whitelist-1.0.32-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "92b55ca52c030fa22430ce1f09f9032c02e4a48c24d8e32ea3ead010b38a1919",
"md5": "b4b8e7a510954484a9f685fc55ad1309",
"sha256": "c6c41db3ddf7715dce749f0f6230956b6b95c12078fea9cab21ec329b387dad5"
},
"downloads": -1,
"filename": "easy_whitelist-1.0.32.tar.gz",
"has_sig": false,
"md5_digest": "b4b8e7a510954484a9f685fc55ad1309",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 26826,
"upload_time": "2024-11-12T07:52:40",
"upload_time_iso_8601": "2024-11-12T07:52:40.996208Z",
"url": "https://files.pythonhosted.org/packages/92/b5/5ca52c030fa22430ce1f09f9032c02e4a48c24d8e32ea3ead010b38a1919/easy_whitelist-1.0.32.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-12 07:52:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "qiqilelebaobao",
"github_project": "easy_whitelist",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "easy_whitelist"
}