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 22:31] – [Router 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 61: | Line 57: | ||
Testing the connection | Testing the connection | ||
curl -x socks5:// | curl -x socks5:// | ||
+ | Reference | ||
+ | - https:// | ||
===== Reference ===== | ===== Reference ===== | ||
Line 70: | Line 67: | ||
{ | { | ||
" | " | ||
- | " | + | " |
+ | " | ||
" | " | ||
" | " | ||
" | " | ||
{ | { | ||
- | " | + | " |
" | " | ||
" | " | ||
Line 82: | Line 80: | ||
}, | }, | ||
" | " | ||
- | " | + | " |
+ | " | ||
+ | " | ||
+ | }, | ||
" | " | ||
" | " | ||
Line 110: | Line 111: | ||
} | } | ||
] | ] | ||
- | } | + | |
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
} | } | ||
</ | </ | ||
Line 118: | Line 124: | ||
<code json> | <code json> | ||
{ | { | ||
- | | + | |
- | "hosts": | + | "servers": |
- | "domain: | + | "1.1.1.1" |
- | "domain: | + | ] |
- | "domain: | + | }, |
- | "domain:wikipedia.org": "www.wikimedia.org" | + | "inbounds": |
- | | + | { |
- | "servers": | + | |
- | "1.1.1.1", | + | "protocol": "socks", |
- | | + | " |
- | "address": "114.114.114.114", | + | "auth": "noauth", |
- | "domains": [ | + | |
- | " | + | "userLevel": |
- | | + | }, |
- | "port": | + | |
- | }, | + | "destOverride": |
- | "8.8.8.8", | + | |
- | | + | "tls" |
- | ] | + | ], |
+ | "enabled": | ||
+ | }, | ||
+ | "tag": "socks" | ||
}, | }, | ||
- | "inbounds": | + | |
- | { | + | |
- | "listen": "127.0.0.1", | + | " |
- | "port": | + | " |
- | " | + | |
- | " | + | }, |
- | "auth": "noauth", | + | " |
- | "ip": "127.0.0.1", | + | } |
- | "udp": | + | ], |
- | }, | + | " |
- | "sniffing": { | + | "loglevel": "warning" |
- | "destOverride": | + | }, |
- | | + | "outbounds": |
- | " | + | { |
- | ], | + | " |
- | "enabled": true | + | " |
- | }, | + | }, |
- | "tag": "socks-inbound" | + | " |
+ | " | ||
+ | "vnext": | ||
+ | { | ||
+ | | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | "alterId": | ||
+ | | ||
+ | "level": | ||
+ | " | ||
+ | } | ||
+ | | ||
+ | } | ||
+ | ] | ||
+ | | ||
+ | "streamSettings": { | ||
+ | "network": "ws", | ||
+ | " | ||
+ | "tlssettings": | ||
+ | " | ||
+ | "serverName": "" | ||
}, | }, | ||
- | { | + | |
- | | + | "connectionReuse": |
- | | + | "headers": |
- | | + | "Host": "" |
- | | + | }, |
- | " | + | "path": "xxxxx" |
- | | + | } |
- | | + | }, |
- | } | + | "tag": "proxy" |
- | ], | + | |
- | "log": { | + | |
- | " | + | |
}, | }, | ||
- | | + | { |
- | " | + | " |
- | { | + | " |
- | " | + | " |
- | " | + | }, |
- | " | + | { |
- | { | + | " |
- | " | + | " |
- | " | + | "response": { |
- | " | + | "type": "http" |
- | { | + | |
- | " | + | |
- | } | + | |
- | ] | + | |
- | } | + | |
- | ] | + | |
- | }, | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | }, | + | |
- | " | + | |
- | }, | + | |
- | " | + | |
- | } | + | |
- | }, | + | |
- | | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | | + | |
- | ], | + | |
- | | + | |
- | "levels": | + | |
- | | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | }, | + | |
- | " | + | |
- | " | + | |
- | " | + | |
} | } | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
}, | }, | ||
- | "routing": { | + | "system": { |
- | "domainStrategy": | + | "statsInboundUplink": |
- | "rules": | + | "statsInboundDownlink": |
- | { | + | |
- | " | + | |
- | " | + | |
- | ], | + | |
- | " | + | |
- | " | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | ], | + | |
- | " | + | |
- | " | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | ], | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | ] | + | |
} | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | ] | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ==== v2ray with nginx ==== | ||
+ | - https:// | ||
+ | |||
/var/www/dokuwiki/wiki/data/pages/linux/v2ray.txt · Last modified: 2021/10/02 22:32 by percy