惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
博客园_首页
J
Java Code Geeks
C
Check Point Blog
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
D
Docker
U
Unit 42
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
GbyAI
GbyAI
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog

博客园 - lsgxeva

SD 卡 / T F卡(Micro SD)检测工具解析:如何用硬件工具确保存储介质可靠性? 第一个案例策略 不用#ifdef写跨平台代码 Windbg常用调试命令 全频段阻塞 Practical Clean Architecture in Typescript, Rust & Python 摄像头配置 ClickToRunSvc logiccircuit help Python 模块 NumPy 影像处理 AI协作 Python 函数和类 Python 入门 VisionLink-RT VisionLink-AI-Glasse RK3588 firefly net OpenWrt 集成 openNDS 进行 强制门户(Captive Portal) 认证 OpenWrt 集成 easycwmpd 成为 TR-069协议中的设备端(CPE) eh.h acu100 bridge vlan config 卫星天线(KA 0.85m 4W_BUC)使用 SatBox331-20 Modem 的性能情况 OpenSpec OPSX 完整指南 Claude Skill Creator 2.0 完整上手攻略 Auto-Memory + CLAUDE.md Conductor 完整上手攻略 GitNexus 完整上手攻略 code-review-graph 完整上手攻略 Claude Code Hooks 完整开发者指南 Openwrt switch vlan配置 llm-course Claude Code 入门教程
n2n config
lsgxeva · 2026-06-21 · via 博客园 - lsgxeva

n2n config

### 客户端链接流向 ( Wrt 为 n2n-edge , Ubunut 为 n2n-supernode )

FRPC [ frpc_server ( tcp://a.b.c.d:39527 ) --> frpc_client ( tcp://127.0.0.1:19527 ) ]

Wrt [ n2n-edge_client ( udp://127.0.0.1:9527 ) 
				--> udp2raw_client ( udp://127.0.0.1:9527 --> tcp://a.b.c.d:39527 ) ]

Ubuntu [ frpc_client ( tcp://a.b.c.d:39527 --> tcp://127.0.0.1:19527 ) 
				--> udp2raw_server ( tcp://127.0.0.1:19527 --> udp://127.0.0.1:9527 ) 
				--> n2n-supernode_server ( udp://127.0.0.1:9527 ) ]

------------------

### Ubuntu Server ( frpc Client ) ( udp2raw server ) ( n2n supernode )

/usr/local/bin/frpc -c /usr/local/bin/n2n.toml
wget https://github.com/wangyu-/udp2raw/releases/download/20230206.0/udp2raw_binaries.tar.gz
/usr/local/bin/udp2raw -s -l 127.0.0.1:19527 -r 127.0.0.1:9527 -k xyzd1234 --raw-mode faketcp -a --log-level 3
/usr/sbin/supernode /etc/n2n/supernode.conf -f
/usr/sbin/supernode -p 9527 -v -f

------------------

### Wrt Clien ( udp2raw client ) ( n2n edge )

/usr/bin/udp2raw -c -l 127.0.0.1:9527 -r a.b.c.d:39527 -k xyzd1234 --raw-mode faketcp -a --log-level 3
/usr/bin/n2n-edge -f -u 0 -g 0 -d n2n0 -a static:10.10.1.11/24 -c testing -l 127.0.0.1:9527 -k pass1234 -M 1290 -r -E

============= End