From 824eac453b5084a49d1d0c64a09258d6d704c4ec Mon Sep 17 00:00:00 2001 From: Sergei Maklagin Date: Sun, 15 Jun 2025 22:23:42 +0300 Subject: [PATCH] Add new examples --- examples/mieru/client.json | 56 +++++++++++++++++++++ examples/sdns/client.json | 44 +++++++++++++++++ examples/unified_delay/client.json | 79 ++++++++++++++++++++++++++++++ 3 files changed, 179 insertions(+) create mode 100644 examples/mieru/client.json create mode 100644 examples/sdns/client.json create mode 100644 examples/unified_delay/client.json diff --git a/examples/mieru/client.json b/examples/mieru/client.json new file mode 100644 index 00000000..ca7b11c8 --- /dev/null +++ b/examples/mieru/client.json @@ -0,0 +1,56 @@ +{ + "log": { + "level": "error" + }, + "dns": { + "servers": [ + { + "address": "local", + "detour": "direct" + } + ] + }, + "inbounds": [ + { + "type": "mixed", + "tag": "mixed-in", + "listen_port": 7897 + } + ], + "outbounds": [ + { + "type": "direct", + "tag": "direct" + }, + { + "type": "mieru", + "tag": "mieru-out", + "server": "example.com", + "server_port": 27017, + "server_ports": "27017-27019", + "transport": "TCP", + "username": "username", + "password": "password", + "multiplexing": "MULTIPLEXING_LOW" + // Dial Fields + }, + { + "type": "dns", + "tag": "dns-out" + } + ], + "route": { + "rules": [ + { + "protocol": "dns", + "outbound": "dns-out" + }, + { + "port": 53, + "outbound": "dns-out" + } + ], + "final": "mieru-out", + "auto_detect_interface": true + } +} diff --git a/examples/sdns/client.json b/examples/sdns/client.json new file mode 100644 index 00000000..585e9f1b --- /dev/null +++ b/examples/sdns/client.json @@ -0,0 +1,44 @@ +{ + "log": { + "level": "error" + }, + "dns": { + "servers": [ + { + "address": "sdns://AQMAAAAAAAAAETk0LjE0MC4xNS4xNTo1NDQzINErR_JS3PLCu_iZEIbq95zkSV2LFsigxDIuUso_OQhzIjIuZG5zY3J5cHQuZGVmYXVsdC5uczEuYWRndWFyZC5jb20", + "detour": "direct" + } + ] + }, + "inbounds": [ + { + "type": "mixed", + "tag": "mixed-in", + "listen_port": 7897 + } + ], + "outbounds": [ + { + "type": "direct", + "tag": "direct" + }, + { + "type": "dns", + "tag": "dns-out" + } + ], + "route": { + "rules": [ + { + "protocol": "dns", + "outbound": "dns-out" + }, + { + "port": 53, + "outbound": "dns-out" + } + ], + "final": "direct", + "auto_detect_interface": true + } +} diff --git a/examples/unified_delay/client.json b/examples/unified_delay/client.json new file mode 100644 index 00000000..35752793 --- /dev/null +++ b/examples/unified_delay/client.json @@ -0,0 +1,79 @@ +{ + "log": { + "level": "error" + }, + "dns": { + "servers": [ + { + "address": "local", + "detour": "direct" + } + ] + }, + "endpoints": [ + { + "type": "warp", + "tag": "warp-out", + "listen_port": 10000, + "udp_timeout": "5m0s", + "amnezia": { + "jc": 120, + "jmin": 23, + "jmax": 911, + "h1": 1, + "h2": 2, + "h3": 3, + "h4": 4 + }, + "profile": { + "detour": "direct" + } + } + ], + "inbounds": [ + { + "type": "mixed", + "tag": "mixed-in", + "listen_port": 7897 + } + ], + "outbounds": [ + { + "type": "direct", + "tag": "direct" + }, + { + "type": "selector", + "tag": "select-out", + "outbounds": [ + "direct", + "warp-out" + ], + "default": "direct", + "interrupt_exist_connections": true + }, + { + "type": "dns", + "tag": "dns-out" + } + ], + "route": { + "rules": [ + { + "protocol": "dns", + "outbound": "dns-out" + }, + { + "port": 53, + "outbound": "dns-out" + } + ], + "final": "direct", + "auto_detect_interface": true + }, + "experimental": { + "unified_delay": { + "enabled": true + } + } +} \ No newline at end of file