-
连接到 proton VPN 的服务器:
- 使用 netcat 连接到 proton VPN 的服务器,
nc -z 1 1.1..1 mynetcat IP
- 替换
mynetcat IP为你的 netcat IP。
- 使用 netcat 连接到 proton VPN 的服务器,
-
访问 site.php:
- 打开 site.php,并在浏览器中输入你的 netcat IP:
http://1.1..1 site.php
- 保持浏览器连接到 proton VPN 的服务器,确保 netcat IP 在 tunneled 端。
- 打开 site.php,并在浏览器中输入你的 netcat IP:
-
安装和配置 software:
- 安装必要的软件命令:
netcat -a https firewalld -a firewalld-proton -a
- 创建或使用防火墙规则,确保访问 site.php 的权限允许:
fd -b 124 1.1..1 1.1..1 fd -b 124 1.1..1 1.1..1
- 使用 tunnel 接口访问 site.php:
nc -t 1 1.1..1 tunnel
- 安装必要的软件命令:
-
测试访问 site.php 的请求:
- 在 tunnel 端访问 site.php:
nc -t 1 1.1..1 tunnel
- 如果请求无法通过,检查防火墙规则,确保 tunnel 口允许访问。
- 在 tunnel 端访问 site.php:
-
测试 tunnel 和 tunnel 口连接:
- 测试访问 site.php 后,通过 tunnel 靠近 tunnel:
nc -t 1 1.1..1 tunnel tunnel
- 如果请求通过 tunnel 后的 interface,说明 tunnel 口有效。
- 测试访问 site.php 后,通过 tunnel 靠近 tunnel:
-
测试访问 site.php 的请求是否通过 tunnel 和 tunnel 口:
- 使用 tunnel 接口访问 site.php:
nc -t 1 1.1..1 tunnel tunnel
- 通过 tunnel 后的 interface,再次访问 site.php:
nc -t 1 1.1..1 tunnel tunnel tunnel site.php
- 如果请求通过 tunnel 后的 interface,说明 tunnel 口有效。
- 使用 tunnel 接口访问 site.php:
-
测试访问 site.php 的请求是否通过 tunnel 和 tunnel 口,再通过 tunnel 后的 interface 和 tunnel 口:
- 使用 tunnel 接口访问 site.php:
nc -t 1 1.1..1 tunnel tunnel tunnel site.php
- 通过 tunnel 后的 interface,再次访问 site.php:
nc -t 1 1.1..1 tunnel tunnel tunnel tunnel site.php
- 如果请求通过 tunnel 后的 interface,说明 tunnel 口有效。
- 使用 tunnel 接口访问 site.php:
-
测试访问 site.php 的请求是否能通过 tunnel 和 tunnel 口访问:
- 测试访问 site.php:
nc -t 1 1.1..1 tunnel tunnel site.php
- 如果请求通过 tunnel 后的 interface,说明 tunnel 口有效。
- 测试访问 site.php:
-
测试 tunnel 和 tunnel 口的双向连接:
- 测试访问 site.php 后,通过 tunnel 靠近 tunnel:
nc -t 1 1.1..1 tunnel tunnel
- 通过 tunnel 后的 interface,再次访问 site.php:
nc -t 1 1.1..1 tunnel tunnel tunnel site.php
- 如果请求通过 tunnel 后的 interface,说明 tunnel 口有效。
- 测试访问 site.php 后,通过 tunnel 靠近 tunnel:
注意事项:
- 如果防火墙阻止访问 site.php,检查防火墙规则,确保 tunnel 口允许访问。
- tunnel 口无效,可能需要升级防火墙或配置更多的安全软件。
- 确保 site.php 的访问权限正确,如读取、写入或执行脚本来符合你的需求。
通过以上步骤,您可以测试 proton VPN 的节点连接,并确保 tunnel 和 tunnel 口的正常工作。


