From eb57f3d082f9e2362d0297a0c4215e5b96d5341b Mon Sep 17 00:00:00 2001 From: Evgeny Nerush Date: Sun, 28 Jan 2024 13:09:50 +0300 Subject: [PATCH] direct client bittorrent and udp to freedom --- template_config_client.jsonc | 25 ++++++++++++++++++++----- template_config_server.jsonc | 4 +++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/template_config_client.jsonc b/template_config_client.jsonc index 9ec742f..d1ae325 100644 --- a/template_config_client.jsonc +++ b/template_config_client.jsonc @@ -154,23 +154,38 @@ ], "outboundTag": "api" }, + // guide udp traffic to `direct` outbound + { + "type": "field", + "network": "udp", + "outboundTag": "direct" + }, + // block localhost connections through xray + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "block" + }, + // guide bittorent traffic to `direct` outbound { "type": "field", "protocol": [ "bittorrent" ], - "outboundTag": "block" + "outboundTag": "direct" }, - // block traffic to popular ports of torrent trackers + // traffic to popular ports of torrent trackers // and to popular ports of torrent clients { "type": "field", "port": "6969,6881-6889", - "outboundTag": "block" + "outboundTag": "direct" }, - // block traffic from popular ports of torrent clients + // traffic from popular ports of torrent clients { "type": "field", "sourcePort": "6881-6889", - "outboundTag": "block" + "outboundTag": "direct" }, // guide domestic sites traffic to `direct` outbound { diff --git a/template_config_server.jsonc b/template_config_server.jsonc index 68dfdb6..f8d10ec 100644 --- a/template_config_server.jsonc +++ b/template_config_server.jsonc @@ -42,19 +42,21 @@ ], "outboundTag": "api" }, + // guide udp traffic to `block` outbound { "type": "field", "network": "udp", "outboundTag": "block" }, + // block localhost connections through xray { "type": "field", "ip": [ - // localhost connections "geoip:private" ], "outboundTag": "block" }, + // guide bittorent traffic to `block` outbound { "type": "field", "protocol": [ "bittorrent" ],