V2Ray /etc/v2ray/config.json:- {
- "inbounds": [
- {
- "protocol": "socks",
- "port": 1081, // SOCKS 代理端口,在浏览器中需配置代理并指向这个端口
- "listen": "192.168.1.22",
- "settings": {
- "udp": true
- }
- },
- {
- "protocol": "dokodemo-door",
- "port": 12345,
- "domainOverride": ["tls","http"],
- "settings": {
- "network": "tcp,udp",
- "followRedirect": true
- },
- "sniffing": {
- "enabled": true,
- "destOverride": ["http","tls"]
- }
- },
- {
- "protocol": "dokodemo-door",
- "port": 53,
- "listen": "192.168.1.22",
- "settings": {
- "address": "8.8.8.8",
- "port": 53,
- "network": "udp",
- "timeout": 0,
- "followredirect": false
- }
- }
- ],
- "outbounds": [{
- "protocol": "vmess",
- "settings": {
- "vnext": [{
- "address": "服务器 ip 或域名", // 服务器地址,请修改为你自己的服务器 ip 或域名
- "port": 10086, // 服务器端口
- "users": [{ "id": "UUID" }]
- }]
- },
- "streamSettings": {
- "network": "kcp",
- "kcpSettings": {
- "header": {
- "type": "wechat-video"
- }
- },
- "sockopt":{
- "mark":255
- }
- }
- },
- {
- "protocol": "freedom",
- "tag": "direct",
- "settings": {}
- }],
- "routing": {
- "domainStrategy": "IPOnDemand",
- "rules": [{
- "type": "field",
- # "domain": ["geosite:cn"],
- "ip": ["geoip:private"],
- "ip": ["geoip:cn"],
- "outboundTag": "direct"
- }]
- }
- }
複製代碼 . |