add some geodata support

This commit is contained in:
Evgeny Nerush 2023-10-30 14:47:03 +03:00
parent 94775bb0a0
commit c1e306d927
3 changed files with 25 additions and 3 deletions

View file

@ -10,7 +10,7 @@
a client allowing to guide traffic through a VPS outside the region of censorship. XRay configuration can be confusing for a newcomer,
so, here is a script which helps to
- install/upgrade/remove XRay
- install/upgrade/remove XRay and geodata
- generate credentials and server/client configs
- (todo) add/delete users to the configs
@ -38,6 +38,8 @@ 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.
### Other clients

4
ex.sh
View file

@ -263,7 +263,7 @@ fi
echo -e "
Command is done.
${red}Important:${normal} It is assumed that configs are stored and updated
${bold}Important:${normal} It is assumed that configs are stored and updated
locally as config_server.json, config_client.json or
config_client_username.json files. You should manually
start XRay with one of configs, depending
@ -273,7 +273,7 @@ which role - server or client - XRay should play:
or
sudo xray run -c config_(role).json
${red}Important:${normal} Only warnings and errors are logged
${bold}Important:${normal} Only warnings and errors are logged
by xray for current configs. For logs, see stdout or try
journalctl -u xray
"

View file

@ -110,6 +110,26 @@
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"domain": [
"geosite:cn",
"domain:ru",
"domain:by",
"domain:ir"
],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:cn",
"geoip:ru",
"geoip:by",
"geoip:ir"
],
"outboundTag": "direct"
},
{
"type": "field",
"inboundTag": [