mirror of https://github.com/telemt/telemt.git
xray with xhttp configuration
This commit is contained in:
parent
a526fee728
commit
1265234491
|
|
@ -40,6 +40,11 @@ xray x25519
|
||||||
openssl rand -hex 16
|
openssl rand -hex 16
|
||||||
# Save the output (e.g.: 0123456789abcdef0123456789abcdef) — this is <SHORT_ID>
|
# Save the output (e.g.: 0123456789abcdef0123456789abcdef) — this is <SHORT_ID>
|
||||||
```
|
```
|
||||||
|
4. **Random Path (for xhttp):**
|
||||||
|
```bash
|
||||||
|
openssl rand -hex 8
|
||||||
|
# Save the output (e.g., abc123def456) to replace <YOUR_RANDOM_PATH> in configs
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -61,6 +66,7 @@ File content:
|
||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
|
"tag": "vless-in",
|
||||||
"port": 443,
|
"port": 443,
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|
@ -72,7 +78,7 @@ File content:
|
||||||
"decryption": "none"
|
"decryption": "none"
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "tcp",
|
"network": "xhttp",
|
||||||
"security": "reality",
|
"security": "reality",
|
||||||
"realitySettings": {
|
"realitySettings": {
|
||||||
"dest": "yahoo.com:443",
|
"dest": "yahoo.com:443",
|
||||||
|
|
@ -83,31 +89,32 @@ File content:
|
||||||
"shortIds": [
|
"shortIds": [
|
||||||
"<SHORT_ID>"
|
"<SHORT_ID>"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"xhttpSettings": {
|
||||||
|
"path": "/<YOUR_RANDOM_PATH>",
|
||||||
|
"mode": "auto"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"sockopt": {
|
|
||||||
"tcpFastOpen": true,
|
|
||||||
"tcpNoDelay": true,
|
|
||||||
"tcpKeepAliveIdle": 60,
|
|
||||||
"tcpKeepAliveInterval": 15
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
|
"tag": "tunnel-to-telemt",
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"tag": "direct",
|
|
||||||
"settings": {
|
"settings": {
|
||||||
"destination": "127.0.0.1:8443"
|
"destination": "127.0.0.1:8443"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"routing": {
|
"routing": {
|
||||||
|
"domainStrategy": "AsIs",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"type": "field",
|
"type": "field",
|
||||||
"inboundTag": ["all-in"],
|
"inboundTag": [
|
||||||
"outboundTag": "direct"
|
"vless-in"
|
||||||
|
],
|
||||||
|
"outboundTag": "tunnel-to-telemt"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -156,6 +163,7 @@ File content:
|
||||||
],
|
],
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
|
"tag": "vless-out",
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
"vnext": [
|
"vnext": [
|
||||||
|
|
@ -172,27 +180,18 @@ File content:
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "tcp",
|
"network": "xhttp",
|
||||||
"security": "reality",
|
"security": "reality",
|
||||||
"realitySettings": {
|
"realitySettings": {
|
||||||
"serverName": "yahoo.com",
|
"serverName": "yahoo.com",
|
||||||
"publicKey": "<SERVER_B_PUBLIC_KEY>",
|
"publicKey": "<SERVER_B_PUBLIC_KEY>",
|
||||||
"shortId": "<SHORT_ID>",
|
"shortId": "<SHORT_ID>",
|
||||||
"spiderX": "",
|
"spiderX": "/",
|
||||||
"fingerprint": "chrome"
|
"fingerprint": "chrome"
|
||||||
},
|
},
|
||||||
"sockopt": {
|
"xhttpSettings": {
|
||||||
"tcpFastOpen": true,
|
"path": "/<YOUR_RANDOM_PATH>"
|
||||||
"tcpNoDelay": true,
|
|
||||||
"tcpKeepAliveIdle": 60,
|
|
||||||
"tcpKeepAliveInterval": 15
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": true,
|
|
||||||
"concurrency": 256,
|
|
||||||
"xudpConcurrency": 16,
|
|
||||||
"xudpProxyUDP443": "reject"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,11 @@ xray x25519
|
||||||
openssl rand -hex 16
|
openssl rand -hex 16
|
||||||
# Сохраните вывод (например: 0123456789abcdef0123456789abcdef) — это <SHORT_ID>
|
# Сохраните вывод (например: 0123456789abcdef0123456789abcdef) — это <SHORT_ID>
|
||||||
```
|
```
|
||||||
|
4. **Random Path (путь для xhttp):**
|
||||||
|
```bash
|
||||||
|
openssl rand -hex 8
|
||||||
|
# Сохраните вывод (например, abc123def456), чтобы заменить <YOUR_RANDOM_PATH> в конфигах
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -61,6 +66,7 @@ nano /usr/local/etc/xray/config.json
|
||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
|
"tag": "vless-in",
|
||||||
"port": 443,
|
"port": 443,
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|
@ -72,7 +78,7 @@ nano /usr/local/etc/xray/config.json
|
||||||
"decryption": "none"
|
"decryption": "none"
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "tcp",
|
"network": "xhttp",
|
||||||
"security": "reality",
|
"security": "reality",
|
||||||
"realitySettings": {
|
"realitySettings": {
|
||||||
"dest": "yahoo.com:443",
|
"dest": "yahoo.com:443",
|
||||||
|
|
@ -83,31 +89,32 @@ nano /usr/local/etc/xray/config.json
|
||||||
"shortIds": [
|
"shortIds": [
|
||||||
"<SHORT_ID>"
|
"<SHORT_ID>"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"xhttpSettings": {
|
||||||
|
"path": "/<YOUR_RANDOM_PATH>",
|
||||||
|
"mode": "auto"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"sockopt": {
|
|
||||||
"tcpFastOpen": true,
|
|
||||||
"tcpNoDelay": true,
|
|
||||||
"tcpKeepAliveIdle": 60,
|
|
||||||
"tcpKeepAliveInterval": 15
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
|
"tag": "tunnel-to-telemt",
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"tag": "direct",
|
|
||||||
"settings": {
|
"settings": {
|
||||||
"destination": "127.0.0.1:8443"
|
"destination": "127.0.0.1:8443"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"routing": {
|
"routing": {
|
||||||
|
"domainStrategy": "AsIs",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"type": "field",
|
"type": "field",
|
||||||
"inboundTag": ["all-in"],
|
"inboundTag": [
|
||||||
"outboundTag": "direct"
|
"vless-in"
|
||||||
|
],
|
||||||
|
"outboundTag": "tunnel-to-telemt"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -156,6 +163,7 @@ nano /usr/local/etc/xray/config.json
|
||||||
],
|
],
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
|
"tag": "vless-out",
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
"vnext": [
|
"vnext": [
|
||||||
|
|
@ -172,27 +180,18 @@ nano /usr/local/etc/xray/config.json
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "tcp",
|
"network": "xhttp",
|
||||||
"security": "reality",
|
"security": "reality",
|
||||||
"realitySettings": {
|
"realitySettings": {
|
||||||
"serverName": "yahoo.com",
|
"serverName": "yahoo.com",
|
||||||
"publicKey": "<SERVER_B_PUBLIC_KEY>",
|
"publicKey": "<SERVER_B_PUBLIC_KEY>",
|
||||||
"shortId": "<SHORT_ID>",
|
"shortId": "<SHORT_ID>",
|
||||||
"spiderX": "",
|
"spiderX": "/",
|
||||||
"fingerprint": "chrome"
|
"fingerprint": "chrome"
|
||||||
},
|
},
|
||||||
"sockopt": {
|
"xhttpSettings": {
|
||||||
"tcpFastOpen": true,
|
"path": "/<YOUR_RANDOM_PATH>"
|
||||||
"tcpNoDelay": true,
|
|
||||||
"tcpKeepAliveIdle": 60,
|
|
||||||
"tcpKeepAliveInterval": 15
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": true,
|
|
||||||
"concurrency": 256,
|
|
||||||
"xudpConcurrency": 16,
|
|
||||||
"xudpProxyUDP443": "reject"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue