
在WebSocket+TLS+Web模式下,Padavan系统直接导入mess很难成功。
下面记录Padavan可用的json模板,不需要其他设置直接实现路由器代理:
{ "log": { "error": "/tmp/syslog.log", "loglevel": "warning" }, "inbound": { "port": 1080, "listen": "0.0.0.0", "protocol": "socks", "settings": { "auth": "noauth", "udp": true, "ip": "127.0.0.1" } }, "outbound": { "protocol": "vmess", "settings": { "vnext": [ { "address": "XX.XX.XX.XX", "port": 443, "users": [ { "id": "XXXXXXXXXXXXXXXXXXXX", "alterId": 16, "security": "auto" } ] } ] }, "mux": { "enabled": true }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "serverName": "www.TEST.com", "allowInsecure": true }, "wsSettings": { "path": "/Pizza" } } }, "inboundDetour": [ { "port": "1099", "listen": "0.0.0.0", "protocol": "dokodemo-door", "settings": { "network": "tcp,udp", "timeout": 30, "followRedirect": true } } ], "outboundDetour": [ { "protocol": "freedom", "settings": {}, "tag": "direct" } ], "dns": { "servers": [ "202.97.224.69", "202.97.224.68" ] }, "routing": { "strategy": "rules", "settings": { "rules": [ { "type": "chinasites", "outboundTag": "direct" }, { "type": "field", "ip": [ "0.0.0.0/8", "10.0.0.0/8", "100.64.0.0/10", "127.0.0.0/8", "169.254.0.0/16", "172.16.0.0/12", "192.0.0.0/24", "192.0.2.0/24", "192.168.0.0/16", "198.18.0.0/15", "198.51.100.0/24", "203.0.113.0/24", "100.100.100.100/32", "188.188.188.188/32", "110.110.110.110/32", "104.160.185.171/32", "::1/128", "fc00::/7", "fe80::/10" ], "outboundTag": "direct" }, { "type": "chinaip", "outboundTag": "direct" } ] } } }