surge-client.conf.j2 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [General]
  2. skip-proxy = 127.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 162.14.0.0/16, 211.99.96.0/19, 162.159.192.0/24, 162.159.193.0/24, 162.159.195.0/24, fc00::/7, fe80::/10, localhost, *.local, captive.apple.com, passenger.t3go.cn, *.ccb.com, wxh.wo.cn, *.abcchina.com, *.abcchina.com.cn
  3. exclude-simple-hostnames = true
  4. internet-test-url = http://connectivitycheck.platform.hicloud.com/generate_204
  5. proxy-test-url = http://www.apple.com/
  6. proxy-test-udp = www.apple.com@64.6.64.6
  7. test-timeout = 2
  8. dns-server = 223.5.5.5, 114.114.114.114
  9. hijack-dns = 8.8.8.8:53, 8.8.4.4:53
  10. wifi-assist = true
  11. vif-mode = v3
  12. ipv6 = false
  13. ipv6-vif = off
  14. loglevel = notify
  15. show-error-page-for-reject = true
  16. read-etc-hosts = true
  17. udp-policy-not-supported-behaviour = REJECT
  18. [Proxy]
  19. Relay = ss, {{ hostvars[groups['relay'][0]]['relay_domain'] }}, {{ hostvars[groups['relay'][0]]['ss_port'] }}, encrypt-method={{ hostvars[groups['relay'][0]]['ss_cipher'] }}, password={{ hostvars[groups['relay'][0]]['ss_password'] }}
  20. Landing = trojan, {{ trojan_domain }}, {{ trojan_port }}, password={{ trojan_password }}, underlying-proxy=Relay
  21. [Proxy Group]
  22. Proxy = select, Relay
  23. Native = select, Landing
  24. [Rule]
  25. # Block: SougouInput
  26. RULE-SET,https://ruleset.skk.moe/List/non_ip/sogouinput.conf,REJECT-DROP
  27. # Block: AD
  28. DOMAIN-SET,https://ruleset.skk.moe/List/domainset/reject.conf,REJECT
  29. RULE-SET,https://ruleset.skk.moe/List/non_ip/reject.conf,REJECT,extended-matching
  30. RULE-SET,https://ruleset.skk.moe/List/ip/reject.conf,REJECT-DROP
  31. # Block: Append
  32. RULE-SET,https://ruleset.skk.moe/List/non_ip/reject-no-drop.conf,REJECT-NO-DROP,extended-matching
  33. RULE-SET,https://ruleset.skk.moe/List/non_ip/reject-drop.conf,REJECT-DROP,extended-matching
  34. # Service: Streaming
  35. RULE-SET,https://ruleset.skk.moe/List/non_ip/stream.conf,Native,extended-matching
  36. RULE-SET,https://ruleset.skk.moe/List/ip/stream.conf,Native
  37. # Service: Telegram
  38. RULE-SET,https://ruleset.skk.moe/List/non_ip/telegram.conf,Native,extended-matching
  39. RULE-SET,https://ruleset.skk.moe/List/ip/telegram.conf,Native
  40. PROCESS-NAME,Telegram,REJECT-DROP
  41. # Service: Apple & Microsoft Local CDN
  42. RULE-SET,https://ruleset.skk.moe/List/non_ip/apple_cdn.conf,DIRECT
  43. RULE-SET,https://ruleset.skk.moe/List/non_ip/microsoft_cdn.conf,DIRECT
  44. # Service: Download
  45. DOMAIN-SET,https://ruleset.skk.moe/List/domainset/download.conf,DIRECT,extended-matching
  46. RULE-SET,https://ruleset.skk.moe/List/non_ip/download.conf,DIRECT,extended-matching
  47. # Service: Apple CN
  48. RULE-SET,https://ruleset.skk.moe/List/non_ip/apple_cn.conf,DIRECT
  49. # Service: Apple
  50. RULE-SET,https://ruleset.skk.moe/List/non_ip/apple_services.conf,Proxy,extended-matching
  51. RULE-SET,https://ruleset.skk.moe/List/non_ip/microsoft.conf,Proxy,extended-matching
  52. DOMAIN-SET,https://ruleset.skk.moe/List/domainset/icloud_private_relay.conf,Proxy
  53. # Service: AI
  54. RULE-SET,https://ruleset.skk.moe/List/non_ip/ai.conf,Native,extended-matching
  55. # Service: Global
  56. RULE-SET,https://ruleset.skk.moe/List/non_ip/global.conf,Proxy,extended-matching
  57. # Service: Netease Music
  58. RULE-SET,https://ruleset.skk.moe/List/non_ip/neteasemusic.conf,DIRECT,extended-matching
  59. # Location: CN
  60. RULE-SET,https://ruleset.skk.moe/List/non_ip/domestic.conf,DIRECT,extended-matching
  61. RULE-SET,https://ruleset.skk.moe/List/ip/domestic.conf,DIRECT
  62. RULE-SET,https://ruleset.skk.moe/List/ip/china_ip.conf,DIRECT
  63. # LAN
  64. RULE-SET,https://ruleset.skk.moe/List/non_ip/lan.conf,DIRECT
  65. RULE-SET,https://ruleset.skk.moe/List/ip/lan.conf,DIRECT
  66. # Default
  67. RULE-SET,LAN,DIRECT
  68. GEOIP,CN,DIRECT
  69. FINAL,Proxy,dns-failed