linux:v2ray
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:v2ray [2019/07/13 12:29] – created percy | linux:v2ray [2021/10/02 22:32] (current) – [start/stop] percy | ||
---|---|---|---|
Line 22: | Line 22: | ||
</ | </ | ||
===== config ===== | ===== config ===== | ||
- | - / | + | |
===== start/stop ===== | ===== start/stop ===== | ||
+ | sudo systemctl start v2ray | ||
+ | sudo systemctl restart v2ray | ||
+ | |||
+ | ===== Mac Install ===== | ||
+ | - https:// | ||
+ | |||
+ | brew tap v2ray/v2ray | ||
+ | brew install v2ray-core | ||
+ | Then you can run v2ray, and config file: | ||
+ | / | ||
+ | |||
+ | run v2ray-core without starting at login. | ||
+ | brew services run v2ray-core | ||
+ | or run v2ray-core and register it to launch at login via: | ||
+ | brew services start v2ray-core | ||
+ | brew services restart v2ray-core | ||
+ | |||
+ | ===== Router Install ===== | ||
+ | Download the correct version | ||
+ | - https:// | ||
+ | wget -cS https:// | ||
+ | unzip v2ray-linux-arm.zip | ||
+ | Then copy all the files to the router | ||
+ | scp -r v2ray root@miwifi.com:/ | ||
+ | Add execution permission | ||
+ | chmod +x v2ray | ||
+ | chmod +x v2ctl | ||
+ | Update the config.json, | ||
+ | ./v2ray --config=config.json | ||
+ | Testing the connection | ||
+ | curl -x socks5:// | ||
+ | Reference | ||
+ | - https:// | ||
+ | |||
+ | ===== Reference ===== | ||
+ | - https:// | ||
+ | |||
+ | ===== Config file for server ===== | ||
+ | <file json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | },{ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }], | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Config file for client ==== | ||
+ | |||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== v2ray with nginx ==== | ||
+ | - https:// | ||
- | ``` | ||
- | sudo systemctl start v2ray | ||
- | sudo systemctl restart v2ray | ||
- | ``` |
/var/www/dokuwiki/wiki/data/attic/linux/v2ray.1562992199.txt.gz · Last modified: 2019/07/13 12:29 by percy