Created
November 3, 2015 23:43
-
-
Save luckykong/85c2ff42b32e408ad60c to your computer and use it in GitHub Desktop.
Surge是推特网友开发的软件,支持ios9以上,基本可以替代原来的APN代理,一定程度替代AnyConnect,国内外分流体验做得比较好。支持SSL和SS等协议。
This file contains 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
# NOTE: this config requires Surge.app build 290 or newer version. | |
# Add below line to merge a basic configuration file | |
#!PROXY-OVERRIDE:main.conf | |
# Surge will support updating conf sometime in the future | |
#!UPDATE-URL:https://gist.githubusercontent.com/iyee/2e27c124af2f7a4f0d5a/raw | |
[General] | |
# 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 | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.0.0.0/8, localhost, *.local, e.crashlytics.com | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.0.0.0/8, 0.0.0.0/8, 1.0.0.0/9, 1.160.0.0/11, 1.192.0.0/11, 10.0.0.0/8, 14.0.0.0/11, 14.96.0.0/11, 14.128.0.0/11, 14.192.0.0/11, 27.0.0.0/10, 27.96.0.0/11, 27.128.0.0/9, 36.0.0.0/10, 36.96.0.0/11, 36.128.0.0/9, 39.0.0.0/11, 39.64.0.0/10, 39.128.0.0/10, 42.0.0.0/8, 43.224.0.0/11, 45.64.0.0/10, 47.64.0.0/10, 49.0.0.0/9, 49.128.0.0/11, 49.192.0.0/10, 54.192.0.0/11, 58.0.0.0/9, 58.128.0.0/11, 58.192.0.0/10, 59.32.0.0/11, 59.64.0.0/10, 59.128.0.0/9, 60.0.0.0/10, 60.160.0.0/11, 60.192.0.0/10, 61.0.0.0/10, 61.64.0.0/11, 61.128.0.0/10, 61.224.0.0/11, 100.64.0.0/10, 101.0.0.0/9, 101.128.0.0/11, 101.192.0.0/10, 103.0.0.0/10, 103.192.0.0/10, 106.0.0.0/9, 106.224.0.0/11, 110.0.0.0/7, 112.0.0.0/9, 112.128.0.0/11, 112.192.0.0/10, 113.0.0.0/9, 113.128.0.0/11, 113.192.0.0/10, 114.0.0.0/9, 114.128.0.0/11, 114.192.0.0/10, 115.0.0.0/8, 116.0.0.0/8, 117.0.0.0/9, 117.128.0.0/10, 118.0.0.0/11, 118.64.0.0/10, 118.128.0.0/9, 119.0.0.0/9, 119.128.0.0/10, 119.224.0.0/11, 120.0.0.0/10, 120.64.0.0/11, 120.128.0.0/11, 120.192.0.0/10, 121.0.0.0/9, 121.192.0.0/10, 122.0.0.0/7, 124.0.0.0/8, 125.0.0.0/9, 125.160.0.0/11, 125.192.0.0/10, 127.0.0.0/8, 139.0.0.0/11, 139.128.0.0/9, 140.64.0.0/11, 140.128.0.0/11, 140.192.0.0/10, 144.0.0.0/10, 144.96.0.0/11, 144.224.0.0/11, 150.0.0.0/11, 150.96.0.0/11, 150.128.0.0/11, 150.192.0.0/10, 152.96.0.0/11, 153.0.0.0/10, 153.96.0.0/11, 157.0.0.0/10, 157.96.0.0/11, 157.128.0.0/11, 157.224.0.0/11, 159.224.0.0/11, 161.192.0.0/11, 162.96.0.0/11, 163.0.0.0/10, 163.96.0.0/11, 163.128.0.0/10, 163.192.0.0/11, 166.96.0.0/11, 167.128.0.0/10, 167.192.0.0/11, 168.160.0.0/11, 169.254.0.0/16, 171.0.0.0/9, 171.192.0.0/11, 172.16.0.0/12, 175.0.0.0/9, 175.128.0.0/10, 180.64.0.0/10, 180.128.0.0/9, 182.0.0.0/8, 183.0.0.0/10, 183.64.0.0/11, 183.128.0.0/9, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.96.0.0/11, 192.160.0.0/11, 198.18.0.0/15, 198.51.100.0/24, 202.0.0.0/9, 202.128.0.0/10, 202.192.0.0/11, 203.0.0.0/9, 203.128.0.0/10, 203.192.0.0/11, 210.0.0.0/10, 210.64.0.0/11, 210.160.0.0/11, 210.192.0.0/11, 211.64.0.0/10, 211.128.0.0/10, 218.0.0.0/9, 218.160.0.0/11, 218.192.0.0/10, 219.64.0.0/11, 219.128.0.0/11, 219.192.0.0/10, 220.96.0.0/11, 220.128.0.0/9, 221.0.0.0/11, 221.96.0.0/11, 221.128.0.0/9, 222.0.0.0/8, 223.0.0.0/11, 223.64.0.0/10, 223.128.0.0/9 | |
dns-server = 119.29.29.29,223.5.5.5,114.114.114.114 | |
# warning, notify, info, verbose | |
loglevel = notify | |
[Proxy] | |
# http, https, socks5, custom | |
# 同名 Proxy,Surge 只保留最后一个 | |
# ShadowSocks配置格式 Proxy = custom, 1.2.3.4, 443, rc4-md5, password, http://foo.bar/SSEncrypt.module | |
Proxy = https,服务器地址,端口,帐号,密码,cipher=TLS_RSA_WITH_AES_128_GCM_SHA256 | |
null = http,null,1234 | |
[Rule] | |
# Block privacy trackers | |
DOMAIN,bam.nr-data.net,REJECT | |
DOMAIN,collector.githubapp.com,REJECT | |
DOMAIN,counter.kingsoft.com,REJECT | |
DOMAIN,js-agent.newrelic.com,REJECT | |
DOMAIN,pixel.wp.com,REJECT | |
DOMAIN,stat.m.jd.com,REJECT | |
DOMAIN-KEYWORD,analytics,REJECT | |
DOMAIN-KEYWORD,syndication,REJECT | |
DOMAIN-KEYWORD,cnzz,REJECT | |
DOMAIN-KEYWORD,trace,REJECT | |
DOMAIN-KEYWORD,track,REJECT | |
DOMAIN-KEYWORD,traffic,REJECT | |
DOMAIN-KEYWORD,usage,REJECT | |
DOMAIN-SUFFIX,51.la,REJECT | |
DOMAIN-SUFFIX,adjust.com,REJECT | |
DOMAIN-SUFFIX,cmcore.com,REJECT | |
DOMAIN-SUFFIX,coremetrics.com,REJECT | |
DOMAIN-SUFFIX,flurry.com,REJECT | |
DOMAIN-SUFFIX,irs01.com,REJECT | |
DOMAIN-SUFFIX,madmini.com,REJECT | |
DOMAIN-SUFFIX,mixpanel.com,REJECT | |
DOMAIN-SUFFIX,mmstat.com,REJECT | |
DOMAIN-SUFFIX,wrating.com,REJECT | |
# Block Ads servers | |
DOMAIN,ark.letv.com,REJECT | |
DOMAIN,asimgs.pplive.cn,REJECT | |
DOMAIN-KEYWORD,openx,REJECT | |
DOMAIN-SUFFIX,acs86.com,REJECT | |
DOMAIN-SUFFIX,adchina.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,adnxs.com,REJECT | |
DOMAIN-SUFFIX,ads.yahoo.com,REJECT | |
DOMAIN-SUFFIX,adsage.cn,REJECT | |
DOMAIN-SUFFIX,adsage.com,REJECT | |
DOMAIN-SUFFIX,adsmogo.org,REJECT | |
DOMAIN-SUFFIX,aduu.cn,REJECT | |
DOMAIN-SUFFIX,advertising.com,REJECT | |
DOMAIN-SUFFIX,adview.cn,REJECT | |
DOMAIN-SUFFIX,adwhirl.com,REJECT | |
DOMAIN-SUFFIX,adwo.com,REJECT | |
DOMAIN-SUFFIX,adxmi.com,REJECT | |
DOMAIN-SUFFIX,adzerk.net,REJECT | |
DOMAIN-SUFFIX,allyes.com,REJECT | |
DOMAIN-SUFFIX,anquan.org,REJECT | |
DOMAIN-SUFFIX,appads.com,REJECT | |
DOMAIN-SUFFIX,applifier.com,REJECT | |
DOMAIN-SUFFIX,applovin.com,REJECT | |
DOMAIN-SUFFIX,appsflyer.com,REJECT | |
DOMAIN-SUFFIX,baifendian.com,REJECT | |
DOMAIN-SUFFIX,biddingx.com,REJECT | |
DOMAIN-SUFFIX,chartboost.com,REJECT | |
DOMAIN-SUFFIX,domob.cn,REJECT | |
DOMAIN-SUFFIX,domob.com.cn,REJECT | |
DOMAIN-SUFFIX,domob.org,REJECT | |
DOMAIN-SUFFIX,duomeng.cn,REJECT | |
DOMAIN-SUFFIX,duomeng.net,REJECT | |
DOMAIN-SUFFIX,duomeng.org,REJECT | |
DOMAIN-SUFFIX,guohead.com,REJECT | |
DOMAIN-SUFFIX,guomob.com,REJECT | |
DOMAIN-SUFFIX,immob.cn,REJECT | |
DOMAIN-SUFFIX,inmobi.com,REJECT | |
DOMAIN-SUFFIX,intely.cn,REJECT | |
DOMAIN-SUFFIX,ipinyou.com,REJECT | |
DOMAIN-SUFFIX,kejet.net,REJECT | |
DOMAIN-SUFFIX,localytics.com,REJECT | |
DOMAIN-SUFFIX,miaozhen.com,REJECT | |
DOMAIN-SUFFIX,mob.com,REJECT | |
DOMAIN-SUFFIX,mobclix.com,REJECT | |
DOMAIN-SUFFIX,optaim.com,REJECT | |
DOMAIN-SUFFIX,optimix.asia,REJECT | |
DOMAIN-SUFFIX,quantserve.com,REJECT | |
DOMAIN-SUFFIX,responsys.net,REJECT | |
DOMAIN-SUFFIX,scorecardresearch.com,REJECT | |
DOMAIN-SUFFIX,smartmad.com,REJECT | |
DOMAIN-SUFFIX,smartadserver.com,REJECT | |
DOMAIN-SUFFIX,switchadhub.com,REJECT | |
DOMAIN-SUFFIX,tanx.com,REJECT | |
DOMAIN-SUFFIX,tapjoyads.com,REJECT | |
DOMAIN-SUFFIX,tiqcdn.com,REJECT | |
DOMAIN-SUFFIX,umeng.co,REJECT | |
DOMAIN-SUFFIX,umeng.com,REJECT | |
DOMAIN-SUFFIX,umeng.net,REJECT | |
DOMAIN-SUFFIX,unimhk.com,REJECT | |
DOMAIN-SUFFIX,unlitui.com,REJECT | |
DOMAIN-SUFFIX,uyunad.com,REJECT | |
DOMAIN-SUFFIX,waps.cn,REJECT | |
DOMAIN-SUFFIX,wiyun.com,REJECT | |
DOMAIN-SUFFIX,wooboo.com.cn,REJECT | |
DOMAIN-SUFFIX,wqmobile.com,REJECT | |
DOMAIN-SUFFIX,x.jd.com,REJECT | |
DOMAIN-SUFFIX,youmi.net,REJECT | |
DOMAIN-SUFFIX,zhiziyun.com,REJECT | |
DOMAIN,csi.gstatic.com,REJECT | |
DOMAIN,static.googleadsserving.cn,REJECT | |
DOMAIN-SUFFIX,doubleclick.net,REJECT | |
DOMAIN-SUFFIX,googleadservices.com,REJECT | |
DOMAIN-SUFFIX,googletagservices.com,REJECT | |
DOMAIN-KEYWORD,blogspot,Proxy | |
DOMAIN-KEYWORD,google,Proxy,force-remote-dns | |
DOMAIN-KEYWORD,youtube,Proxy,force-remote-dns | |
DOMAIN-KEYWORD,gmail,Proxy,force-remote-dns | |
DOMAIN-SUFFIX,appspot.com,Proxy | |
DOMAIN-SUFFIX,ggpht.com,Proxy | |
DOMAIN-SUFFIX,ytimg.com,Proxy | |
# Apple | |
DOMAIN,iadsdk.apple.com,REJECT | |
DOMAIN-SUFFIX,adcdownload.apple.com,DIRECT | |
DOMAIN-SUFFIX,appldnld.apple.com,DIRECT | |
DOMAIN-SUFFIX,cdn-apple.com,DIRECT | |
DOMAIN-SUFFIX,itunes.apple.com,DIRECT | |
DOMAIN-SUFFIX,itunes.com,DIRECT | |
DOMAIN-SUFFIX,lcdn-registration.apple.com,DIRECT | |
DOMAIN-SUFFIX,ls.apple.com,DIRECT | |
DOMAIN-SUFFIX,mzstatic.com,DIRECT | |
DOMAIN-SUFFIX,phobos.apple.com,DIRECT | |
DOMAIN-SUFFIX,swcdn.apple.com,DIRECT | |
# Remove these lines below if you don't have trouble accessing Apple resources | |
DOMAIN-SUFFIX,apple.com,Proxy | |
DOMAIN-SUFFIX,icloud.com,Proxy | |
DOMAIN-SUFFIX,me.com,Proxy | |
DOMAIN,t.co,Proxy | |
DOMAIN-KEYWORD,twitter,Proxy,force-remote-dns | |
DOMAIN-SUFFIX,twimg.com,Proxy,force-remote-dns | |
DOMAIN-KEYWORD,facebook,Proxy,force-remote-dns | |
DOMAIN-SUFFIX,fbcdn.net,Proxy,force-remote-dns | |
DOMAIN,lives.l.qq.com,REJECT | |
DOMAIN,monitor.uu.qq.com,REJECT | |
DOMAIN,pingjs.qq.com,REJECT | |
DOMAIN,pingma.qq.com,REJECT | |
DOMAIN,tajs.qq.com,REJECT | |
DOMAIN,tcss.qq.com,REJECT | |
DOMAIN-SUFFIX,beacon.qq.com,REJECT | |
DOMAIN-SUFFIX,pingtcss.qq.com,REJECT | |
DOMAIN-SUFFIX,report.qq.com,REJECT | |
DOMAIN-SUFFIX,gtimg.com,DIRECT | |
DOMAIN-SUFFIX,qq.com,DIRECT | |
# 163 | |
DOMAIN,dsp.youdao.com,REJECT | |
DOMAIN,g.163.com,REJECT | |
DOMAIN,temp.163.com,REJECT | |
DOMAIN-SUFFIX,stat.ws.126.net,REJECT | |
DOMAIN-SUFFIX,union.youdao.com,REJECT | |
DOMAIN-SUFFIX,126.net,DIRECT | |
DOMAIN-SUFFIX,163.com,DIRECT | |
DOMAIN-SUFFIX,netnease.com,DIRECT | |
# Baidu/iqiyi | |
DOMAIN,cbjs.baidu.com,REJECT | |
DOMAIN,cpro.baidu.com,REJECT | |
DOMAIN,eclick.baidu.com,REJECT | |
DOMAIN,entry.baidu.com,REJECT | |
DOMAIN,hm.baidu.com,REJECT | |
DOMAIN,hmma.baidu.com,REJECT | |
DOMAIN,mobads-logs.baidu.com,REJECT | |
DOMAIN,mobads.baidu.com,REJECT | |
DOMAIN,msg.71.am,REJECT | |
DOMAIN,mtj.baidu.com,REJECT | |
DOMAIN,nsclick.baidu.com,REJECT | |
DOMAIN-SUFFIX,baidustatic.com,REJECT | |
DOMAIN-SUFFIX,pos.baidu.com,REJECT | |
DOMAIN-SUFFIX,baidu.com,DIRECT | |
# Alibaba | |
DOMAIN,acjs.aliyun.com,REJECT | |
DOMAIN,adash.m.taobao.com,REJECT | |
DOMAIN-SUFFIX,simaba.taobao.com,REJECT | |
DOMAIN-KEYWORD,alipay,DIRECT | |
DOMAIN-SUFFIX,alicdn.com,DIRECT | |
# Sina | |
DOMAIN,sax.sina.cn,REJECT | |
DOMAIN-SUFFIX,beacon.sina.com.cn,REJECT | |
# Youku/Tudou | |
DOMAIN,ad.api.3g.youku.com,REJECT | |
DOMAIN-SUFFIX,atm.youku.com,REJECT | |
DOMAIN,ad.api.3g.tudou.com,REJECT | |
DOMAIN,adcontrol.tudou.com,REJECT | |
DOMAIN,adplay.tudou.com,REJECT | |
DOMAIN,stat.tudou.com,REJECT | |
DOMAIN,stats.tudou.com,REJECT | |
# Accelerate most visited sites | |
DOMAIN-KEYWORD,akamai,Proxy | |
DOMAIN-KEYWORD,dropbox,Proxy | |
DOMAIN-SUFFIX,amazonaws.com,Proxy | |
DOMAIN-SUFFIX,cloudfront.net,Proxy | |
DOMAIN-SUFFIX,cn,DIRECT | |
DOMAIN-SUFFIX,fastly.net,Proxy | |
DOMAIN-SUFFIX,omnigroup.com,Proxy | |
# Streaming services, comment out if you don't need | |
DOMAIN-KEYWORD,qiyi,DIRECT | |
DOMAIN-KEYWORD,sohu,DIRECT | |
DOMAIN-SUFFIX,tudou.com,DIRECT | |
DOMAIN-SUFFIX,youku.com,DIRECT | |
DOMAIN-KEYWORD,instagram,Proxy,force-remote-dns | |
// Telegram | |
IP-CIDR,91.108.56.0/22,Proxy,no-resolve | |
IP-CIDR,91.108.4.0/22,Proxy,no-resolve | |
IP-CIDR,109.239.140.0/24,Proxy,no-resolve | |
IP-CIDR,149.154.160.0/20,Proxy,no-resolve | |
# LAN, debugging rules should place above this line | |
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 | |
# Detect local network | |
GEOIP,CN,DIRECT | |
# Use proxy for all others | |
FINAL,Proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment