Compare commits

...

4 Commits

Author SHA1 Message Date
loyalsoldier
cc7852a932 Change go get flag to avoid upstream dependencies building errors 2020-08-03 12:54:35 +08:00
Loyalsoldier
b55e79edda Build after changing GitHub workflows 2020-08-03 12:50:57 +08:00
Loyalsoldier
1e2773eda5 Add EasyList & EsayListChina into reject-list 2020-08-03 12:50:56 +08:00
loyalsoldier
9d2366d892 Change configuration & description 2020-07-31 04:59:19 +08:00
2 changed files with 32 additions and 38 deletions

View File

@@ -7,7 +7,6 @@ on:
- master
- hidden
paths-ignore:
- ".github/**"
- "**/README.md"
jobs:
build:
@@ -39,6 +38,7 @@ jobs:
echo "::set-env name=LHIE1_RULES_PROXY_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Proxy.list"
echo "::set-env name=LHIE1_RULES_REJECT_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Reject.list"
echo "::set-env name=ADAWAY_REJECT_URL::https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt"
echo "::set-env name=EASYLISTCHINA_EASYLIST_REJECT_URL::https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt"
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
shell: bash
@@ -57,12 +57,12 @@ jobs:
- name: Generate geoip.dat file
run: |
go get -u -v -insecure $GEOIP_REPO
go get -v -insecure $GEOIP_REPO
geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv --ipv4CN=https://raw.githubusercontent.com/pexcn/daily/gh-pages/chnroute/chnroute.txt
- name: Download geosite project
run: |
go get -u -v -insecure $GEOSITE_REPO
go get -v -insecure $GEOSITE_REPO
- name: Get and add direct domains into temp-direct.txt file
run: |
@@ -86,6 +86,7 @@ jobs:
curl -sSL $GEQ1AN_RULES_REJECT_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+AdBlock/ {print $2}' > temp-reject.txt
curl -sSL $LHIE1_RULES_REJECT_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+/ {print $2}' >> temp-reject.txt
curl -sSL $ADAWAY_REJECT_URL | grep "127.0.0.1" | sed '1d' | awk '{print $2}' >> temp-reject.txt
curl -sSL $EASYLISTCHINA_EASYLIST_REJECT_URL | perl -ne '/^\|\|([-_0-9a-zA-Z]+(\.[-_0-9a-zA-Z]+){1,64})\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^[0-9]{1,3}(\.[0-9]{1,3}){3}$/' >> temp-reject.txt
- name: Add proxy, direct and reject domains from "hidden" branch to appropriate temp files
run: |

View File

@@ -167,10 +167,10 @@ scoop install v2ray-rules-dat
下面为自用 V2Ray 客户端完整配置,注意事项:
- 由于下面客户端配置使用了 DoH DNS 功能,所以必须使用 v4.22.0 或更新版本的 [V2Ray](https://github.com/v2fly/v2ray-core/releases)
- 下面客户端配置使 V2Ray 在本机开启 SOCKS 代理(监听 1080 端口)和 HTTP 代理(监听 2080 端口)
- 下面客户端配置使 V2Ray 在本机开启 SOCKS 代理(监听 1080 端口)和 HTTP 代理(监听 2080 端口),允许局域网内其他设备连接并使用代理
- BT 流量统统直连(实测依然会有部分 BT 流量走代理,尚不清楚是不是 V2Ray 的 bug。如果服务商禁止 BT 下载的话,请不要为下载软件设置代理)
- 最后,不命中任何路由规则的请求和流量,统统走代理
- `outbounds` 里的第一个大括号内的配置,即为 V2Ray 代理服务的配置。请根据自身需求进行修改,并参照 V2Ray 官网配置说明中的 [配置文件 > 文件格式 > OutboundObject](https://www.v2fly.org/chapter_02/01_overview.html#outboundobject) 部分进行补全
- `outbounds` 里的第一个大括号内的配置,即为 V2Ray 代理服务的配置。请根据自身需求进行修改,并参照 V2Ray 官网配置说明中的 [配置 > Outbounds > OutboundObject](https://www.v2fly.org/chapter_02/outbounds.html#outboundobject) 部分进行补全
```json
{
@@ -179,25 +179,29 @@ scoop install v2ray-rules-dat
},
"dns": {
"hosts": {
"dns.google": "8.8.8.8"
"dns.google": "8.8.8.8",
"doh.pub": "119.29.29.29"
},
"servers": [
{
"address": "https+local://doh.pub/dns-query",
"domains": [
"geosite:cn"
],
"expectIPs": [
"geoip:cn"
]
},
{
"address": "https://1.1.1.1/dns-query",
"domains": [
"geosite:geolocation-!cn"
]
},
"https://1.1.1.1/dns-query",
"https://dns.google/dns-query",
{
"address": "114.114.114.114",
"port": 53,
"address": "https+local://223.5.5.5/dns-query",
"domains": [
"geosite:cn"
],
"expectIPs": [
"geoip:cn"
"geosite:tld-cn"
]
}
]
@@ -205,7 +209,7 @@ scoop install v2ray-rules-dat
"inbounds": [
{
"protocol": "socks",
"listen": "127.0.0.1",
"listen": "0.0.0.0",
"port": 1080,
"tag": "Socks-In",
"settings": {
@@ -220,7 +224,7 @@ scoop install v2ray-rules-dat
},
{
"protocol": "http",
"listen": "127.0.0.1",
"listen": "0.0.0.0",
"port": 2080,
"tag": "Http-In",
"sniffing": {
@@ -261,7 +265,7 @@ scoop install v2ray-rules-dat
}
],
"routing": {
"domainStrategy": "AsIs",
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
@@ -285,11 +289,20 @@ scoop install v2ray-rules-dat
"geosite:category-ads-all"
]
},
{
"type": "field",
"outboundTag": "Proxy",
"domain": [
"full:www.icloud.com",
"domain:icloud-content.com"
]
},
{
"type": "field",
"outboundTag": "Direct",
"domain": [
"geosite:tld-cn"
"geosite:tld-cn",
"geosite:icloud"
]
},
{
@@ -306,26 +319,6 @@ scoop install v2ray-rules-dat
"geosite:cn"
]
},
{
"type": "field",
"outboundTag": "Direct",
"ip": [
"223.5.5.5/32",
"119.29.29.29/32",
"180.76.76.76/32",
"114.114.114.114/32"
]
},
{
"type": "field",
"outboundTag": "Proxy",
"ip": [
"1.1.1.1/32",
"1.0.0.1/32",
"8.8.8.8/32",
"8.8.4.4/32"
]
},
{
"type": "field",
"outboundTag": "Direct",