mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-06-07 02:19:30 +08:00
Change 127.0.0.1
to ::1
This commit is contained in:
parent
68bc308422
commit
2fb8a67787
@ -32,7 +32,7 @@ The Vless-TCP-XTLS is the HTTPS entrypoint. For every incoming request after doi
|
||||
* If **ALPN=HTTP2** and at the same time the **SNI=trh2o.example.com** then the request is passed to **@trojan-h2**.
|
||||
* In case of **ALPN=HTTP2**, it's first passed to **@trojan-tcp**. In trojan-tcp, if if it's not a valid request(for example the trojan password is wrong), another fallback is set, to once more pass the request to Nginx HTTP2 Unix Domain Socket and a decory website is served. When the request is using HTTP2, it could also be gRPC, so that is also checked in Nginx. This is how a VMESS-gRPC request is processed:
|
||||
|
||||
VMESS-gRPC Request ------> Xray Vless-TCP-XTLS(443) ----**alpn=h2**----> fallback to xray trojan-tcp ------> fallback to nginx /dev/shm/h2c.sock ---**path=/vmgrpc**---> grpc_pass to xray vmess-gRPC listener on 127.0.0.1:3003
|
||||
VMESS-gRPC Request ------> Xray Vless-TCP-XTLS(443) ----**alpn=h2**----> fallback to xray trojan-tcp ------> fallback to nginx /dev/shm/h2c.sock ---**path=/vmgrpc**---> grpc_pass to xray vmess-gRPC listener on [::1]:3003
|
||||
|
||||
## What to change before use?
|
||||
* Xray server.json
|
||||
@ -61,7 +61,7 @@ VMESS-gRPC Request ------> Xray Vless-TCP-XTLS(443) ----**alpn=h2**----> fallbac
|
||||
|
||||
## Notes:
|
||||
* Tested with **Xray 1.7.2** (Xray, Penetrates Everything.) Custom (go1.19.4 linux/amd64)
|
||||
* For a little better performance, a DNS Cache could be setup (on 127.0.0.53 in this case) and used for resolving DNS queries. To enable xray to use it uncomment the corresponding rule from the `routing.settings.rules` in server.json.
|
||||
* For a little better performance, a DNS Cache could be setup (on ::1 in this case) and used for resolving DNS queries. To enable xray to use it uncomment the corresponding rule from the `routing.settings.rules` in server.json.
|
||||
* Multiple domains could be used at the same time, including domains behind cloudflare CDN. (For cloudflare, make sure websocket and gRPC are enabled in Network section). In this configuration these domains are **example.com** and **behindcdn.com**
|
||||
* HTTP2 inbounds (Trojan-H2, Vless-H2, VMESS-H2 and ShadowSocks-H2)
|
||||
* [HTTP2 Transport does not support fallback based on `path`](https://xtls.github.io/config/transports/h2.html#http-2). That's why SNI is used instead.
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -49,7 +49,7 @@ server {
|
||||
client_body_buffer_size 1m;
|
||||
client_body_timeout 1h;
|
||||
client_max_body_size 0;
|
||||
grpc_pass grpc://127.0.0.1:3001;
|
||||
grpc_pass grpc://[::1]:3001;
|
||||
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ server {
|
||||
client_body_buffer_size 1m;
|
||||
client_body_timeout 1h;
|
||||
client_max_body_size 0;
|
||||
grpc_pass grpc://127.0.0.1:3002;
|
||||
grpc_pass grpc://[::1]:3002;
|
||||
|
||||
}
|
||||
|
||||
@ -73,7 +73,7 @@ server {
|
||||
client_body_buffer_size 1m;
|
||||
client_body_timeout 1h;
|
||||
client_max_body_size 0;
|
||||
grpc_pass grpc://127.0.0.1:3003;
|
||||
grpc_pass grpc://[::1]:3003;
|
||||
|
||||
}
|
||||
|
||||
@ -85,6 +85,6 @@ server {
|
||||
client_body_buffer_size 1m;
|
||||
client_body_timeout 1h;
|
||||
client_max_body_size 0;
|
||||
grpc_pass grpc://127.0.0.1:3004;
|
||||
grpc_pass grpc://[::1]:3004;
|
||||
}
|
||||
}
|
@ -27,11 +27,11 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 62789,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"address": "127.0.0.1"
|
||||
"address": "::1"
|
||||
},
|
||||
"tag": "api",
|
||||
"sniffing": null
|
||||
@ -257,7 +257,7 @@
|
||||
},
|
||||
{
|
||||
"tag": "shadowsocks-ws",
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 4001,
|
||||
"protocol": "shadowsocks",
|
||||
"settings": {
|
||||
@ -394,7 +394,7 @@
|
||||
},
|
||||
{
|
||||
"tag": "shadowsocks-tcp",
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 4002,
|
||||
"protocol": "shadowsocks",
|
||||
"settings": {
|
||||
@ -430,7 +430,7 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
{
|
||||
"tag": "trojan-grpc",
|
||||
"listen": "127.0.0.1", // listen on localhost
|
||||
"listen": "::1", // listen on localhost
|
||||
"port": 3001,
|
||||
"protocol": "trojan",
|
||||
"settings": {
|
||||
@ -452,7 +452,7 @@
|
||||
},
|
||||
{
|
||||
"tag": "vless-grpc",
|
||||
"listen": "127.0.0.1", // listen on localhost
|
||||
"listen": "::1", // listen on localhost
|
||||
"port": 3002,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
@ -475,7 +475,7 @@
|
||||
},
|
||||
{
|
||||
"tag": "vmess-grpc",
|
||||
"listen": "127.0.0.1", // listen on localhost
|
||||
"listen": "::1", // listen on localhost
|
||||
"port": 3003,
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
@ -496,7 +496,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1", //Only listen on localhost
|
||||
"listen": "::1", //Only listen on localhost
|
||||
"port": 3004,
|
||||
"protocol": "shadowsocks",
|
||||
"settings": {
|
||||
@ -599,7 +599,7 @@
|
||||
},
|
||||
{
|
||||
"tag": "shadowsocks-h2",
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 4003,
|
||||
"protocol": "shadowsocks",
|
||||
"settings": {
|
||||
@ -692,7 +692,7 @@
|
||||
"tag": "DNS-Internal",
|
||||
"protocol": "dns",
|
||||
"settings": {
|
||||
"address": "127.0.0.53",
|
||||
"address": "::1",
|
||||
"port": 53
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
// 请求在该入站中被解密
|
||||
{
|
||||
"port": 4431,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"tag": "tls-decrypt",
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
@ -40,7 +40,7 @@
|
||||
// 真正用到的入站
|
||||
{
|
||||
"port": 10801,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"tag": "socks-in",
|
||||
"protocol": "socks",
|
||||
"sniffing": {
|
||||
@ -59,7 +59,7 @@
|
||||
"tag": "redirect-out",
|
||||
"protocol": "freedom",
|
||||
"settings": {
|
||||
"redirect": "127.0.0.1:4431"
|
||||
"redirect": "[::1]:4431"
|
||||
}
|
||||
},
|
||||
// 明文请求在这里被重新加密为正常 HTTPS 请求
|
||||
|
@ -14,17 +14,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "2080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "2081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -14,17 +14,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "2080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "2081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -14,17 +14,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "2080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "2081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ http {
|
||||
#gzip on;
|
||||
|
||||
server {
|
||||
listen 127.0.0.1:80;
|
||||
listen [::1]:80;
|
||||
server_name yourserver_80.com;
|
||||
|
||||
charset utf-8;
|
||||
|
@ -60,7 +60,7 @@
|
||||
{
|
||||
"tag": "externalws",
|
||||
"port": 65511,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
@ -84,7 +84,7 @@
|
||||
{
|
||||
"tag": "interconn",
|
||||
"port": 65510,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
|
@ -14,17 +14,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "2080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "2081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -109,14 +109,14 @@
|
||||
"tag": "redirect-out-h11",
|
||||
"protocol": "freedom",
|
||||
"settings": {
|
||||
"redirect": "127.0.0.1:4431"
|
||||
"redirect": "[::1]:4431"
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag": "redirect-out-h211",
|
||||
"protocol": "freedom",
|
||||
"settings": {
|
||||
"redirect": "127.0.0.1:4432"
|
||||
"redirect": "[::1]:4432"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -16,17 +16,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -16,17 +16,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -28,7 +28,7 @@
|
||||
}
|
||||
],
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 10800,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 1080,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
@ -44,7 +44,7 @@ http {
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
set_real_ip_from 127.0.0.1;
|
||||
set_real_ip_from ::1;
|
||||
|
||||
|
||||
include /etc/nginx/default.d/*.conf;
|
||||
|
@ -6,7 +6,7 @@ xx.com {
|
||||
file_server
|
||||
tls CA.crt priv.key # 换成你的证书和私钥,绝对路径
|
||||
|
||||
reverse_proxy /path 127.0.0.1:2001 {
|
||||
reverse_proxy /path [::1]:2001 {
|
||||
transport http {
|
||||
versions h2c
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 2001,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
|
@ -6,7 +6,7 @@ xx.com {
|
||||
file_server
|
||||
tls CA.crt priv.key # 换成你的证书和私钥,绝对路径
|
||||
|
||||
reverse_proxy /path 127.0.0.1:2001 {
|
||||
reverse_proxy /path [::1]:2001 {
|
||||
transport http {
|
||||
tls
|
||||
tls_client_auth CA.crt priv.key # 换成你的证书和私钥,绝对路径
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 2001,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
|
@ -6,6 +6,6 @@ xx.com {
|
||||
file_server
|
||||
tls CA.crt priv.key # 换成你的证书和私钥,绝对路径
|
||||
|
||||
reverse_proxy /path h2c://127.0.0.1:2001 {
|
||||
reverse_proxy /path h2c://[::1]:2001 {
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 2001,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
|
@ -5,7 +5,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 10808,
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
@ -28,7 +28,7 @@
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "127.0.0.1",
|
||||
"address": "::1",
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
"port": 443,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"address": "127.0.0.1",
|
||||
"address": "::1",
|
||||
"port": 4431, // 指向内网中的 reality 端口,示例是这个端口,如果要自己修改了记得这里和下面的 reality 入站都要修改
|
||||
"network": "tcp"
|
||||
},
|
||||
@ -21,7 +21,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 4431, // 见上 如果和其他服务冲突了可以换
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 10800,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
@ -49,7 +49,7 @@ http {
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
set_real_ip_from 127.0.0.1;
|
||||
set_real_ip_from ::1;
|
||||
|
||||
# Load configuration files for the default server block.
|
||||
include /etc/nginx/default.d/*.conf;
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 10800,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 10800,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 10800,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
@ -44,7 +44,7 @@
|
||||
},
|
||||
{
|
||||
"port": 1234,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
|
@ -4,17 +4,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -36,11 +36,11 @@ http {
|
||||
#gzip on;
|
||||
|
||||
server {
|
||||
listen 127.0.0.1:8001 proxy_protocol;
|
||||
listen 127.0.0.1:8002 http2 proxy_protocol;
|
||||
listen [::1]:8001 proxy_protocol;
|
||||
listen [::1]:8002 http2 proxy_protocol;
|
||||
server_name yourserver.com;
|
||||
|
||||
set_real_ip_from 127.0.0.1;
|
||||
set_real_ip_from ::1;
|
||||
|
||||
charset utf-8;
|
||||
|
||||
|
@ -4,17 +4,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ http {
|
||||
#gzip on;
|
||||
|
||||
server {
|
||||
listen 127.0.0.1:8001;
|
||||
listen 127.0.0.1:8002 http2;
|
||||
listen [::1]:8001;
|
||||
listen [::1]:8002 http2;
|
||||
server_name yourserver.com;
|
||||
|
||||
charset utf-8;
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 10808,
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -25,7 +25,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1", // Fill in 0.0.0.0 to allow connections from LAN
|
||||
"listen": "::1", // Fill in 0.0.0.0 to allow connections from LAN
|
||||
"port": 10808, // local socks listening port
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
@ -40,7 +40,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1", // Fill in "0.0.0.0" to allow connections from LAN
|
||||
"listen": "::1", // Fill in "0.0.0.0" to allow connections from LAN
|
||||
"port": 10809, // Local http listening port
|
||||
"protocol": "http",
|
||||
"sniffing": {
|
||||
|
@ -34,9 +34,9 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
listen 127.0.0.1:8001 proxy_protocol;
|
||||
listen 127.0.0.1:8002 http2 proxy_protocol;
|
||||
set_real_ip_from 127.0.0.1;
|
||||
listen [::1]:8001 proxy_protocol;
|
||||
listen [::1]:8002 http2 proxy_protocol;
|
||||
set_real_ip_from ::1;
|
||||
|
||||
location / {
|
||||
sub_filter $proxy_host $host;
|
||||
|
@ -4,17 +4,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ http {
|
||||
#gzip on;
|
||||
|
||||
server {
|
||||
listen 127.0.0.1:8001;
|
||||
listen [::1]:8001;
|
||||
server_name yourserver_8001.com;
|
||||
|
||||
charset utf-8;
|
||||
|
@ -1,5 +1,5 @@
|
||||
localhost:443 {
|
||||
handle /split/* {
|
||||
reverse_proxy http://127.0.0.1:1234
|
||||
reverse_proxy http://[::1]:1234
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 10808,
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
|
@ -16,7 +16,7 @@ server {
|
||||
# access_log off;
|
||||
|
||||
location /split {
|
||||
proxy_pass http://127.0.0.1:1234;
|
||||
proxy_pass http://[::1]:1234;
|
||||
proxy_http_version 1.1;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 1234,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
|
@ -10,7 +10,7 @@
|
||||
]
|
||||
},
|
||||
"port": 10808,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
@ -16,7 +16,7 @@ server {
|
||||
if ($http_upgrade != "websocket") {
|
||||
return 404;
|
||||
}
|
||||
proxy_pass http://127.0.0.1:1234;
|
||||
proxy_pass http://[::1]:1234;
|
||||
proxy_redirect off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
@ -4,7 +4,7 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": 1234 ,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
|
@ -8,7 +8,7 @@
|
||||
{
|
||||
"tag": "socks",
|
||||
"port": 800,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
@ -24,7 +24,7 @@
|
||||
{
|
||||
"tag": "http",
|
||||
"port": 801,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "http",
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
@ -113,7 +113,7 @@
|
||||
"id": "5708766234462982042",
|
||||
"type": "field",
|
||||
"outboundTag": "direct",
|
||||
"ip": ["127.0.0.1", "192.168.1.1"],
|
||||
"ip": ["::1", "192.168.1.1"],
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 1080,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
@ -16,17 +16,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -16,17 +16,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -16,17 +16,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -16,17 +16,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -16,17 +16,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -16,17 +16,17 @@
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true,
|
||||
"ip": "127.0.0.1"
|
||||
"ip": "::1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"port": "1081",
|
||||
"protocol": "http"
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 1080,
|
||||
"listen": "127.0.0.1",
|
||||
"listen": "::1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
|
Loading…
x
Reference in New Issue
Block a user