mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-09 15:19:55 +03:00
Replace dokodemo-door with tunnel (#858)
This commit is contained in:
@@ -98,7 +98,7 @@ iptables -t mangle -A OUTPUT -m owner ! --gid-owner 23333 -j XRAY_SELF
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"protocol": "tunnel",
|
||||
"settings": {
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
|
||||
@@ -159,7 +159,7 @@ WantedBy=multi-user.target
|
||||
{
|
||||
"tag": "tproxy-in",
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"protocol": "tunnel",
|
||||
"settings": {
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
|
||||
@@ -103,7 +103,7 @@ lsmod | grep wireguard
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"port": 12345, // <port>
|
||||
"protocol": "dokodemo-door",
|
||||
"protocol": "tunnel",
|
||||
"settings": {
|
||||
"rewriteAddress": "127.0.0.1"
|
||||
},
|
||||
|
||||
@@ -32,7 +32,7 @@ sudo curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/
|
||||
{
|
||||
"tag": "all-in",
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"protocol": "tunnel",
|
||||
"settings": {
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{
|
||||
"tag": "all-in",
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"protocol": "tunnel",
|
||||
"settings": {
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
## 查看流量信息
|
||||
|
||||
配置方法与 v2fly 一致。
|
||||
查看流量信息是 xray 命令行的其中一个功能。配置内设置的 api dokodemo-door 端口,即为 `--server` 参数的端口。
|
||||
查看流量信息是 xray 命令行的其中一个功能。配置内设置的 api tunnel 端口,即为 `--server` 参数的端口。
|
||||
|
||||
```bash
|
||||
xray api statsquery --server=127.0.0.1:10085 #查看所有流量
|
||||
|
||||
@@ -111,7 +111,7 @@ Linux 使用`Netfilter`来管理网络,`Netfilter`模型如下:
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"protocol": "tunnel",
|
||||
"settings": {
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
|
||||
Reference in New Issue
Block a user