mirror of
https://github.com/EvgenyNerush/easy-xray.git
synced 2025-12-13 21:35:03 +03:00
add some geodata support
This commit is contained in:
@@ -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,
|
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
|
so, here is a script which helps to
|
||||||
|
|
||||||
- install/upgrade/remove XRay
|
- install/upgrade/remove XRay and geodata
|
||||||
- generate credentials and server/client configs
|
- generate credentials and server/client configs
|
||||||
- (todo) add/delete users to the 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:
|
|||||||

|

|
||||||
|
|
||||||
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 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
|
### Other clients
|
||||||
|
|
||||||
|
|||||||
4
ex.sh
4
ex.sh
@@ -263,7 +263,7 @@ fi
|
|||||||
echo -e "
|
echo -e "
|
||||||
Command is done.
|
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
|
locally as config_server.json, config_client.json or
|
||||||
config_client_username.json files. You should manually
|
config_client_username.json files. You should manually
|
||||||
start XRay with one of configs, depending
|
start XRay with one of configs, depending
|
||||||
@@ -273,7 +273,7 @@ which role - server or client - XRay should play:
|
|||||||
or
|
or
|
||||||
sudo xray run -c config_(role).json
|
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
|
by xray for current configs. For logs, see stdout or try
|
||||||
journalctl -u xray
|
journalctl -u xray
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -110,6 +110,26 @@
|
|||||||
"routing": {
|
"routing": {
|
||||||
"domainStrategy": "AsIs",
|
"domainStrategy": "AsIs",
|
||||||
"rules": [
|
"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",
|
"type": "field",
|
||||||
"inboundTag": [
|
"inboundTag": [
|
||||||
|
|||||||
Reference in New Issue
Block a user