mirror of
				https://github.com/taixingyiji/openit.git
				synced 2025-10-31 07:32:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			256 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			Smarty
		
	
	
	
	
	
			
		
		
	
	
			256 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			Smarty
		
	
	
	
	
	
| {% if request.target == "clash" or request.target == "clashr" %}
 | ||
| 
 | ||
| port: {{ default(global.clash.http_port, "7890") }}
 | ||
| socks-port: {{ default(global.clash.socks_port, "7891") }}
 | ||
| allow-lan: {{ default(global.clash.allow_lan, "true") }}
 | ||
| mode: Rule
 | ||
| log-level: {{ default(global.clash.log_level, "info") }}
 | ||
| external-controller: '127.0.0.1:9090'
 | ||
| {% if default(request.clash.dns, "") == "1" %}
 | ||
| dns:
 | ||
|   enable: true
 | ||
|   listen: :1053
 | ||
| {% endif %}
 | ||
| dns:
 | ||
|   enable: true #是否启用dns false
 | ||
|   ipv6: false
 | ||
|   listen: 0.0.0.0:53
 | ||
|   enhanced-mode: redir-host # 模式:redir-host或fake-ip
 | ||
|   fake-ip-range: 198.18.0.1/16 
 | ||
|   fake-ip-filter: # fake ip 白名单列表,如果你不知道这个参数的作用,请勿修改
 | ||
|      - '*.lan'
 | ||
|      - localhost.ptlogin2.qq.com
 | ||
|   nameserver:
 | ||
|      - 223.5.5.5 #阿里DNS
 | ||
|      - 180.76.76.76 #百度DNS
 | ||
|      - 119.29.29.29 #腾讯DNS
 | ||
|      - 117.50.10.10 #ONE DNS纯净版 直接返回其真实的响应结果
 | ||
|      - 114.114.114.114 #114DNS
 | ||
|   fallback:
 | ||
|      - 8.8.8.8 #谷歌DNS
 | ||
|      - 1.1.1.1 #Cloudflare DNS
 | ||
|      - tls://dns.rubyfish.cn:853
 | ||
|      - tls://1.0.0.1:853
 | ||
|      - tls://dns.google:853
 | ||
|      - https://dns.rubyfish.cn/dns-query
 | ||
|      - https://cloudflare-dns.com/dns-query
 | ||
|      - https://dns.google/dns-query
 | ||
|   fallback-filter:
 | ||
|      geoip: true #默认
 | ||
|      ipcidr: #在这个网段内的 IP 地址会被考虑为被污染的 IP
 | ||
|        - 240.0.0.0/4
 | ||
| {% if local.clash.new_field_name == "true" %}
 | ||
| proxies: ~
 | ||
| proxy-groups: ~
 | ||
| rules: ~
 | ||
| {% else %}
 | ||
| Proxy: ~
 | ||
| Proxy Group: ~
 | ||
| Rule: ~
 | ||
| {% endif %}
 | ||
| cfw-bypass:
 | ||
|   - localhost
 | ||
|   - 127.*
 | ||
|   - 10.*
 | ||
|   - 172.16.*
 | ||
|   - 172.17.*
 | ||
|   - 172.18.*
 | ||
|   - 172.19.*
 | ||
|   - 172.20.*
 | ||
|   - 172.21.*
 | ||
|   - 172.22.*
 | ||
|   - 172.23.*
 | ||
|   - 172.24.*
 | ||
|   - 172.25.*
 | ||
|   - 172.26.*
 | ||
|   - 172.27.*
 | ||
|   - 172.28.*
 | ||
|   - 172.29.*
 | ||
|   - 172.30.*
 | ||
|   - 172.31.*
 | ||
|   - 192.168.*
 | ||
|   - <local>
 | ||
| 
 | ||
| {% endif %}
 | ||
| {% if request.target == "surge" %}
 | ||
| 
 | ||
| [General]
 | ||
| loglevel = notify
 | ||
| bypass-system = true
 | ||
| skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,localhost,*.local,e.crashlytics.com,captive.apple.com,::ffff:0:0:0:0/1,::ffff:128:0:0:0/1
 | ||
| #DNS设置或根据自己网络情况进行相应设置
 | ||
| bypass-tun = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12
 | ||
| dns-server = 119.29.29.29,223.5.5.5
 | ||
| 
 | ||
| [Script]
 | ||
| http-request https?:\/\/.*\.iqiyi\.com\/.*authcookie= script-path=https://raw.githubusercontent.com/NobyDa/Script/master/iQIYI-DailyBonus/iQIYI.js
 | ||
| 
 | ||
| {% endif %}
 | ||
| {% if request.target == "loon" %}
 | ||
| 
 | ||
| [General]
 | ||
| skip-proxy = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,e.crashlynatics.com
 | ||
| bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32
 | ||
| dns-server = system,119.29.29.29,223.5.5.5
 | ||
| allow-udp-proxy = false
 | ||
| host = 127.0.0.1
 | ||
| 
 | ||
| [Proxy]
 | ||
| 
 | ||
| [Remote Proxy]
 | ||
| 
 | ||
| [Proxy Group]
 | ||
| 
 | ||
| [Rule]
 | ||
| 
 | ||
| [Remote Rule]
 | ||
| 
 | ||
| [URL Rewrite]
 | ||
| enable = true
 | ||
| ^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302
 | ||
| 
 | ||
| [Remote Rewrite]
 | ||
