linux:v2ray
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:v2ray [2019/07/13 21:04] – percy | linux:v2ray [2021/10/02 22:25] – [Config file for server] percy | ||
---|---|---|---|
Line 45: | Line 45: | ||
or run v2ray-core and register it to launch at login via: | or run v2ray-core and register it to launch at login via: | ||
brew services start v2ray-core | 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 ===== | ===== Reference ===== | ||
Line 54: | Line 71: | ||
{ | { | ||
" | " | ||
- | " | + | " |
+ | " | ||
" | " | ||
" | " | ||
" | " | ||
{ | { | ||
- | " | + | " |
" | " | ||
" | " | ||
Line 66: | Line 84: | ||
}, | }, | ||
" | " | ||
- | " | + | " |
+ | " | ||
+ | " | ||
+ | }, | ||
" | " | ||
" | " | ||
Line 94: | Line 115: | ||
} | } | ||
] | ] | ||
- | } | + | |
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
} | } | ||
</ | </ | ||
Line 100: | Line 126: | ||
==== Config file for client ==== | ==== Config file for client ==== | ||
- | <file json> | + | <code json> |
{ | { | ||
" | " | ||
Line 140: | Line 166: | ||
}, | }, | ||
" | " | ||
- | } | + | |
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
], | ], | ||
" | " | ||
Line 152: | Line 187: | ||
" | " | ||
{ | { | ||
- | " | + | " |
- | " | + | " |
" | " | ||
{ | { | ||
- | " | + | " |
} | } | ||
] | ] | ||
Line 225: | Line 260: | ||
} | } | ||
} | } | ||
- | </file> | + | </code> |
+ | |||
+ | ==== v2ray with nginx ==== | ||
+ | - https:// | ||
/var/www/dokuwiki/wiki/data/pages/linux/v2ray.txt · Last modified: 2021/10/02 22:32 by percy