PeerBanHelper WebAPI
  1. 自动 STUN
PeerBanHelper WebAPI
  • API
    • 鉴权
      • 登录
      • 注销登录态
    • 元数据
      • 请求基本清单数据
      • 初始化
    • 基本统计
      • 统计计数器
      • 规则计数器
    • 封禁
      • 获取封禁列表
      • 获取封禁历史记录信息
      • 获取封禁排名
      • 解除封禁
      • (测试接口)手动添加封禁项
    • 下载器
      • 扫描下载器
      • 扫描下载器 (OOBE)
      • 获取下载器列表
      • 获取下载器元数据
      • 获取下载器种子列表
      • 获取下载器指定种子的Peers列表
      • 创建下载器
      • 编辑下载器
      • 测试下载器配置
      • 删除下载器
    • 推送渠道
      • 获取推送渠道列表
      • 获取推送渠道元数据
      • 创建推送渠道
      • 编辑推送渠道
      • 测试通知渠道
      • 删除推送渠道
    • 通用
      • 通用状态查询
      • 创建堆转储文件
      • 检查指定模块是否启用
      • 更改全局设置
      • 获取全局设置
      • 手动触发 JVM 崩溃模拟测试
      • 请求 NAT 类型刷新
      • 配置文件重载
    • 功能模块
      • AutoRangeBan
        • 获取模块内存基本元数据
      • BtnNetworkOnline
        • 获取 BTN 模块状态
      • ClientNameBlackList
        • 获取模块内存基本元数据
      • IPBlackList
        • 获取模块内存基本元数据
        • 测试IP黑名单规则
        • 添加IP黑名单规则
        • 删除IP黑名单规则
        • 添加端口黑名单规则
        • 删除端口黑名单规则
        • 添加ASN黑名单
        • 设置网络类型规则
        • 删除ASN黑名单规则
        • 添加国家/地区代码黑名单规则
        • 添加城市黑名单规则
        • 删除国家/地区代码黑名单规则
        • 删除城市黑名单规则
      • MultiDialingBlocker
        • 获取模块内存基本元数据
      • PeerIdBlacklist
        • 获取模块内存基本元数据
      • ProgressCheatBlocker
        • 获取模块内存基本元数据
        • 获取状态
      • 订阅规则
        • 查询更新间隔
        • 修改更新间隔
        • 新增订阅规则
        • 查询订阅规则
        • 更新订阅规则
        • 保存订阅规则
        • 删除订阅规则
        • 启用禁用规则
        • 订阅规则列表
        • 更新全部订阅规则
        • 查询全部订阅规则更新日志
        • 查询指定订阅规则更新日志
      • Friend
        • 未命名接口
      • Expression Engine
        • 列出所有脚本
        • 获取指定脚本内容
        • 创建/保存脚本
        • 删除指定脚本
        • 是否可编辑给定脚本
      • Laboratory
        • 列出所有实验状态
        • 检查指定实验是否已启用
        • 设置指定实验的开关状态
        • 获取实验室模块配置状态
        • 设置实验室模块配置状态
      • PTRBlacklist
      • SwarmTracking
        • 获取跟踪的 Peers 分页数据
        • 获取跟踪的 Peers 数量
    • 警报
      • 获取警报列表
      • 标记警报为已读
      • 标记警报为全部已读
      • 删除指定警报
    • 程序日志
      • 连接到日志 WebSocket
      • 获取程序日志
    • 统计图表(基础)
      • 封禁趋势统计(迁移自/api/statistic/analysis/date)
      • 统计通用数值查询
      • 统计通用日期归类查询
    • PBH Plus
      • 创建或更新免费 Basic 许可证
      • 获取当前许可证系统状态
      • 安装许可证
      • 卸载许可证
      • 获取免费 Basic 许可证的无交互验证码
    • Torrent
      • 获取PBH种子列表
      • 获取指定种子基本信息
      • 获取指定种子的访问历史列表
      • 获取指定种子的封禁历史列表
    • 图表
      • GeoIP
      • 趋势
      • 流量
    • Peer
      • 查询指定 IP 的基本信息
      • 查询指定 IP 的访问历史列表
      • 查询指定 IP 的封禁记录
    • 工具
      • 批量更换 Tracker
    • 后台任务(未完成)
      • 列出后台任务的有序列表
      • 获取指定任务元数据
      • 获取指定任务日志数据
      • 取消指定任务
    • 自动 STUN
      • 隧道列表
        GET
      • 获取指定隧道信息
        GET
      • 获取指定隧道连接表
        GET
      • 获取状态
        GET
      • 请求 NAT 类型刷新
        POST
      • 保存 AutoSTUN 配置
        PUT
      • 强制重新启动 AutoSTUN 服务
        POST
    • 异步任务
      • 获取当前的异步任务列表
  • 下载器兼容层
    • IP BanList 提供端点
      GET
    • P2P Guard Plain BanList 提供端点
      GET
    • DAT/Emule BanList 提供端点
      GET
  • test
  1. 自动 STUN

