linux:v2ray
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:v2ray [2019/07/13 14:37] – [Mac Install] percy | linux:v2ray [2021/10/02 22:32] (current) – [start/stop] percy | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| ===== start/stop ===== | ===== start/stop ===== | ||
| - | + | | |
| - | + | sudo systemctl restart v2ray | |
| - | ``` | + | |
| - | sudo systemctl start v2ray | + | |
| - | sudo systemctl restart v2ray | + | |
| - | ``` | + | |
| ===== Mac Install ===== | ===== Mac Install ===== | ||
| Line 40: | Line 36: | ||
| Then you can run v2ray, and config file: | 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:// | ||
/var/www/dokuwiki/wiki/data/attic/linux/v2ray.1562999834.txt.gz · Last modified: 2019/07/13 14:37 by percy
