JOURNAL / WORDS & IDEAS

虚拟机中的 Proxifier、v2rayN 与 GoLogin

记录虚拟机内应用代理、浏览器配置与规则隔离的组合方式。

阅读设置

环境说明

  • 运行环境:所有软件(v2rayN, Proxifier, GoLogin)均运行在同一台虚拟机内。
  • 流量路径:GoLogin (Kookeey) → Proxifier → v2rayN (本地梯子) → 出墙 → Kookeey 服务器 → 目标网站。

1. v2rayN 设置(基础地基)

  • 确保基础节点(VPS/机场)连接正常,可以访问外网。
  • 确认本地 SOCKS5 监听端口(通常为 10808)。

2. Proxifier 设置(流量调度核心)

A. 域名解析设置 (Name Resolution)

  • ✅ 勾选Resolve hostnames through proxy。
    • 说明:让代理服务器端解析域名,无需修改为本地解析。

B. 代理服务器 (Proxy Servers)

  • 添加本机节点:
    • Address: 127.0.0.1
    • Port: 10808
    • Protocol: SOCKS5

C. 代理规则 (Proxification Rules)

  • 注意:规则顺序必须严格按照以下优先级排列(从上到下):
    1. Localhost Fix (防死循环):
      • Target Hosts: localhost; 127.0.0.1; %ComputerName%; ::1
      • Action: Direct (直连)
    2. V2Ray Core (防死循环):
      • Applications: v2rayN.exe; xray.exe; v2ray.exe
      • Action: Direct (直连)
    3. GoLogin (目标程序):
      • Applications: gologin.exe; orbita.exe; chrome.exe
      • Action: Proxy SOCKS5 127.0.0.1:10808
    4. Default:
      • Action: 根据需求设置(建议 Direct,只代理特定软件;或 Proxy 全局代理)。

3. GoLogin 浏览器设置

  • Proxy Type: 选择 SOCKS5 (关键点,不要选 HTTP)。
  • IP or Host: 直接填写域名 gate.kookeey.info (无需手动解析 IP)。
  • Port: 1000
  • Username: 填写 Kookeey 用户名 (例如 5174867-xxxx).
  • Password: 填写 Kookeey 密码 (例如 85c25c83-xxxx).

4. 成功要素总结

  1. 协议选择:GoLogin 必须使用 SOCKS5 协议,配合 Proxifier 最稳定。
  2. 防环路:Proxifier 中必须第一位设置 127.0.0.1 和 v2rayN 直连,否则会死循环。
  3. DNS:保持 Proxifier 的远程解析开启,GoLogin 直接填域名即可,链路会自动处理解析。

规则核对

规则从上到下匹配:先放行 localhost 和实际代理核心进程,再匹配指定应用,最后设置默认规则。HTTP、SOCKS 与混合端口取决于客户端配置;DNS 也需单独验证。