获取指定隧道连接表

开发中
GET
/api/autostun/tunnel/{downloader}/connections

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9897/api/autostun/tunnel/e152a0c0-5f4b-11f0-aad3-195e1739ac09/connections' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功
application/json
Body

示例
{
    "success": true,
    "asyncTask": null,
    "message": null,
    "data": {
        "page": 1,
        "size": 10,
        "total": 57,
        "results": [
            {
                "ipGeoData": {
                    "city": {
                        "name": "江苏省 南通市 崇川区",
                        "iso": 86320613,
                        "location": {
                            "latitude": 32.0264,
                            "longitude": 120.8647,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 100
                        },
                        "cnProvince": "江苏省",
                        "cnCity": "南通市",
                        "cnDistricts": "崇川区"
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 56046,
                        "organization": "China Mobile communications corporation",
                        "ipAddress": "223.106.190.145",
                        "network": {
                            "ipAddress": "223.106.0.0",
                            "prefixLength": 15
                        }
                    },
                    "network": {
                        "isp": "中国移动",
                        "netType": "宽带"
                    }
                },
                "downstreamHost": "223.106.190.145",
                "downstreamPort": 4174,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.106.190.145",
                "proxyOutgoingPort": 4174,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176705938,
                "lastActivityAt": 1758176932603,
                "toDownstreamBytes": 372777,
                "toUpstreamBytes": 1402
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "北京市 大兴区",
                        "iso": 860,
                        "location": {
                            "latitude": 39.911,
                            "longitude": 116.395,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 5
                        },
                        "cnProvince": "北京市",
                        "cnCity": "大兴区",
                        "cnDistricts": ""
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 4808,
                        "organization": "China Unicom Beijing Province Network",
                        "ipAddress": "111.194.43.130",
                        "network": {
                            "ipAddress": "111.192.0.0",
                            "prefixLength": 13
                        }
                    },
                    "network": {
                        "isp": "中国联通",
                        "netType": "宽带"
                    }
                },
                "downstreamHost": "111.194.43.130",
                "downstreamPort": 40767,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.194.43.130",
                "proxyOutgoingPort": 40767,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176743171,
                "lastActivityAt": 1758176930600,
                "toDownstreamBytes": 333114,
                "toUpstreamBytes": 1479
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "上海市 闵行区",
                        "iso": 860,
                        "location": {
                            "latitude": 34.7732,
                            "longitude": 113.722,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 1000
                        },
                        "cnProvince": "上海市",
                        "cnCity": "闵行区",
                        "cnDistricts": ""
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 4812,
                        "organization": "China Telecom Group",
                        "ipAddress": "218.80.106.36",
                        "network": {
                            "ipAddress": "218.80.0.0",
                            "prefixLength": 15
                        }
                    },
                    "network": {
                        "isp": "中国电信",
                        "netType": null
                    }
                },
                "downstreamHost": "218.80.106.36",
                "downstreamPort": 17261,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.80.106.36",
                "proxyOutgoingPort": 17261,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176751891,
                "lastActivityAt": 1758176936614,
                "toDownstreamBytes": 273994,
                "toUpstreamBytes": 1590
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "四川省 成都市 双流区",
                        "iso": 86510116,
                        "location": {
                            "latitude": 30.6667,
                            "longitude": 104.0667,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 100
                        },
                        "cnProvince": "四川省",
                        "cnCity": "成都市",
                        "cnDistricts": "双流区"
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 4134,
                        "organization": "Chinanet",
                        "ipAddress": "110.184.161.113",
                        "network": {
                            "ipAddress": "110.184.0.0",
                            "prefixLength": 16
                        }
                    },
                    "network": {
                        "isp": "中国电信",
                        "netType": "宽带"
                    }
                },
                "downstreamHost": "110.184.161.113",
                "downstreamPort": 8512,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.184.161.113",
                "proxyOutgoingPort": 8512,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176777825,
                "lastActivityAt": 1758176936107,
                "toDownstreamBytes": 247333,
                "toUpstreamBytes": 1505
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "广西壮族自治区 贵港市 港北区",
                        "iso": 86450802,
                        "location": {
                            "latitude": 23.1181,
                            "longitude": 113.2539,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 500
                        },
                        "cnProvince": "广西壮族自治区",
                        "cnCity": "贵港市",
                        "cnDistricts": "港北区"
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 9808,
                        "organization": "China Mobile Communications Group Co., Ltd.",
                        "ipAddress": "111.58.69.117",
                        "network": {
                            "ipAddress": "111.56.0.0",
                            "prefixLength": 14
                        }
                    },
                    "network": {
                        "isp": "中国移动",
                        "netType": "宽带"
                    }
                },
                "downstreamHost": "111.58.69.117",
                "downstreamPort": 36170,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.58.69.117",
                "proxyOutgoingPort": 36170,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176755028,
                "lastActivityAt": 1758176886050,
                "toDownstreamBytes": 121978,
                "toUpstreamBytes": 1107
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "湖南省 长沙市",
                        "iso": 860,
                        "location": {
                            "latitude": 28.2014,
                            "longitude": 112.9611,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 10
                        },
                        "cnProvince": "湖南省",
                        "cnCity": "长沙市",
                        "cnDistricts": ""
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 4134,
                        "organization": "Chinanet",
                        "ipAddress": "175.11.71.235",
                        "network": {
                            "ipAddress": "175.8.0.0",
                            "prefixLength": 14
                        }
                    },
                    "network": {
                        "isp": "中国电信",
                        "netType": "宽带"
                    }
                },
                "downstreamHost": "175.11.71.235",
                "downstreamPort": 49419,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.11.71.235",
                "proxyOutgoingPort": 49419,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176705673,
                "lastActivityAt": 1758176930600,
                "toDownstreamBytes": 119436,
                "toUpstreamBytes": 1239
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "广东省 广州市 黄埔区",
                        "iso": 86440112,
                        "location": {
                            "latitude": 23.1181,
                            "longitude": 113.2539,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 50
                        },
                        "cnProvince": "广东省",
                        "cnCity": "广州市",
                        "cnDistricts": "黄埔区"
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 4134,
                        "organization": "Chinanet",
                        "ipAddress": "116.22.204.221",
                        "network": {
                            "ipAddress": "116.22.0.0",
                            "prefixLength": 15
                        }
                    },
                    "network": {
                        "isp": "中国电信",
                        "netType": "宽带"
                    }
                },
                "downstreamHost": "116.22.204.221",
                "downstreamPort": 2625,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.22.204.221",
                "proxyOutgoingPort": 2625,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176744872,
                "lastActivityAt": 1758176929098,
                "toDownstreamBytes": 89994,
                "toUpstreamBytes": 925
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "湖南省 长沙市 雨花区",
                        "iso": 86430111,
                        "location": {
                            "latitude": 28.2014,
                            "longitude": 112.9611,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 100
                        },
                        "cnProvince": "湖南省",
                        "cnCity": "长沙市",
                        "cnDistricts": "雨花区"
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 4837,
                        "organization": "CHINA UNICOM China169 Backbone",
                        "ipAddress": "42.48.3.107",
                        "network": {
                            "ipAddress": "42.48.0.0",
                            "prefixLength": 15
                        }
                    },
                    "network": {
                        "isp": "中国联通",
                        "netType": "宽带"
                    }
                },
                "downstreamHost": "42.48.3.107",
                "downstreamPort": 18231,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.48.3.107",
                "proxyOutgoingPort": 18231,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176781633,
                "lastActivityAt": 1758176936106,
                "toDownstreamBytes": 72991,
                "toUpstreamBytes": 778
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "河北省 保定市",
                        "iso": 860,
                        "location": {
                            "latitude": 34.7732,
                            "longitude": 113.722,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 1000
                        },
                        "cnProvince": "河北省",
                        "cnCity": "保定市",
                        "cnDistricts": ""
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 136197,
                        "organization": "Xiongan, Hebei Province, P.R.China.",
                        "ipAddress": "144.7.77.158",
                        "network": {
                            "ipAddress": "144.7.64.0",
                            "prefixLength": 18
                        }
                    },
                    "network": {
                        "isp": "中国电信",
                        "netType": null
                    }
                },
                "downstreamHost": "144.7.77.158",
                "downstreamPort": 18849,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.7.77.158",
                "proxyOutgoingPort": 18849,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176841024,
                "lastActivityAt": 1758176934583,
                "toDownstreamBytes": 52789,
                "toUpstreamBytes": 797
            },
            {
                "ipGeoData": {
                    "city": {
                        "name": "福建省 泉州市",
                        "iso": 860,
                        "location": {
                            "latitude": 26.0614,
                            "longitude": 119.3061,
                            "timeZone": "Asia/Shanghai",
                            "accuracyRadius": 20
                        },
                        "cnProvince": "福建省",
                        "cnCity": "泉州市",
                        "cnDistricts": ""
                    },
                    "country": {
                        "name": "中国",
                        "iso": "CN"
                    },
                    "as": {
                        "number": 4134,
                        "organization": "Chinanet",
                        "ipAddress": "61.131.52.28",
                        "network": {
                            "ipAddress": "61.131.0.0",
                            "prefixLength": 16
                        }
                    },
                    "network": {
                        "isp": "中国电信",
                        "netType": null
                    }
                },
                "downstreamHost": "61.131.52.28",
                "downstreamPort": 46551,
                "proxyHost": "[::]",
                "proxyPort": 57860,
                "proxyOutgoingHost": "127.131.52.28",
                "proxyOutgoingPort": 46551,
                "upstreamHost": "127.0.0.1",
                "upstreamPort": 7222,
                "establishedAt": 1758176833630,
                "lastActivityAt": 1758176927653,
                "toDownstreamBytes": 29741,
                "toUpstreamBytes": 834
            }
        ]
    }
}
修改于 2025-09-18 13:08:41
上一页
获取指定隧道信息
下一页
获取状态
Built with