|
发表于 2019-2-21 17:49:13
|
显示全部楼层
本帖最后由 NeverMind 于 2019-2-21 17:59 编辑
太长不看系列,直接贴个我自用的你看着改吧
哦,忘了说,两个用途:1. ss-in,然后用vmess转发出去,2. mtproto-in,然后套个vmess的壳转发出去
- {
- "log": {
- "access": "var/log/v2ray/access.log",
- "error": "/var/log/v2ray/error.log",
- "loglevel": "warning"
- },
- "routing": {
- "strategy": "rules",
- "settings": {
- "rules": [
- {
- "type": "field",
- "inboundTag": [
- "tg-in"
- ],
- "outboundTag": "tg-out"
- }
- ]
- }
- },
- "inbound": {
- "port": 8002,
- "protocol": "shadowsocks",
- "tag": "ss-in",
- "settings": {
- "method": "aes-256-cfb",
- "password": "e8d282b5",
- "level": 1,
- "network": "tcp,udp"
- }
- },
- "inboundDetour": [
- {
- "port": 8004,
- "protocol": "mtproto",
- "tag": "tg-in",
- "settings": {
- "users": [
- {
- "secret": "18609"
- }
- ]
- }
- }
- ],
- "outbound": {
- "protocol": "vmess",
- "tag": "vmess-out",
- "settings": {
- "vnext": [
- {
- "address": "tn",
- "port": 443,
- "users": [
- {
- "id": "fdfbaf1e",
- "alterId": 16,
- "security": "auto",
- "level": 1
- }
- ]
- }
- ]
- },
- "streamSettings": {
- "network": "ws",
- "security": "tls",
- "wsSettings": {
- "path": "/v2ray"
- }
- }
- },
- "outboundDetour": [
- {
- "protocol": "mtproto",
- "tag": "tg-out",
- "settings": {},
- "proxySettings": {
- "tag": "vmess-out"
- }
- }
- ]
- }
复制代码 |
|