mirror of
https://github.com/EvgenyNerush/easy-xray.git
synced 2025-12-13 21:35:03 +03:00
update readme with browser settings; change port
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
|||||||
config*.json
|
config_*.json
|
||||||
|
|||||||
29
README.md
29
README.md
@@ -1,22 +1,23 @@
|
|||||||
# easy-xray
|
# easy-xray
|
||||||
|
|
||||||
*Script for Linux which make XRay installation and configuration easy.*
|
*Script for Linux which makes XRay installation and configuration easy.*
|
||||||
|
|
||||||
(todo) [Readme in Russian](README.ru.md)
|
(todo) [Readme in Russian](README.ru.md)
|
||||||
|
(todo) [Readme in Chinese](README.cn.md)
|
||||||
|
|
||||||
[XRay (aka ProjectX)](https://xtls.github.io/en/) is a frontier solution to surpass the internet censorship. It can work as a server and as
|
[XRay (aka ProjectX)](https://xtls.github.io/en/) is a frontier solution to surpass the internet censorship. It can work as a server and as
|
||||||
a client, but it's configuration sometimes confusing for a newbie. So, here is a scripts which help
|
a client, but it's configuration sometimes confusing for a newcomer. So, here is a script which helps to
|
||||||
|
|
||||||
- install(todo /uninstall/update) *XRay*
|
- install/uninstall (todo: upgrade) *XRay*
|
||||||
- generate credentials and server/client config
|
- generate credentials and server/client configs
|
||||||
- (todo) add/delete user and update config
|
- (todo) add/delete users to the configs
|
||||||
|
|
||||||
First make the script `ex.sh` executable, then run it with a desired command. Use `./ex.sh help` to see the list of all available commands
|
First make the script `ex.sh` executable, then run it with a desired command. Use `./ex.sh help` to see the list of all available commands
|
||||||
and `./ex.sh all` to start interactive prompt which installs and configures *XRay*.
|
and `./ex.sh install` to start interactive prompt which installs and configures *XRay*.
|
||||||
```
|
```
|
||||||
$ chmod +x ex.sh
|
$ chmod +x ex.sh
|
||||||
$ ./ex.sh help
|
$ ./ex.sh help
|
||||||
$ sudo ./ex.sh all
|
$ sudo ./ex.sh install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
@@ -24,9 +25,19 @@ $ sudo ./ex.sh all
|
|||||||
For manipulations with configs, [jq](https://jqlang.github.io/jq/) is needed, it can be found in repositories of almost all popular Linux
|
For manipulations with configs, [jq](https://jqlang.github.io/jq/) is needed, it can be found in repositories of almost all popular Linux
|
||||||
distributives.
|
distributives.
|
||||||
|
|
||||||
|
### How it works
|
||||||
|
|
||||||
|
With current configs, *XRay* creates a [grpc](https://en.wikipedia.org/wiki/GRPC) tunnel between the client (your laptop, phone etc.) and
|
||||||
|
the server (your VPS). For the censor the tunnel looks like a usual connection to a site. The server responses to https requests as some
|
||||||
|
popular site thus it is not suspicious for an active probing. On the client side *XRay* creates a socks proxy which can be used by your
|
||||||
|
web browser, telegram or TorBrowser like that:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Acknowledgements
|
### Acknowledgements
|
||||||
|
|
||||||
[This article (in Russian)](https://habr.com/ru/articles/731608/) helped me install *XRay* for the first time.
|
[This article (in Russian)](https://habr.com/ru/articles/731608/) helped me to install *XRay* for the first time.
|
||||||
[XRay config reference](https://xtls.github.io/en/config/) is brilliant and helped me much.
|
[XRay config reference](https://xtls.github.io/en/config/) is brilliant and helped me much.
|
||||||
|
[Configs](https://github.com/XTLS/Xray-examples/tree/main/VLESS-gRPC-REALITY) on which the template configs are based.
|
||||||
|
|
||||||
(TODO) about, reality-vless, domains, browser settings, no encription(!), choose domain names or geoip
|
(TODO) about, reality-vless, domains, browser settings, no encription(!), choose domain names or geoip, configs for phone...
|
||||||
|
|||||||
BIN
browser-proxy-settings.png
Normal file
BIN
browser-proxy-settings.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 68 KiB |
3
ex.sh
3
ex.sh
@@ -148,7 +148,6 @@ or is in the same country. Better if it is popular.
|
|||||||
fake_site="www.yahoo.com"
|
fake_site="www.yahoo.com"
|
||||||
fi
|
fi
|
||||||
echo -e "${green}mimic ${fake_site}${normal}"
|
echo -e "${green}mimic ${fake_site}${normal}"
|
||||||
port=80
|
|
||||||
email="love@xray.com"
|
email="love@xray.com"
|
||||||
clients=" [
|
clients=" [
|
||||||
{
|
{
|
||||||
@@ -171,7 +170,7 @@ or is in the same country. Better if it is popular.
|
|||||||
vnext=" [
|
vnext=" [
|
||||||
{
|
{
|
||||||
\"address\": \"${address}\",
|
\"address\": \"${address}\",
|
||||||
\"port\": ${port},
|
\"port\": 50051,
|
||||||
\"users\": [
|
\"users\": [
|
||||||
{
|
{
|
||||||
\"id\": \"${id}\",
|
\"id\": \"${id}\",
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
"vnext": [
|
"vnext": [
|
||||||
{
|
{
|
||||||
"address": "server_address",
|
"address": "server_address",
|
||||||
"port": 80,
|
"port": 50051,
|
||||||
"users": [
|
"users": [
|
||||||
{
|
{
|
||||||
"id": "client_id",
|
"id": "client_id",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"listen": "0.0.0.0",
|
"listen": "0.0.0.0",
|
||||||
"port": 80,
|
"port": 50051,
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
"clients": [
|
"clients": [
|
||||||
|
|||||||
Reference in New Issue
Block a user