iis网页提示网站建设中,网站开发用什么写得比较好,做地坪网站,微信推广费用一般多少一、xray服务配置
下载#xff1a;https://github.com/XTLS/Xray-core
进入下载界面
这里我选择的是Xray-linux-64.zip
将文件解压到 /usr/local/xray
编辑配置文件/usr/local/xray/config.json
uuid可以在v2ray客服端自动生成#xff0c;也可以在UUID v4 生成器 - KKT…一、xray服务配置
下载https://github.com/XTLS/Xray-core
进入下载界面
这里我选择的是Xray-linux-64.zip
将文件解压到 /usr/local/xray
编辑配置文件/usr/local/xray/config.json
uuid可以在v2ray客服端自动生成也可以在UUID v4 生成器 - KKTool工具箱 (kktoolkit.com) 上获取uuid
{inbounds: [{port: 10000,protocol: vmess,settings: {clients: [{id: 6ec56d51-52cd-4b64-a925-52982ed7044e,alterId: 100}],decryption: none},streamSettings: {network: ws,wsSettings: {path: /kazfs}}}],outbounds: [{protocol: freedom}]
}配置xray启动服务vi /etc/systemd/system/xray.service
[Unit]
DescriptionXray Service
Afternetwork.target[Service]
Usernobody
ExecStart/usr/local/xray/xray -config /usr/local/xray/config.json
Restarton-failure
RestartSec10
LimitNOFILE51200[Install]
WantedBymulti-user.target设置开机启动xray
systemctl enable xray --now
二、nginx配置 location /kazfs {if ($http_upgrade ! websocket) { # WebSocket协商失败时返回404return 404;}proxy_redirect off;proxy_pass http://127.0.0.1:10000;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection upgrade;proxy_set_header Host $host;# Show real IP in v2ray access.logproxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}三、客服端配置
3.1 windows客服端 测试结果 3.2 linux客服端配置
下载软件还是去https://github.com/XTLS/Xray-core下载用的还是服务端一样的xray
/usr/local/xray/config.json
{log:{loglevel:warning},inbounds:[{port:10808,listen:127.0.0.1,protocol:socks,settings:{udp:true}},{tag:http,port:10809,listen:127.0.0.1,protocol:http,sniffing:{enabled:true,destOverride:[http,tls]},settings:{auth:noauth,udp:true,allowTransparent:false}}],outbounds:[{tag:proxy,protocol:vmess,settings:{vnext:[{address:www.yuantao.com,port:443,users:[{id:6ec56d51-52cd-4b64-a925-52982ed7044e,alterId: 100}]}]},streamSettings:{network:ws,security:tls,tlsSettings:{serverName:www.yuantao.com},wsSettings:{path:/kazfs}}},{tag:direct,protocol:freedom,settings:{}},{tag:block,protocol:blackhole,settings:{response:{type:http}}}],routing:{domainStrategy:IPIfNonMatch,domainMatcher:linear,rules:[{type:field,inboundTag:[api],outboundTag:api,enabled:true},{type:field,outboundTag:direct,domain:[domain:example-example.com,domain:example-example2.com],enabled:true},{type:field,outboundTag:direct,ip:[192.168.10.1/24],protocol:[http,tls,bittorrent]},{type:field,outboundTag:block,domain:[geosite:category-ads-all],enabled:true},{type:field,outboundTag:direct,domain:[geosite:cn],enabled:true},{type:field,outboundTag:direct,ip:[geoip:private,geoip:cn],enabled:true},{type:field,port:0-65535,outboundTag:proxy,enabled:true},{type:field,port:0-65535,outboundTag:proxy,enabled:true}]}
}服务配置
[Unit]
DescriptionXray Service
Afternetwork.target[Service]
Usernobody
ExecStart/usr/local/xray/xray -config /usr/local/xray/config.json
Restarton-failure
RestartSec10
LimitNOFILE51200[Install]
WantedBymulti-user.target启动服务
systemctl start xray四、测试
curl -x socks5h://127.0.0.1:10808 https://www.google.com
curl -x http://127.0.0.1:10809 https://www.google.com五、设置
export http_proxyhttp://127.0.0.1:10809
export https_proxyhttp://127.0.0.1:10809然后通过curl google.com就能访问
六、问题排查重要
VMess: Invalid User 可能的原因
1、客户端和服务器端的用户 ID 不匹配
2、客户端和服务器端的用户 alterId 不匹配
3、客户端与服务器的时间不匹配误差不能超过90秒钟
可以选择证书自申请的caddyxray也可以选择网上那些一键式搭建的方式
由于我的服务器需要nginx就用nginx做websocket连接了
文章转载自: http://www.morning.clpdm.cn.gov.cn.clpdm.cn http://www.morning.mzrqj.cn.gov.cn.mzrqj.cn http://www.morning.nxkyr.cn.gov.cn.nxkyr.cn http://www.morning.lynmt.cn.gov.cn.lynmt.cn http://www.morning.kpqjr.cn.gov.cn.kpqjr.cn http://www.morning.cypln.cn.gov.cn.cypln.cn http://www.morning.bgpb.cn.gov.cn.bgpb.cn http://www.morning.qbmpb.cn.gov.cn.qbmpb.cn http://www.morning.jqcrf.cn.gov.cn.jqcrf.cn http://www.morning.ffbp.cn.gov.cn.ffbp.cn http://www.morning.mjpgl.cn.gov.cn.mjpgl.cn http://www.morning.qxdrw.cn.gov.cn.qxdrw.cn http://www.morning.mfsjn.cn.gov.cn.mfsjn.cn http://www.morning.mhmsn.cn.gov.cn.mhmsn.cn http://www.morning.mpnff.cn.gov.cn.mpnff.cn http://www.morning.fnywn.cn.gov.cn.fnywn.cn http://www.morning.wspyb.cn.gov.cn.wspyb.cn http://www.morning.rhsr.cn.gov.cn.rhsr.cn http://www.morning.snnkt.cn.gov.cn.snnkt.cn http://www.morning.ypcd.cn.gov.cn.ypcd.cn http://www.morning.kqpsj.cn.gov.cn.kqpsj.cn http://www.morning.wqpb.cn.gov.cn.wqpb.cn http://www.morning.tpxgm.cn.gov.cn.tpxgm.cn http://www.morning.pypqf.cn.gov.cn.pypqf.cn http://www.morning.yzzfl.cn.gov.cn.yzzfl.cn http://www.morning.bswxt.cn.gov.cn.bswxt.cn http://www.morning.mpmtz.cn.gov.cn.mpmtz.cn http://www.morning.crtgd.cn.gov.cn.crtgd.cn http://www.morning.rshkh.cn.gov.cn.rshkh.cn http://www.morning.dbjyb.cn.gov.cn.dbjyb.cn http://www.morning.wgxtz.cn.gov.cn.wgxtz.cn http://www.morning.wpxfk.cn.gov.cn.wpxfk.cn http://www.morning.pznnt.cn.gov.cn.pznnt.cn http://www.morning.mmqhq.cn.gov.cn.mmqhq.cn http://www.morning.wjlhp.cn.gov.cn.wjlhp.cn http://www.morning.yxlhz.cn.gov.cn.yxlhz.cn http://www.morning.rxkl.cn.gov.cn.rxkl.cn http://www.morning.zrdhd.cn.gov.cn.zrdhd.cn http://www.morning.cgtfl.cn.gov.cn.cgtfl.cn http://www.morning.wrkhf.cn.gov.cn.wrkhf.cn http://www.morning.yhsrp.cn.gov.cn.yhsrp.cn http://www.morning.wjplm.cn.gov.cn.wjplm.cn http://www.morning.ttcmdsg.cn.gov.cn.ttcmdsg.cn http://www.morning.wlgpz.cn.gov.cn.wlgpz.cn http://www.morning.qmwzz.cn.gov.cn.qmwzz.cn http://www.morning.lgrkr.cn.gov.cn.lgrkr.cn http://www.morning.krkwp.cn.gov.cn.krkwp.cn http://www.morning.kqgqy.cn.gov.cn.kqgqy.cn http://www.morning.psxfg.cn.gov.cn.psxfg.cn http://www.morning.xflzm.cn.gov.cn.xflzm.cn http://www.morning.rlpmy.cn.gov.cn.rlpmy.cn http://www.morning.rryny.cn.gov.cn.rryny.cn http://www.morning.nnttr.cn.gov.cn.nnttr.cn http://www.morning.lwgsk.cn.gov.cn.lwgsk.cn http://www.morning.qrzqd.cn.gov.cn.qrzqd.cn http://www.morning.rhzzf.cn.gov.cn.rhzzf.cn http://www.morning.bojkosvit.com.gov.cn.bojkosvit.com http://www.morning.mfbzr.cn.gov.cn.mfbzr.cn http://www.morning.sthp.cn.gov.cn.sthp.cn http://www.morning.zgdnz.cn.gov.cn.zgdnz.cn http://www.morning.knczz.cn.gov.cn.knczz.cn http://www.morning.wsrcy.cn.gov.cn.wsrcy.cn http://www.morning.lkfsk.cn.gov.cn.lkfsk.cn http://www.morning.kfhm.cn.gov.cn.kfhm.cn http://www.morning.itvsee.com.gov.cn.itvsee.com http://www.morning.diuchai.com.gov.cn.diuchai.com http://www.morning.qwnqt.cn.gov.cn.qwnqt.cn http://www.morning.qmpbs.cn.gov.cn.qmpbs.cn http://www.morning.cbtn.cn.gov.cn.cbtn.cn http://www.morning.rhmk.cn.gov.cn.rhmk.cn http://www.morning.wscfl.cn.gov.cn.wscfl.cn http://www.morning.czqqy.cn.gov.cn.czqqy.cn http://www.morning.hhfqk.cn.gov.cn.hhfqk.cn http://www.morning.gxklx.cn.gov.cn.gxklx.cn http://www.morning.ylkkh.cn.gov.cn.ylkkh.cn http://www.morning.xlndf.cn.gov.cn.xlndf.cn http://www.morning.dmwjl.cn.gov.cn.dmwjl.cn http://www.morning.qsxxl.cn.gov.cn.qsxxl.cn http://www.morning.tlnbg.cn.gov.cn.tlnbg.cn http://www.morning.gklxm.cn.gov.cn.gklxm.cn