Skip to content

Instantly share code, notes, and snippets.

@mackjoner
Created May 7, 2019 14:30
Show Gist options
  • Save mackjoner/2350a013878c38baa9d3dfaf0388b8a9 to your computer and use it in GitHub Desktop.
Save mackjoner/2350a013878c38baa9d3dfaf0388b8a9 to your computer and use it in GitHub Desktop.
My Surge.app config file
# My custom Surge.app configuration
# Proxy (most) traffic via Shadowsocks
[General]
loglevel = notify
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
dns-server = 208.67.222.222, 208.67.220.220
[Proxy]
// Shadowsocks using the external module.
// Should upgrade to an AEAD cipher when supported.
ProxySS = custom, 94.242.57.189, 443, aes-256-cfb, PASSWORD_GOES_HERE, https://s3.amazonaws.com/f.cl.ly/items/0S3L2T0m0v110x2I0L1w/SSEncrypt.module
[Rule]
// Block very intrusive spyware
DOMAIN-SUFFIX,crashlytics.com,REJECT
// Don't proxy Steam to avoid an hypothetical ban.
DOMAIN-SUFFIX,steampowered.com,DIRECT
DOMAIN-SUFFIX,steamstatic.com,DIRECT
DOMAIN-SUFFIX,steamcommunity.com,DIRECT
DOMAIN-SUFFIX,steamstore-a.akamaihd.net,DIRECT
DOMAIN-SUFFIX,steamcdn-a.akamaihd.net,DIRECT
DOMAIN-SUFFIX,steamcommunity-a.akamaihd.net,DIRECT
// Telegram
IP-CIDR,91.108.56.0/22,ProxySS,no-resolve
IP-CIDR,91.108.4.0/22,ProxySS,no-resolve
IP-CIDR,109.239.140.0/24,ProxySS,no-resolve
IP-CIDR,149.154.160.0/20,ProxySS,no-resolve
// LAN
IP-CIDR,192.168.0.0/16,DIRECT
IP-CIDR,10.0.0.0/8,DIRECT
IP-CIDR,172.16.0.0/12,DIRECT
IP-CIDR,127.0.0.0/8,DIRECT
FINAL,ProxySS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment