forked from scomper/Surge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from scomper/master
Merge
- Loading branch information
Showing
4 changed files
with
79 additions
and
78 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!name=Game Console SNAT | ||
#!desc=让 Surge 为 PlayStation、Xbox 和 Nintendo Switch 正确处理 SNAT 对话。只有当 Surge Mac 作为这些设备的路由器时才会有用。 | ||
#!system=mac | ||
|
||
[General] | ||
always-real-ip = %APPEND% *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!name=URL Rewrite Plus | ||
#!desc= 需配合 Rewrite 和 MitM 使用。重定向 taobao、163、JD、mi 的 HTTP 访问到 HTTPS;避免访问一些软件的国内仿冒官网;解除 TikTok 地区限制。 | ||
|
||
[URL Rewrite] | ||
# Redirect HTTP to HTTPS | ||
^https?:\/\/(www.)?taobao\.com\/ https://taobao.com/ 302 | ||
^https?:\/\/(www.)?jd\.com\/ https://www.jd.com/ 302 | ||
^https?:\/\/(www.)?mi\.com\/ https://www.mi.com/ 302 | ||
^https?:\/\/you\.163\.com\/ https://you.163.com/ 302 | ||
^https?:\/\/(www.)?suning\.com/ https://suning.com/ 302 | ||
^https?:\/\/(www.)?yhd\.com https://yhd.com/ 302 | ||
|
||
# Redirect False to True | ||
# > IGN China to IGN Global | ||
^https?:\/\/(www.)?ign\.xn--fiqs8s\/ http://cn.ign.com/ccpref/us 302 | ||
|
||
# > Fake Website Made By C&J Marketing | ||
^https?:\/\/(www.)?abbyychina\.com\/ https://www.abbyy.cn/ 302 | ||
^https?:\/\/(www.)?bartender\.cc\/ https://www.macbartender.com/ 302 | ||
^https?:\/\/(www.)?(betterzipcn|betterzip)\.(com|net)\/ https://macitbetter.com/ 302 | ||
^https?:\/\/(www.)?beyondcompare\.cc\/ https://www.scootersoftware.com/ 302 | ||
^https?:\/\/(www.)?bingdianhuanyuan\.cn\/ https://www.faronics.com/zh-hans/products/deep-freeze 302 | ||
^https?:\/\/(www.)?chemdraw\.com\.cn\/ https://www.perkinelmer.com.cn/ 302 | ||
^https?:\/\/(www.)?codesoftchina\.com\/ https://www.teklynx.com/ 302 | ||
^https?:\/\/(www.)?coreldrawchina\.com\/ https://www.coreldraw.com/cn/ 302 | ||
^https?:\/\/(www.)?crossoverchina\.com\/ https://www.codeweavers.com/ 302 | ||
^https?:\/\/(www.)?dongmansoft\.com\/ https://www.udongman.cn/ 302 | ||
^https?:\/\/(www.)?earmasterchina\.cn\/ https://www.earmaster.com/ 302 | ||
^https?:\/\/(www.)?easyrecoverychina\.com\/ https://www.ontrack.com/ 302 | ||
^https?:\/\/(www.)?ediuschina\.com\/ https://www.grassvalley.com/ 302 | ||
^https?:\/\/(www.)?flstudiochina\.com\/ https://www.image-line.com/ 302 | ||
^https?:\/\/(www.)?formysql\.com\/ https://www.navicat.com.cn/ 302 | ||
^https?:\/\/(www.)?guitarpro\.cc\/ https://www.guitar-pro.com/ 302 | ||
^https?:\/\/(www.)?huishenghuiying\.com\.cn\/ https://www.coreldraw.com/cn/ 302 | ||
^https?:\/\/hypersnap\.mairuan\.com\/ https://www.hyperionics.com/ 302 | ||
^https?:\/\/(www.)?iconworkshop\.cn\/ https://www.axialis.com/ 302 | ||
^https?:\/\/(www.)?imindmap\.cc\/ https://www.ayoa.com/previously-imindmap/ 302 | ||
^https?:\/\/(www.)?jihehuaban\.com\.cn\/ https://www.chartwellyorke.com/sketchpad/x24795.html | ||
^https?:\/\/hypersnap\.mairuan\.com\/ https://www.keyshot.com/ 302 | ||
^https?:\/\/(www.)?kingdeecn\.cn\/ http://www.kingdee.com/ 302 | ||
^https?:\/\/(www.)?logoshejishi\.com https://www.sothink.com/product/logo-design-software/ 302 | ||
^https?:\/\/logoshejishi\.mairuan\.com\/ https://www.sothink.com/product/logo-design-software/ 302 | ||
^https?:\/\/(www.)?luping\.net\.cn\/ https://www.techsmith.com/ 302 | ||
^https?:\/\/(www.)?mathtype\.cn\/ https://www.dessci.com/ 302 | ||
^https?:\/\/(www.)?mindmanager\.(cc|cn)\/ https://www.mindjet.com/cn/ 302 | ||
^https?:\/\/(www.)?mindmapper\.cc\/ https://www.mindmapper.com/ 302 | ||
^https?:\/\/(www.)?mycleanmymac\.com\/ https://macpaw.com/ 302 | ||
^https?:\/\/(www.)?nicelabel\.cc\/ https://www.nicelabel.com/zh/ 302 | ||
^https?:\/\/(www.)?ntfsformac\.cc\/ https://www.tuxera.com/products/tuxera-ntfs-for-mac-cn/ 302 | ||
^https?:\/\/(www.)?ntfsformac\.cn\/ https://china.paragon-software.com/home-mac/ntfs-for-mac/ 302 | ||
^https?:\/\/(www.)?overturechina\.com\/ https://sonicscores.com/ 302 | ||
^https?:\/\/(www.)?passwordrecovery\.cn\/ https://cn.elcomsoft.com/aopr.html 302 | ||
^https?:\/\/(www.)?pdfexpert\.cc\/ https://pdfexpert.com/zh 302 | ||
^https?:\/\/(www.)?photozoomchina\.com\/ https://www.benvista.com/ 302 | ||
^https?:\/\/(www.)?shankejingling\.com\/ https://www.sothink.com/product/flashdecompiler/ 302 | ||
^https?:\/\/cn\.ultraiso\.net\/ https://cn.ezbsystems.com/ultraiso/ 302 | ||
^https?:\/\/(www.)?vegaschina\.cn\/ https://www.vegascreativesoftware.com/ 302 | ||
^https?:\/\/(www.)?xshellcn\.com\/ https://www.netsarang.com/zh/xshell/ 302 | ||
^https?:\/\/(www.)?yuanchengxiezuo\.com\/ https://www.teamviewer.com/ 302 | ||
^https?:\/\/(www.)?zbrushcn.com/ https://pixologic.com/ 302 | ||
|
||
# TikTok (By Choler & Paris ^_^) | ||
(.*video_id=\w{32})(.*watermark=)(.*) $1 302 | ||
(?<=(carrier|account|sys)_region=)CN JP 307 | ||
#(?<=version_code=)\d{1,}.\d{1}\.\d{1} 8.4.0 307 | ||
# Resso (By JO2EY) | ||
(?<=(carrier|account|sys|sim)_region=)cn in 307 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[General] | ||
loglevel = notify | ||
skip-proxy = 127.0.0.1, 192.168.0.0/16, 193.168.0.0/24, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10,localhost,*.local | ||
#dns-server = 223.5.5.5, 119.29.29.29, 114.114.114.114, 101.6.6.6, 2001:da8::666 | ||
dns-server = https://223.6.6.6/dns-query,https://1.1.1.1/dns-query | ||
dns-server = 223.5.5.5, 119.29.29.29, 114.114.114.114, 101.6.6.6, 2001:da8::666 | ||
#dns-server = https://223.6.6.6/dns-query,https://1.1.1.1/dns-query | ||
external-controller-access = [email protected]:6170 | ||
ipv6 = true | ||
exclude-simple-hostnames = true | ||
allow-wifi-access = true | ||
always-real-ip = *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com | ||
always-real-ip = *.apple.com | ||
http-listen = 0.0.0.0:8888 | ||
socks5-listen = 0.0.0.0:8889 | ||
wifi-access-socks5-port = 8889 | ||
|
@@ -62,11 +62,12 @@ RULE-SET,https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/mast | |
RULE-SET,https://github.com/scomper/surge-list/raw/master/reject.list,AdBlock | ||
RULE-SET,https://github.com/scomper/surge-list/raw/master/cn.list,DIRECT | ||
RULE-SET,https://github.com/scomper/surge-list/raw/master/video.list,Video | ||
RULE-SET,https://github.com/scomper/surge-list/raw/master/blocked.list,Proxy | ||
AND,((RULE-SET,https://github.com/scomper/surge-list/raw/master/blocked.list), (PROTOCOL,UDP)),Game01 | ||
RULE-SET,https://github.com/scomper/surge-list/raw/master/telegram.list,Proxy | ||
RULE-SET,LAN,DIRECT | ||
# GeoIP CN | ||
GEOIP,CN,DIRECT | ||
PROTOCOL,UDP,Game01 | ||
FINAL,Proxy,dns-failed | ||
|
||
[Host] | ||
|
@@ -76,7 +77,7 @@ router.com = router | |
*.tmall.com = server:223.5.5.5 | ||
|
||
[URL Rewrite] | ||
https?://www\.google\.cn http://www.google.com.hk header | ||
^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302 | ||
|
||
[Header Rewrite] | ||
^https?://www.zhihu.com/question/ header-replace User-Agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.45 Safari/537.36" | ||
|