Top Menu

如何用家里的服务器作为检测节点

国外的检测节点很容易获得,但是国内的就比较难,原因在于国内接入需要备案,但是如果仅仅是自用的话,其实家里的服务器也可以用来作为检测节点。

目前已知最新的阻断方式是针对特定端口的,所以传统的Ping测试或针对80的TCP检测都已经失效。

下面就如何在家用服务器上配置检测节点进行说明

主要内容如下

  • 使用FRP进行内网穿透
  • 设置目标服务器的返回内容
  • 配置本地检测服务

使用FRP进行内网穿透

家用服务器有一个特点就是通常在防火墙后端,为了安全考虑,并不建议在防火墙上开启UPNP或DMZ,因为不可控因素太多。所以在不对防火墙进行任何修改的前提下,就要使用FRP进行安全的内网穿透。

FRP使用说明

FRP的使用在官方文档已有详细说明,我们首先需要一台主机配置并运行FRPS,然后在本地服务器上配置并运行FRPC,FRP是二进制文件,无需安装,下载后即可使用。

FRP的核心是配置文件,下面的[required]需要替换为实际内容

FRPS.ini

[common] bind_addr = 0.0.0.0 bind_port = 7000 bind_udp_port = 7001 kcp_bind_port = 7000 proxy_bind_addr = 0.0.0.0 vhost_http_port = 7000 vhost_https_port = 7000 vhost_http_timeout = 60 dashboard_addr = 0.0.0.0 dashboard_port = 7500 dashboard_user = [required] dashboard_pwd = [required] log_file = frps.log log_level = debug log_max_days = 7 token = [required] heartbeat_timeout = 90 allow_ports = [required] max_pool_count = 20 max_ports_per_client = 0 subdomain_host = [required] tcp_mux = true

Continue Reading 0

Powered by WordPress. Designed by WooThemes