核心程序/usr/local/bin/xray
wget https://github.com/XTLS/Xray-core/releases/download/v1.8.24/Xray-linux-64.zip
unzip Xray-linux-64.zip
xray.json
伪装类型tls改为http
{"api": {"services": ["HandlerService","StatsService"],"tag": "api"},"stats": {},"inbounds": [{"sniffing": {"enabled": true,"destOverride": ["http","tls"]},"port": 443,"protocol": "vmess","settings": {"clients": []},"streamSettings": {"network": "tcp","security": "none","tcpSettings": {"header": {"type": "http","request": {"version": "1.1","method": "GET","path": ["/"],"headers": {"Host": ["www.baidu.com"],"User-Agent": ["Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"],"Accept-Encoding": ["gzip, deflate"],"Connection": ["keep-alive"],"Pragma": "no-cache"}},"response": {"version": "1.1","status": "200","reason": "OK","headers": {"Content-Type": ["application/octet-stream", "video/mpeg"],"Transfer-Encoding": ["chunked"],"Connection": ["keep-alive"],"Pragma": "no-cache"}}}}// "security": "tls",// "tlsSettings": {// "certificates": [// {// "certificateFile": "/root/Xray/xray.crt",// "keyFile": "/root/Xray/xray.key"// }// ]// }},"tag": "proxy2"},{"listen": "0.0.0.0","port": 8301,"protocol": "dokodemo-door","settings": {"address": "0.0.0.0"},"tag": "api"}],"outbounds": [{"protocol": "freedom","settings": {}},{"protocol": "blackhole","tag": "blocked"}],"routing": {"settings": {"rules": [{"outboundTag": "blocked","protocol": ["bittorrent"],"type": "field"},{"inboundTag": ["api"],"outboundTag": "api","type": "field"},{"domain": ["regexp:(.+.|^)(360|so).(cn|com)","regexp:(.?)(xunlei|sandai|Thunder|XLLiveUD)(.)","regexp:(.*.||)(dafahao|minghui|dongtaiwang|epochtimes|ntdtv|falundafa|wujieliulan).(org|com|net)","regexp:(Subject|HELO|SMTP)","regexp:(.*.||)(gtv|kwok7).(org|com)","regexp:(.*.||)(metatrader4|metatrader5|mql5).(org|com|net)","regexp:(.*.||)(gov|12377|12315|talk.news.pts.org|creaders|zhuichaguoji|efcc.org|cyberpolice|aboluowang|tuidang|epochtimes|dafahao|falundafa|minghui|falunaz|zhengjian|110.qq|mingjingnews|inmediahk|xinsheng|bannedbook|ntdtv|falungong|12321|secretchina|epochweekly|cn.rfi).(cn|com|org|net|club|net|fr|tw|hk|eu|info|me)","regexp:(.*.||)(mingjinglive|chinaaid|botanwang|xinsheng|rfi|breakgfw|chengmingmag|jinpianwang|xizang-zhiye|breakgfw|qi-gong|voachinese|mhradio|rfa|edoors|edoors|renminbao|soundofhope|zhengjian|dafahao|minghui|dongtaiwang|epochtimes|ntdtv|falundafa|wujieliulan|aboluowang|bannedbook|secretchina|dajiyuan|boxun|chinadigitaltimes|huaglad|creaders|oneplusnews|rfa).(cn|com|org|net|club|net|fr|tw|hk|eu|info|me)","regexp:(torrent|.torrent|peer_id=|info_hash|get_peers|find_node|BitTorrent|announce_peer|announce.php?passkey=)","regexp:(^.*@)(guerrillamail|guerrillamailblock|sharklasers|grr|pokemail|spam4|bccto|chacuo|027168).(info|biz|com|de|net|org|me|la)","regexp:BitTorrent protocol"],"outboundTag": "blocked","type": "field"}]},"strategy": "rules"},"policy": {"levels": {"1": {"handshake": 1,"connIdle": 30,"uplinkOnly": 0,"downlinkOnly": 0,"statsUserUplink": true,"statsUserDownlink": true}}}}
