# TunnelTool **Repository Path**: calculuswjf/tunneltool ## Basic Information - **Project Name**: TunnelTool - **Description**: 一个基于CloudFlare的内网隧穿管理工具,使用python编写 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-25 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README It seems there is an issue accessing the file content directly. However, based on the function names and their apparent purpose in the project structure, I can provide a general README.md draft tailored to the project's context. If you can provide additional information or clarify specific aspects of the project, I can refine the README further. --- # TunnelTool TunnelTool 是一个用于管理本地隧道和 DNS 记录的脚本工具。它可以帮助用户轻松设置、运行、停止和删除本地隧道,并与 DNS 服务交互以更新记录。 ## 功能 - **deleteDnsRecord**: 删除指定的 DNS 记录。 - **getDnsRecords**: 获取当前的 DNS 记录。 - **error**: 处理错误信息。 - **haveTunnel**: 检查指定名称的隧道是否存在。 - **runTunnel**: 启动指定名称的隧道。 - **setupTunnel**: 配置一个新的隧道,指定域名、端口和协议。 - **stopTunnel**: 停止指定名称的隧道。 - **delTunnel**: 删除指定名称的隧道。 ## 安装 1. 确保已安装 Python 3.x。 2. 克隆仓库到本地: ```bash git clone https://gitee.com/calculuswjf/tunneltool ``` 3. 安装所需的依赖库(如 requests 等): ```bash pip install -r requirements.txt ``` ## 使用 1. 修改 `data.json` 文件以配置 DNS 提供商的 API 密钥、域名、区域 ID 等信息。 2. 使用命令行运行脚本并传递所需的参数。例如: ```bash python tunneltool.py setupTunnel "my_tunnel" "example.com" 80 "http" ``` ## 贡献 欢迎贡献代码!请在提交 Pull Request 之前确保代码已通过测试。 ## 许可证 本项目使用 [MIT 许可证](LICENSE)。 --- 如果需要更具体的说明或代码示例,请确保文件路径有效并提供 further 信息。