-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Dokodemo-door: Add simple tunnel
config (alias and default values)
#4968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dokodemo-door -> tunnel freedom -> direct blackhole -> block #4966 (comment)
tunnel
config and default valuestunnel
config and default values
tunnel
config and default valuestunnel
config (alias and default values)
@Fangliding 文档里写的 |
啊? |
|
这。。 |
还有如果出站是freedom的话自己倒自己会无限回环 |
|
有点想加个配置项 |
很久以前写过这种恶趣味功能 输入一个公式 然后计算 RemotePort = f(LocalPort) mod 65536 |
大佬,请问如果转发的端口设置为1-65535,xray现在是可以直接当gateway使用了吗? |
这和三层的gateway可不是一个东西啊。。 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
…specified address/port) Completes #4968
146b14a 新增 已更新本 PR 正文与配置示例, |
I use this new alias for serverless-for-Iran to force clients use latest version, to benefit from the latest features and bug fixes. /// also, I think adding what's your idea? |
这个我也想过,可以做,你写吧 |
因为以后出配置订阅肯定要加 |
Should it be added to |
加在根配置吧, |
Ok, I'll add it later, anyway it cannot force current users. |
"version": {
"min": "25.8.3",
"max": ""
} |
When will the new version be released? |
2025.8.3 |
ok, i will add in 2 hours at most. |
…TLS#4968) dokodemo-door -> tunnel freedom -> direct blackhole -> block XTLS#4966 (comment) XTLS#4967 (comment) (cherry picked from commit 116cd70)
先前讨论:#4966 (comment) ,#4967 (comment)
Xray-core 一直都支持类似于 gost、realm 等软件所谓的“隧道”功能(通过代理协议来端口转发),也就是 dokodemo-door 入站,但是由于当初 v2 起的这个名字不太直观,知道 *ray 还能当“隧道”用的人并不多,导致 dokodemo-door 入站几乎仅用于透明代理
这也提醒各位记得在服务端 block "geoip:private",防止用户通过代理直接穿透到服务端的内网现在更名为了
tunnel
、设置了些默认值以方便使用,顺便给 freedom 加了别名direct
、blackhole 加了别名block
以追求直观Tunnel 的
address
即目标地址默认为服务端的 127.0.0.1/::1,port
即目标端口默认等于本地监听端口,对于多个端口尤其有用:(146b14a 新增
portMap
配置项,可以按本地监听端口指定走代理后的目标地址/端口,优先级高于原有的address
/port
)通过以上配置即可简单地把客户端的 IPv4/TCP/5000-6001 端口通过 VLESS 协议转发到服务端相应的 IPv4/TCP/5000-6001 端口
当然你也可以设置 tunnel 入站 settings 的
address
/port
或 direct 出站的redirect
以强制覆写目标地址或端口,或都覆写(特别地,由 tunnel 入站 5555 端口接收的流量会通过 VLESS 协议转发到 1.1.1.1:7777,优先级高于原有的
address
/port
)本次久违地放出了一些 REALITY NFT 和几个 Project X NFT
请支持一个 REALITY NFT:https://opensea.io/assets/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/2
如果你有余力,请支持一个 Project X NFT:https://opensea.io/assets/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/1