add customgeo to improve coherence of domestic sites sources

This commit is contained in:
Evgeny Nerush 2023-11-14 13:19:15 +03:00
parent e4a2c54d7d
commit 378b43621b
4 changed files with 102 additions and 8 deletions

View file

@ -12,7 +12,7 @@ so, here is a script which helps to
- install/upgrade/remove XRay and geodata
- generate credentials and server/client configs
- (todo) add/delete users to the configs
- add/delete users to the configs
First, make the script `ex.sh` executable, then run a desired command with it. Use `./ex.sh help` to see the list of all available commands
and `./ex.sh install` to start interactive prompt which installs and configures XRay.
@ -38,13 +38,18 @@ proxies which can be used by your Telegram or web browser like this:
![browser proxy: http/https proxy 127.0.0.1 at port 801, socks v5 host 127.0.0.1 at port 800](browser-proxy-settings.png)
Note that there is no additional encryption layer in VLESS; using it you rely on the encryption that the browser (Telegram app etc.) makes.
Note also that for current client config traffic to .cn, .ru, .by and .ir sites goes directly from the client. This makes your server
less attention-grabbing, but your connection less anonymous.
Note also that for current client config, traffic to .cn, .ru, .by and .ir sites goes directly from the client, see
[here](https://github.com/EvgenyNerush/coherence-grabber) for details. This makes your server much less attention-grabbing and suspicious,
but your connection less anonymous.
### Other clients
For Windows, MacOS or Android you can try Nekobox, v2rayNG or ? (TODO): tests and config generation for them.
### Futher reading
Template configs contain comments and links and are good start to find another interesting Xray configuration options.
### Acknowledgements
[This article (in Russian)](https://habr.com/ru/articles/731608/) helped me to install *XRay* for the first time.
@ -53,4 +58,3 @@ For Windows, MacOS or Android you can try Nekobox, v2rayNG or ? (TODO): tests an
[Configs](https://github.com/XTLS/Xray-examples/tree/main/VLESS-gRPC-REALITY) on which the template configs are based.
(TODO) choose domain names or geoip, configs for phone...

77
customgeo.dat Normal file
View file

@ -0,0 +1,77 @@
 
COHERENCE-EXTRA lenta.com
rugldn.net
ru yastatic.net
ru
yandex.net
rumycdn.me
ruavito.st
ru gismeteo.st
ru gismeteo.net
ruozonusercontent.com
ru mradx.net
ru aestatic.net
ru
alicdn.com
ru!rambler.pushwoosh.com
ruvk.com
ru otm-r.com
ru2gis.com
ruchampionat.com
ru rus-tv.su
ru kpcdn.net
rukp.house
rukp.kg
rukaspersky-labs.com
ruqq.com
cn gtimg.com
cn zhihu.com
cn geetest.com
cn zhimg.com
cn126.net
cn163.com
cn25ku.com
cnsohu.com
cn
bcebos.com
cn ifengimg.com
cn
taobao.com
cn bdstatic.com
cn ad-survey.com
cn ifeng.com
cn
alicdn.com
cnjd.com
cn
aliapp.org
cn
aliyun.com
cn iqiyi.com
cnmgtv.com
cn iqiyipic.com
cn hdslb.com
cn 360buyimg.com
cn bilibili.com
cn alibaba.com
cn xiami.com
cn yinyuetai.com
cn ctrip.com
cn tripcdn.com
cn c-ctrip.com
cn
fliggy.com
cnqyerstatic.com
cn baidu.com
cn mafengwo.net
cn meituan.com
cn dianping.com
cn bdimg.com
cn
chuimg.com
cn autonavi.com
cnamap.com
cn
mmstat.com
cn

5
ex.sh
View file

@ -74,8 +74,9 @@ then
then
if bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
then
mkdir -p /var/log/xray
touch /var/log/xray/error.log
dat_dir="/usr/local/share/xray/"
mkdir -p $dat_dir
cp customgeo.dat ${dat_dir}
echo -e "${green}xray installed${normal}"
else
echo -e "${red}xray not installed, something goes wrong${normal}"

View file

@ -94,7 +94,7 @@
},
{
// this outbound is to guide traffic to local sites not through the server
// but directly from the client; `tag` is just a label of oubound
// but directly from the client; `tag` is just an outbound label
"tag": "direct",
"protocol": "freedom",
"settings": {}
@ -109,9 +109,21 @@
"type": "field",
"domain": [
"geosite:cn",
"domain:cn",
// punycode for national Chinese top-level domains ., ., ., .
"domain:xn--fiqs8s",
"domain:xn--fiqz9s",
"domain:xn--55qx5d",
"domain:xn--io0a7i",
"domain:ru",
// punycode for cyrillic Russian top-level domain .рф
"domain:xn--p1ai",
"domain:by",
"domain:ir"
// punycode for national Belorussian top-level domain .бел
"domain:xn--90ais",
"domain:ir",
// extra domains that are used by domestic sites
"ext:customgeo.dat:coherence-extra"
],
"outboundTag": "direct"
},