add v2ray, update
This commit is contained in:
parent
875a80a6a9
commit
00b8edf64f
7
home/newnius/.gitconfig
Normal file
7
home/newnius/.gitconfig
Normal file
@ -0,0 +1,7 @@
|
||||
[user]
|
||||
email = name@example.com
|
||||
name = Name
|
||||
[http "https://github.com"]
|
||||
proxy = socks5h://127.0.0.1:1086
|
||||
[core]
|
||||
autocrlf = input
|
19
mac/setup.md
19
mac/setup.md
@ -7,3 +7,22 @@ brew install sbt@1
|
||||
|
||||
|
||||
```
|
||||
|
||||
Spark
|
||||
|
||||
KeepassX
|
||||
|
||||
NextCloud
|
||||
|
||||
Dropbox
|
||||
|
||||
ShadowsocksX-NG
|
||||
|
||||
iStat Menus
|
||||
|
||||
Docker
|
||||
|
||||
Paragon NTFS for MAC
|
||||
|
||||
Visual Code
|
||||
|
||||
|
51
usr/local/v2ray/client.config.json
Normal file
51
usr/local/v2ray/client.config.json
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"inbounds": [{
|
||||
"port": 1081,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udp": true
|
||||
}
|
||||
},{
|
||||
"port": 8001,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "http",
|
||||
"settings": {
|
||||
"timeout": 0,
|
||||
"userLevel": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [{
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"vnext": [{
|
||||
"address": "example.com",
|
||||
"port": 443,
|
||||
"users": [{ "id": "" }]
|
||||
}]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "tls",
|
||||
"wsSettings": {
|
||||
"path": "/ray"
|
||||
}
|
||||
}
|
||||
},{
|
||||
"protocol": "freedom",
|
||||
"tag": "direct",
|
||||
"settings": {}
|
||||
}],
|
||||
"routing": {
|
||||
"strategy": "rules",
|
||||
"settings": {
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [{
|
||||
"type": "field",
|
||||
"ip": ["geoip:private"],
|
||||
"outboundTag": "direct"
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
15
usr/local/v2ray/install.md
Normal file
15
usr/local/v2ray/install.md
Normal file
@ -0,0 +1,15 @@
|
||||
# V2Ray
|
||||
|
||||
[V2Ray](https://github.com/v2ray/v2ray-core/releases)
|
||||
|
||||
[Ducuments](https://www.v2ray.com/)
|
||||
|
||||
[Manual](https://toutyrater.github.io/)
|
||||
|
||||
## Linux
|
||||
|
||||
```bash
|
||||
sudo su
|
||||
bash <(curl -L -s https://install.direct/go.sh)
|
||||
```
|
||||
|
38
usr/local/v2ray/server.config.json
Normal file
38
usr/local/v2ray/server.config.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"inbounds": [{
|
||||
"port": 80,
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "",
|
||||
"level": 1,
|
||||
"alterId": 64
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"wsSettings": {
|
||||
"path": "/ray"
|
||||
}
|
||||
}
|
||||
}],
|
||||
"outbounds": [{
|
||||
"protocol": "freedom",
|
||||
"settings": {}
|
||||
},{
|
||||
"protocol": "blackhole",
|
||||
"settings": {},
|
||||
"tag": "blocked"
|
||||
}],
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": ["geoip:private"],
|
||||
"outboundTag": "blocked"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user