mirror of
https://github.com/EvgenyNerush/easy-xray.git
synced 2025-03-14 20:21:01 +03:00
add some geodata support
This commit is contained in:
parent
94775bb0a0
commit
c1e306d927
3 changed files with 25 additions and 3 deletions
|
@ -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:
|
|||

|
||||
|
||||
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
4
ex.sh
|
@ -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
|
||||
"
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Add table
Reference in a new issue