mirror of
https://github.com/EvgenyNerush/easy-xray.git
synced 2025-04-01 14:24:27 +03:00
direct client bittorrent and udp to freedom
This commit is contained in:
parent
fde01d427b
commit
eb57f3d082
2 changed files with 23 additions and 6 deletions
|
@ -154,23 +154,38 @@
|
||||||
],
|
],
|
||||||
"outboundTag": "api"
|
"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",
|
"type": "field",
|
||||||
"protocol": [ "bittorrent" ],
|
"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
|
// and to popular ports of torrent clients
|
||||||
{
|
{
|
||||||
"type": "field",
|
"type": "field",
|
||||||
"port": "6969,6881-6889",
|
"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",
|
"type": "field",
|
||||||
"sourcePort": "6881-6889",
|
"sourcePort": "6881-6889",
|
||||||
"outboundTag": "block"
|
"outboundTag": "direct"
|
||||||
},
|
},
|
||||||
// guide domestic sites traffic to `direct` outbound
|
// guide domestic sites traffic to `direct` outbound
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,19 +42,21 @@
|
||||||
],
|
],
|
||||||
"outboundTag": "api"
|
"outboundTag": "api"
|
||||||
},
|
},
|
||||||
|
// guide udp traffic to `block` outbound
|
||||||
{
|
{
|
||||||
"type": "field",
|
"type": "field",
|
||||||
"network": "udp",
|
"network": "udp",
|
||||||
"outboundTag": "block"
|
"outboundTag": "block"
|
||||||
},
|
},
|
||||||
|
// block localhost connections through xray
|
||||||
{
|
{
|
||||||
"type": "field",
|
"type": "field",
|
||||||
"ip": [
|
"ip": [
|
||||||
// localhost connections
|
|
||||||
"geoip:private"
|
"geoip:private"
|
||||||
],
|
],
|
||||||
"outboundTag": "block"
|
"outboundTag": "block"
|
||||||
},
|
},
|
||||||
|
// guide bittorent traffic to `block` outbound
|
||||||
{
|
{
|
||||||
"type": "field",
|
"type": "field",
|
||||||
"protocol": [ "bittorrent" ],
|
"protocol": [ "bittorrent" ],
|
||||||
|
|
Loading…
Add table
Reference in a new issue