| https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Rewrite/AutoRewrite_Example.list,auto
 | ||
| 
 | ||
| [MITM]
 | ||
| hostname = *.example.com,*.sample.com
 | ||
| enable = true
 | ||
| skip-server-cert-verify = true
 | ||
| #ca-p12 =
 | ||
| #ca-passphrase =
 | ||
| 
 | ||
| {% endif %}
 | ||
| {% if request.target == "quan" %}
 | ||
| 
 | ||
| [SERVER]
 | ||
| 
 | ||
| [SOURCE]
 | ||
| 
 | ||
| [BACKUP-SERVER]
 | ||
| 
 | ||
| [SUSPEND-SSID]
 | ||
| 
 | ||
| [POLICY]
 | ||
| 
 | ||
| [DNS]
 | ||
| 1.1.1.1
 | ||
| 
 | ||
| [REWRITE]
 | ||
| 
 | ||
| [URL-REJECTION]
 | ||
| 
 | ||
| [TCP]
 | ||
| 
 | ||
| [GLOBAL]
 | ||
| 
 | ||
| [HOST]
 | ||
| 
 | ||
| [STATE]
 | ||
| STATE,AUTO
 | ||
| 
 | ||
| [MITM]
 | ||
| 
 | ||
| {% endif %}
 | ||
| {% if request.target == "quanx" %}
 | ||
| 
 | ||
| [general]
 | ||
| excluded_routes=192.168.0.0/16, 172.16.0.0/12, 100.64.0.0/10, 10.0.0.0/8
 | ||
| geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/IP_API.js
 | ||
| network_check_url=http://www.baidu.com/
 | ||
| server_check_url=http://www.gstatic.com/generate_204
 | ||
| 
 | ||
| [dns]
 | ||
| server=119.29.29.29
 | ||
| server=223.5.5.5
 | ||
| server=1.0.0.1
 | ||
| server=8.8.8.8
 | ||
| 
 | ||
| [policy]
 | ||
| static=♻️ 自动选择, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Auto.png
 | ||
| static=🔰 节点选择, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Proxy.png
 | ||
| static=🌍 国外媒体, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/GlobalMedia.png
 | ||
| static=🌏 国内媒体, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/DomesticMedia.png
 | ||
| static=Ⓜ️ 微软服务, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Microsoft.png
 | ||
| static=📲 电报信息, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Telegram.png
 | ||
| static=🍎 苹果服务, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Apple.png
 | ||
| static=🎯 全球直连, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Direct.png
 | ||
| static=🛑 全球拦截, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Advertising.png
 | ||
| static=🐟 漏网之鱼, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Final.png
 | ||
| 
 | ||
| [server_remote]
 | ||
| 
 | ||
| [filter_remote]
 | ||
| 
 | ||
| [rewrite_remote]
 | ||
| 
 | ||
| [server_local]
 | ||
| 
 | ||
| [filter_local]
 | ||
| 
 | ||
| [rewrite_local]
 | ||
| 
 | ||
| [mitm]
 | ||
| 
 | ||
| {% endif %}
 | ||
| {% if request.target == "mellow" %}
 | ||
| 
 | ||
| [Endpoint]
 | ||
| DIRECT, builtin, freedom, domainStrategy=UseIP
 | ||
| REJECT, builtin, blackhole
 | ||
| Dns-Out, builtin, dns
 | ||
| 
 | ||
| [Routing]
 | ||
| domainStrategy = IPIfNonMatch
 | ||
| 
 | ||
| [Dns]
 | ||
| hijack = Dns-Out
 | ||
| clientIp = 114.114.114.114
 | ||
| 
 | ||
| [DnsServer]
 | ||
| localhost
 | ||
| 223.5.5.5
 | ||
| 8.8.8.8, 53, Remote
 | ||
| 8.8.4.4
 | ||
| 
 | ||
| [DnsRule]
 | ||
| DOMAIN-KEYWORD, geosite:geolocation-!cn, Remote
 | ||
| DOMAIN-SUFFIX, google.com, Remote
 | ||
| 
 | ||
| [DnsHost]
 | ||
| doubleclick.net = 127.0.0.1
 | ||
| 
 | ||
| [Log]
 | ||
| loglevel = warning
 | ||
| 
 | ||
| {% endif %}
 | ||
| {% if request.target == "surfboard" %}
 | ||
| 
 | ||
| [General]
 | ||
| loglevel = notify
 | ||
| interface = 127.0.0.1
 | ||
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local
 | ||
| ipv6 = false
 | ||
| dns-server = system, 223.5.5.5
 | ||
| exclude-simple-hostnames = true
 | ||
| enhanced-mode-by-rule = true
 | ||
| {% endif %}
 | ||
| {% if request.target == "sssub" %}
 | ||
| {
 | ||
|   "route": "bypass-lan-china",
 | ||
|   "remote_dns": "dns.google",
 | ||
|   "ipv6": false,
 | ||
|   "metered": false,
 | ||
|   "proxy_apps": {
 | ||
|     "enabled": false,
 | ||
|     "bypass": true,
 | ||
|     "android_list": [
 | ||
|       "com.eg.android.AlipayGphone",
 | ||
|       "com.wudaokou.hippo",
 | ||
|       "com.zhihu.android"
 | ||
|     ]
 | ||
|   },
 | ||
|   "udpdns": false
 | ||
| }
 | ||
| 
 | ||
| {% endif %}
 |