Skip to content

Instantly share code, notes, and snippets.

@soffchen
Last active March 4, 2024 05:23
Show Gist options
  • Save soffchen/47a44825626b1cbd0948 to your computer and use it in GitHub Desktop.
Save soffchen/47a44825626b1cbd0948 to your computer and use it in GitHub Desktop.
surge.conf
[General]
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, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
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, 114.114.114.114
loglevel = notify
[Proxy]
BJ-All = custom
BJ-HK-Azure = custom
BJ-US-Azure = custom
BJ-JP-Azure = custom
BJ-SG-Azure = custom
JS-All = custom
JS-HK-Dedi = custom
JS-JP-Vultr = custom
JS-SG-Lease = custom
[Proxy Group]
Direct = select, DIRECT, BJ-All, JS-All
Default = select, BJ-HK-Azure, BJ-US-Azure, JS-HK-Dedi, JS-JP-Vultr, JS-SG-Lease
US = select, BJ-US-Azure
JP = select, BJ-JP-Azure, JS-JP-Vultr
Netflix = select, JS-HK-Dedi, JS-JP-Vultr, JS-SG-Lease
[Rule]
// iOS
DOMAIN-SUFFIX,lcdn-registration.apple.com,DIRECT
DOMAIN-SUFFIX,ls.apple.com,DIRECT
// AD Block
DOMAIN-KEYWORD,adsmogo,REJECT
DOMAIN-SUFFIX,acs86.com,REJECT
DOMAIN-SUFFIX,adcome.cn,REJECT
DOMAIN-SUFFIX,adinfuse.com,REJECT
DOMAIN-SUFFIX,admaster.com.cn,REJECT
DOMAIN-SUFFIX,admob.com,REJECT
DOMAIN-SUFFIX,adsage.cn,REJECT
DOMAIN-SUFFIX,adsage.com,REJECT
DOMAIN-SUFFIX,adsmogo.org,REJECT
DOMAIN-SUFFIX,ads.mobclix.com,REJECT
DOMAIN-SUFFIX,adview.cn,REJECT
DOMAIN-SUFFIX,adwhirl.com,REJECT
DOMAIN-SUFFIX,adwo.com,REJECT
DOMAIN-SUFFIX,appads.com,REJECT
DOMAIN-SUFFIX,domob.cn,REJECT
DOMAIN-SUFFIX,domob.com.cn,REJECT
DOMAIN-SUFFIX,domob.org,REJECT
DOMAIN-SUFFIX,doubleclick.net,REJECT
DOMAIN-SUFFIX,duomeng.cn,REJECT
DOMAIN-SUFFIX,duomeng.net,REJECT
DOMAIN-SUFFIX,duomeng.org,REJECT
DOMAIN-SUFFIX,googeadsserving.cn,REJECT
DOMAIN-SUFFIX,guomob.com,REJECT
DOMAIN-SUFFIX,immob.cn,REJECT
DOMAIN-SUFFIX,inmobi.com,REJECT
DOMAIN-SUFFIX,mobads.baidu.com,REJECT
DOMAIN-SUFFIX,mobads-logs.baidu.com,REJECT
DOMAIN-SUFFIX,reachmax.cn,REJECT
DOMAIN-SUFFIX,smartadserver.com,REJECT
DOMAIN-SUFFIX,tapjoyads.com,REJECT
DOMAIN-SUFFIX,umeng.co,REJECT
DOMAIN-SUFFIX,umeng.com,REJECT
DOMAIN-SUFFIX,umtrack.com,REJECT
DOMAIN-SUFFIX,uyunad.com,REJECT
DOMAIN-SUFFIX,xiaozhen.com,REJECT
DOMAIN-SUFFIX,youmi.net,REJECT
DOMAIN,adse.ximalaya.com,REJECT
// All .cn sites
DOMAIN-SUFFIX,cn,Direct
// Top cn sites
DOMAIN-KEYWORD,360buy,Direct
DOMAIN-KEYWORD,alipay,Direct
DOMAIN-KEYWORD,baidu,Direct
DOMAIN-KEYWORD,taobao,Direct
DOMAIN-SUFFIX,126.net,Direct
DOMAIN-SUFFIX,163.com,Direct
DOMAIN-SUFFIX,alicdn.com,Direct
DOMAIN-SUFFIX,amap.com,Direct
DOMAIN-SUFFIX,bdimg.com,Direct
DOMAIN-SUFFIX,bdstatic.com,Direct
DOMAIN-SUFFIX,cnbeta.com,Direct
DOMAIN-SUFFIX,cnzz.com,Direct
DOMAIN-SUFFIX,douban.com,Direct
DOMAIN-SUFFIX,gtimg.com,Direct
DOMAIN-SUFFIX,hao123.com,Direct
DOMAIN-SUFFIX,haosou.com,Direct
DOMAIN-SUFFIX,ifeng.com,Direct
DOMAIN-SUFFIX,iqiyi.com,Direct
DOMAIN-SUFFIX,jd.com,Direct
DOMAIN-SUFFIX,netease.com,Direct
DOMAIN-SUFFIX,qhimg.com,Direct
DOMAIN-SUFFIX,qq.com,Direct
DOMAIN-SUFFIX,sogou.com,Direct
DOMAIN-SUFFIX,sohu.com,Direct
DOMAIN-SUFFIX,soso.com,Direct
DOMAIN-SUFFIX,suning.com,Direct
DOMAIN-SUFFIX,tmall.com,Direct
DOMAIN-SUFFIX,tudou.com,Direct
DOMAIN-SUFFIX,weibo.com,Direct
DOMAIN-SUFFIX,youku.com,Direct
DOMAIN-SUFFIX,xunlei.com,Direct
DOMAIN-SUFFIX,zhihu.com,Direct
// Top blocked sites with tcp
DOMAIN-KEYWORD,facebook,Default,force-remote-dns
DOMAIN-KEYWORD,gmail,Default,force-remote-dns
DOMAIN-KEYWORD,google,Default,force-remote-dns
DOMAIN-KEYWORD,instagram,Default,force-remote-dns
DOMAIN-KEYWORD,twitter,Default,force-remote-dns
DOMAIN-KEYWORD,youtube,Default,force-remote-dns
DOMAIN-SUFFIX,appspot.com,Default,force-remote-dns
DOMAIN-SUFFIX,t.co,Default,force-remote-dns
DOMAIN-SUFFIX,twimg.com,Default,force-remote-dns
// Custom
DOMAIN-SUFFIX,itsliveradio.apple.com,US,force-remote-dns
DOMAIN-SUFFIX,cdn-apple.com,Default
DOMAIN-SUFFIX,dmm.co.jp,JP
DOMAIN-SUFFIX,icloud.com,Default
DOMAIN-SUFFIX,me.com,Default
DOMAIN,aod.itunes.apple.com,Direct
DOMAIN,osxapps.itunes.apple.com,Direct
DOMAIN,streamingaudio.itunes.apple.com,Direct
// Top blocked sites
DOMAIN-KEYWORD,blogspot,Default
DOMAIN-SUFFIX,apple.com,Default
DOMAIN-SUFFIX,amazonaws.com,Default
DOMAIN-SUFFIX,android.com,Default
DOMAIN-SUFFIX,angularjs.org,Default
DOMAIN-SUFFIX,akamaihd.net,Default
DOMAIN-SUFFIX,amazon.com,Default
DOMAIN-SUFFIX,bit.ly,Default
DOMAIN-SUFFIX,bitbucket.org,Default
DOMAIN-SUFFIX,blog.com,Default
DOMAIN-SUFFIX,blogcdn.com,Default
DOMAIN-SUFFIX,blogger.com,Default
DOMAIN-SUFFIX,blogsmithmedia.com,Default
DOMAIN-SUFFIX,box.net,Default
DOMAIN-SUFFIX,bloomberg.com,Default
DOMAIN-SUFFIX,chromium.org,Default
DOMAIN-SUFFIX,cl.ly,Default
DOMAIN-SUFFIX,cloudfront.net,Default
DOMAIN-SUFFIX,cloudflare.com,Default
DOMAIN-SUFFIX,cocoapods.org,Default
DOMAIN-SUFFIX,crashlytics.com,Default
DOMAIN-SUFFIX,dribbble.com,Default
DOMAIN-SUFFIX,dropbox.com,Default
DOMAIN-SUFFIX,dropboxstatic.com,Default
DOMAIN-SUFFIX,dropboxusercontent.com,Default
DOMAIN-SUFFIX,docker.com,Default
DOMAIN-SUFFIX,duckduckgo.com,Default
DOMAIN-SUFFIX,digicert.com,Default
DOMAIN-SUFFIX,dnsimple.com,Default
DOMAIN-SUFFIX,edgecastcdn.net,Default
DOMAIN-SUFFIX,engadget.com,Default
DOMAIN-SUFFIX,eurekavpt.com,Default
DOMAIN-SUFFIX,fb.me,Default
DOMAIN-SUFFIX,fbcdn.net,Default
DOMAIN-SUFFIX,fc2.com,Default
DOMAIN-SUFFIX,feedburner.com,Default
DOMAIN-SUFFIX,fabric.io,Default
DOMAIN-SUFFIX,flickr.com,Default
DOMAIN-SUFFIX,fastly.net,Default
DOMAIN-SUFFIX,ggpht.com,Default
DOMAIN-SUFFIX,github.com,Default
DOMAIN-SUFFIX,github.io,Default
DOMAIN-SUFFIX,githubusercontent.com,Default
DOMAIN-SUFFIX,golang.org,Default
DOMAIN-SUFFIX,goo.gl,Default
DOMAIN-SUFFIX,gstatic.com,Default
DOMAIN-SUFFIX,godaddy.com,Default
DOMAIN-SUFFIX,gravatar.com,Default
DOMAIN-SUFFIX,imageshack.us,Default
DOMAIN-SUFFIX,imgur.com,Default
DOMAIN-SUFFIX,jshint.com,Default
DOMAIN-SUFFIX,ift.tt,Default
DOMAIN-SUFFIX,itunes.com,Default
DOMAIN-SUFFIX,j.mp,Default
DOMAIN-SUFFIX,kat.cr,Default
DOMAIN-SUFFIX,linode.com,Default
DOMAIN-SUFFIX,linkedin.com,Default
DOMAIN-SUFFIX,licdn.com,Default
DOMAIN-SUFFIX,lithium.com,Default
DOMAIN-SUFFIX,megaupload.com,Default
DOMAIN-SUFFIX,mobile01.com,Default
DOMAIN-SUFFIX,modmyi.com,Default
DOMAIN-SUFFIX,mzstatic.com,Default
DOMAIN-SUFFIX,nytimes.com,Default
DOMAIN-SUFFIX,name.com,Default
DOMAIN-SUFFIX,openvpn.net,Default
DOMAIN-SUFFIX,openwrt.org,Default
DOMAIN-SUFFIX,ow.ly,Default
DOMAIN-SUFFIX,pinboard.in,Default
DOMAIN-SUFFIX,ssl-images-amazon.com,Default
DOMAIN-SUFFIX,sstatic.net,Default
DOMAIN-SUFFIX,stackoverflow.com,Default
DOMAIN-SUFFIX,staticflickr.com,Default
DOMAIN-SUFFIX,squarespace.com,Default
DOMAIN-SUFFIX,symcd.com,Default
DOMAIN-SUFFIX,symcb.com,Default
DOMAIN-SUFFIX,symauth.com,Default
DOMAIN-SUFFIX,ubnt.com,Default
DOMAIN-SUFFIX,thepiratebay.org,Default
DOMAIN-SUFFIX,tumblr.com,Default
DOMAIN-SUFFIX,twitch.tv,Default
DOMAIN-SUFFIX,wikipedia.com,Default
DOMAIN-SUFFIX,wikipedia.org,Default
DOMAIN-SUFFIX,wikimedia.org,Default
DOMAIN-SUFFIX,wordpress.com,Default
DOMAIN-SUFFIX,wsj.com,Default
DOMAIN-SUFFIX,wsj.net,Default
DOMAIN-SUFFIX,wp.com,Default
DOMAIN-SUFFIX,vimeo.com,Default
DOMAIN-SUFFIX,youtu.be,Default
DOMAIN-SUFFIX,ytimg.com,Default
DOMAIN-SUFFIX,netflix.com,Netflix
DOMAIN-SUFFIX,netflix.net,Netflix
DOMAIN-SUFFIX,nflxext.com,Netflix
DOMAIN-SUFFIX,nflximg.com,Netflix
DOMAIN-SUFFIX,nflximg.net,Netflix
DOMAIN-SUFFIX,nflxvideo.net,Netflix
// Telegram
IP-CIDR,91.108.4.0/22,Default,no-resolve
IP-CIDR,91.108.56.0/22,Default,no-resolve
IP-CIDR,109.239.140.0/24,Default,no-resolve
IP-CIDR,149.154.160.0/20,Default,no-resolve
// LAN
IP-CIDR,10.0.0.0/8,DIRECT
IP-CIDR,127.0.0.0/8,DIRECT
IP-CIDR,172.16.0.0/12,DIRECT
IP-CIDR,192.168.0.0/16,DIRECT
GEOIP,CN,Direct
FINAL,Default
@Michae1G
Copy link

APPLE 服务器现在不是在国内? itunes 需要Proxy么?有什么特别的考虑?

@catPill
Copy link

catPill commented May 15, 2016

DOMAIN-SUFFIX,apple.com,Default
这句是想飞啊……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment