Created
November 3, 2023 07:16
-
-
Save manesec/e940b5297d9f66ae155f1ade473d02ea to your computer and use it in GitHub Desktop.
解決 HTB THM 靶場連接超時的 singbox 配置文件,使用singbox劫持openvpn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"level": "info", | |
"timestamp": true | |
}, | |
"dns": { | |
"servers": [ | |
{ | |
"tag": "dns_proxy", | |
"address": "tls://dns.google", | |
"address_resolver": "dns_direct", | |
"strategy": "ipv4_only", | |
"detour": "proxy" | |
}, | |
{ | |
"tag": "dns_direct", | |
"address": "https://223.5.5.5/dns-query", | |
"strategy": "ipv4_only", | |
"detour": "direct" | |
}, | |
{ | |
"tag": "dns_block", | |
"address": "rcode://success" | |
} | |
], | |
"rules": [ | |
{ | |
"geosite": [ | |
"category-ads-all" | |
], | |
"server": "dns_block", | |
"disable_cache": true | |
}, | |
{ | |
"geosite": [ | |
"geolocation-!cn" | |
], | |
"server": "dns_proxy" | |
}, | |
{ | |
"geosite": [ | |
"cn", | |
"private" | |
], | |
"server": "dns_direct" | |
}, | |
{ | |
"outbound": [ | |
"any" | |
], | |
"server": "dns_direct" | |
} | |
] | |
}, | |
"route": { | |
"geoip": { | |
"download_url": "https://github.com/soffchen/sing-geoip/releases/latest/download/geoip.db" | |
}, | |
"geosite": { | |
"download_url": "https://github.com/soffchen/sing-geosite/releases/latest/download/geosite.db" | |
}, | |
"rules": [ | |
{ | |
"protocol": "dns", | |
"outbound": "dns-out" | |
}, | |
{ | |
"process_name":[ | |
"openvpn" | |
], | |
"outbound": "proxy" | |
}, | |
{ | |
"geosite": [ | |
"category-ads-all" | |
], | |
"outbound": "block" | |
}, | |
{ | |
"geosite": [ | |
"geolocation-!cn" | |
], | |
"outbound": "proxy" | |
}, | |
{ | |
"geosite": [ | |
"cn", | |
"private" | |
], | |
"outbound": "direct" | |
}, | |
{ | |
"geoip": [ | |
"cn", | |
"private" | |
], | |
"outbound": "direct" | |
} | |
], | |
"auto_detect_interface": true | |
}, | |
"inbounds": [ | |
{ | |
"type": "tun", | |
"tag": "tun-in", | |
"inet4_address": "172.19.0.1/30", | |
"inet6_address": "fdfe:dcba:9876::1/126", | |
"auto_route": true, | |
"strict_route": true, | |
"stack": "system", | |
"sniff": true, | |
"sniff_override_destination": false | |
} | |
], | |
"outbounds": [ | |
{ | |
"type": "direct", | |
"tag": "direct" | |
}, | |
{ | |
"type": "block", | |
"tag": "block" | |
}, | |
{ | |
"type": "dns", | |
"tag": "dns-out" | |
}, | |
{ | |
"tag": "proxy", | |
"type": "vmess", | |
"server": "<server_addr>", | |
"server_port": <server_port>, | |
"uuid": "<uuid>", | |
"security": "aes-128-gcm" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment