V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  maninnet  ›  全部回复第 1 页 / 共 7 页
回复总数  132
1  2  3  4  5  6  7  
@le4tim
=== Trying P2P Connection ===
Exchanging sync message for P2P round 1 ... OK
- Network : tcp4
- Local Address : 10.100.xxx.xxx:12551 (LAN) / 112.xxx.xxx.xxx:12551 (NAT-easy)
- Remote Address: 192.168.xxx.xxx:40718 (LAN) / 223.xxx.xxx.xxx:31918 (NAT-hard)
- Best Route : 223.xxx.xxx.xxx:31918 (reason: different network)
- Passive Mode : connect start after 2s
↑ Trying 600 Random Destination Ports concurrently...
P2P(TCP) connection established (RDP)!
这样看起来 TCP 建立的连接吗?很奇怪的是,我现在家里的网络是 NAT-hard ,公司的是 easy ,我老家的也是 easy ,但我现在的网络在 tailscale 跟各个节点都能直连,但其他的跟公司都是中转。而且我一般就是晚上 8-10 点这段特别卡,估计就是被 qos 了。
@le4tim 口令都是做过处理的。现在成功了,我大概明白怎么用了,我现在用的 tailscale ,显示也是直连,但是 gonc 速度比它快多了!非常感谢!
@maninnet 打反了,前面日志是客户端的,后面是服务端的。公司局域网段是 10.100.xxx.xxx
@le4tim github 找不回账号了,注册过不了验证,算了。直接发日志吧,下面就是按你文档操作的日志
服务端:
E:\Downloads>gonc -p2p 0rZj85CEjRBABmofzALgUN -link 1080
Generating ECDSA(PSK-derived) cert for secure communication...completed.
20260110-201517 [MQTT] Pushing Hello to topic nat-exchange/288b1fba89dc533d across 4 servers
20260110-201520 [MQTT] Hello operation completed (via tcp://guest:[email protected]:1883). tid: cdUDQYy91P;cs=tls
=== Checking NAT reachability ===
Getting local public IP info via 6 STUN servers...(7 answers)OK
tcp4 : LAN=192.168.1.16:32126 | NAT=223.xxx.xxx.239:31910 (hard)
udp4 : LAN=192.168.1.16:32126 | NAT=223.xxx.xxx.239:31984 (hard)
Exchanging address info with peer ...OK (via tcp://guest:[email protected]:1883)
tcp4 : LAN=10.100.62.128:7531 | NAT=112.xxx.xxx.127:7531 (easy)
udp4 : LAN=10.100.62.128:7531 | NAT=112.xxx.xxx.127:7531 (easy)
=== Trying P2P Connection ===
Exchanging sync message for P2P round 1 ... OK
- Network : tcp4
- Local Address : 192.168.1.16:32226 (LAN) / 223.xxx.xxx.239:32010 (NAT-hard)
- Remote Address: 10.100.62.128:7631 (LAN) / 112.xxx.xxx.127:7631 (NAT-easy)
- Best Route : 112.xxx.xxx.127:7631 (reason: different network)
- Active Mode : connect start immediately
↑ Trying 600 Random Source Ports concurrently...
P2P(TCP) connection established (RSP)!
Performing TLS-C handshake (PSK-based mutual authentication)...completed.
20260110-201528 [gonc] Connected to: 112.xxx.xxx.127:7631
20260110-201528 [:mux] Waiting for linkagent handshake...
20260110-201528 [:mux] [link] Sending R-Config: none?peer_active=1
20260110-201528 [:mux] [link] Waiting for Remote ACK...
20260110-201528 [:mux] [link] Remote ready (OK:none).
20260110-201528 [:mux] [link-x] Listening on 0.0.0.0:1080 (TProxy=true)
20260110-201528 [:mux] TProxy Format: 10.0.0.1-3389.gonc.cc:1080 -> 10.0.0.1:3389
20260110-201528 [:mux] [link] Local service started.
20260110-201554 [:mux] New client connected from 127.0.0.1:32145
20260110-201554 [:mux] TCP: 127.0.0.1:32145->10.0.0.1:1289 connecting...
20260110-201615 [:mux] 127.0.0.1:32145->10.0.0.1:1289 failed: ERROR: dial tcp 10.0.0.1:1289: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
20260110-201615 [:mux] Proxy session 127.0.0.1:32145->10.0.0.1 (T-CONNECT) finished with error: tunnel TCP connect failed: ERROR: dial tcp 10.0.0.1:1289: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

客户端:
C:\Users\Administrator\Desktop>gonc -p2p 0rZj85CEjRBABmofzALgUN -linkagent
Generating ECDSA(PSK-derived) cert for secure communication...completed.
20260110-201413 [MQTT] Waiting for event on topic: nat-exchange/288b1fba89dc533d across 4 servers
20260110-201519 [MQTT] Received event: SYN@cdUDQYy91P;cs=tls, (via tcp://guest:[email protected]:1883)
20260110-201519 [MQTT] Waiting for message(SYN@cdUDQYy91P;cs=tls) on topic: nat-exchange/288b1fba89dc533d across 4 servers
=== Checking NAT reachability ===
Getting local public IP info via 6 STUN servers...(7 answers)OK
tcp4 : LAN=10.100.62.128:7531 | NAT=112.xxx.xxx.127:7531 (easy)
udp4 : LAN=10.100.62.128:7531 | NAT=112.xxx.xxx.127:7531 (easy)
Exchanging address info with peer ...OK (via tcp://guest:[email protected]:1883)
tcp4 : LAN=192.168.1.16:32126 | NAT=223.xxx.xxx.239:31910 (hard)
udp4 : LAN=192.168.1.16:32126 | NAT=223.xxx.xxx.239:31984 (hard)
=== Trying P2P Connection ===
Exchanging sync message for P2P round 1 ... OK
- Network : tcp4
- Local Address : 10.100.62.128:7631 (LAN) / 112.xxx.xxx.127:7631 (NAT-easy)
- Remote Address: 192.168.1.16:32226 (LAN) / 223.xxx.xxx.239:32010 (NAT-hard)
- Best Route : 223.xxx.xxx.239:32010 (reason: different network)
- Passive Mode : connect start after 2s
↑ Trying 600 Random Destination Ports concurrently...
P2P(TCP) connection established (RDP)!
Performing TLS-S handshake (PSK-based mutual authentication)...completed.
20260110-201529 [gonc] Connected to: 223.xxx.xxx.239:25379
20260110-201529 [:mux] [linkagent] Session established. OwnerID=
20260110-201531 [MQTT] Waiting for event on topic: nat-exchange/288b1fba89dc533d across 4 servers
20260110-201555 [:mux] TCP-Connect: 10.0.0.1:1289
20260110-201616 [:mux] Failed to connect to target 10.0.0.1:1289: dial tcp 10.0.0.1:1289: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

使用 10.0.0.1-1289.gonc.cc:1080 远程桌面显示内部错误
@le4tim 是的,原来没开不行,我就开了 magicdns 。。。
@le4tim 不行,提示内部错误
我家里电脑的输出:
20260110-123313 [:mux] Waiting for linkagent handshake...
20260110-123313 [:mux] [link] Sending R-Config: none?peer_active=1
20260110-123313 [:mux] [link] Waiting for Remote ACK...
20260110-123313 [:mux] [link] Remote ready (OK:none).
20260110-123313 [:mux] [link-x] Listening on 0.0.0.0:1080 (TProxy=true)
20260110-123313 [:mux] TProxy Format: 127.1.13.61:1080 -> 1.1:3389
20260110-123313 [:mux] [link] Local service started.
20260110-123318 [:mux] New client connected from 127.0.0.1:34870
20260110-123318 [:mux] TCP: 127.0.0.1:34870->1.132:9172 connecting...
20260110-123318 [:mux] 127.0.0.1:34870->1.132:9172 failed: ERROR: DNS lookup failed for '1.132' on network 'ip': lookup 1.132: no such host
20260110-123318 [:mux] Proxy session 127.0.0.1:34870->1.132 (T-CONNECT) finished with error: tunnel TCP connect failed: ERROR: DNS lookup failed for '1.132' on network 'ip': lookup 1.132: no such host

公司电脑输出
20260110-123314 [:mux] [linkagent] Session established. OwnerID=
20260110-123316 [MQTT] Waiting for event on topic: nat-exchange/288b1baf89dc533d across 4 servers
20260110-123319 [:mux] TCP-Connect: 1.132:9172
没搞明白,电脑的远程桌面端口不是 3389 怎么指定?服务器用 gonc -p2p 0rZj85CEjRBABmofzALgUN -linkagent 这种方式启动。
2025 年 12 月 28 日
回复了 maninnet 创建的主题 git 有什么支持直接连接远程主机 git 仓库的 GUI 工具吗
@orzsirius
我现在试了一下楼上介绍的 git graph+gitlens ,貌似还不错,就是需要熟悉一下,我之前一直用的 sourcetree ,已经很习惯那种方式了。

@Rache1
我现在用 ugit 这种可以直接通过 ssh 远程主机再操作仓库的方法就很好,就是这玩意 UX 做得太差了


@ysc3839
这种 io 慢得要死,如果代码在 windows ,我在 vscode 写代码每次保存都得十几秒,可能跟 gopls 也有关系。
2025 年 12 月 28 日
回复了 maninnet 创建的主题 git 有什么支持直接连接远程主机 git 仓库的 GUI 工具吗
@KiraMaple 看起来很不错的样子,我尝试一下, ths
2025 年 12 月 28 日
回复了 maninnet 创建的主题 git 有什么支持直接连接远程主机 git 仓库的 GUI 工具吗
@QS0x01 命令还是太麻烦了,而且是真的记不住,我只是偶尔才会用命令。
2025 年 4 月 7 日
回复了 jiang1209 创建的主题 职场话题 Gap 半年,三十岁程序员找工作记录 day14
跟 gap 没啥关系吧,刚领礼包投的简历都是已读不回。现在行情太差了,都忙着裁呢。
2025 年 2 月 24 日
回复了 975779964 创建的主题 健康 感冒引起头痛,头痛 3 天了,医生让我住院做腰间穿刺
十多年前我也有段时间头痛,动一下都痛那种,然后去中山三看,医生让我做腰穿…我查了一下,觉得有点恐怖,也怕留下后遗症就没做,后来头痛症状没有了。
@Autonomous 然而大多数菜鸡觉得在左道 120 就是安全的,看那么多事故视频,大多数都发生在左侧车道。我现在是前后左右有车我就觉得很不安全,一般我就快速驶离了。如果是节假日,我反而觉得右侧比较安全,毕竟右边还有一条应急车道。
省 400 高速费,挺好的
2025 年 1 月 19 日
回复了 jkfadsljlasdgs 创建的主题 问与答 不需要手机号能用的邮箱?
2025 年 1 月 19 日
回复了 shadoworld 创建的主题 NAS 只备份照片,预算 500 以下(不含硬盘),有推荐吗
我淘了个升腾 C62 j1900 的机器,一百多,待机功耗好像 5w ,做备份绰绰有余。
@xcjzv 14 钉子户……越来越多的 app 不支持了
2025 年 1 月 19 日
回复了 maninnet 创建的主题 DNS 请教一下 AdGurad Home 的 DNS 重写配置问题
@tunggt 我的路由器是 erx ,没有 dnsmasq ,而且我现在已经可以转发了,之前的问题是因为电脑的 v2ray 代理导致的。
1  2  3  4  5  6  7  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5856 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 02:16 · PVG 10:16 · LAX 18:16 · JFK 21:16
♥ Do have faith in what you're doing.