Comments (4)
这是我目前配置,使用Nignx反代xray,客户端使用websock协议连接xray,如果是192.168网端的流量转发到内网服务器。这样连上xray既能科学上网,又能内网穿透。
目前科学上网非常稳定,但是内网穿透经常断连,尝试把内网服务器和公网服务器直接的连接协议也改成websocket,但是始终不成功。
{
"reverse": {
"portals": [
{
"tag": "portal",
"domain": "xxxx.com"
}
]
},
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
],
"inbounds": [
{
"tag": "nas_web",
"port": xxxx,
"protocol": "dokodemo-door",
"settings": {
"address": "0.0.0.0",
"port": xxxx,
"network": "tcp"
}
},
{
"tag": "proxy",
"port": xxxx,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "xxxxxxxxxx",
"alterId": 0
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/xxxx/"
}
}
},
{
"tag": "tunnel",
"port": xxxxx,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "xxxxxx"
}
]
}
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": [
"nas_web"
],
"outboundTag": "portal"
},
{
"ip": [
"192.168.0.0/16"
],
"type": "field",
"inboundTag": [
"proxy"
],
"outboundTag": "portal"
},
{
"type": "field",
"inboundTag": [
"tunnel"
],
"domain": [
"xxxxx.com"
],
"outboundTag": "portal"
}
]
}
}
from xray-examples.
from xray-examples.
https://github.com/XTLS/Xray-examples/tree/main/ReverseProxy/VLESS-TCP-XTLS-WS close as solved
from xray-examples.
请问一下,这样通过fallback回落到ws端口上,但是我看ws那里的加密设置是"security": "none"
,那这样内网穿透流量是不是就相当于裸奔了?这样不会有安全问题吗
from xray-examples.
Related Issues (20)
- Certificate expired, forgot to regenerate it. HOT 2
- listen:0.0.0.0 这个配置项是可选的么? HOT 2
- trajan+ws+tls fallback,浏览器访问返回404 HOT 1
- 谁给个 TCP/Socks + QUIC 的配置文件? HOT 3
- 谁能提供一下vless+vision+reality的配置文件? HOT 4
- VLESS-gRPC-REALITY 可以搭配 nginx 吗? HOT 2
- 萌新求助:dokodemo->trojan TLS无法生效是明文的问题 HOT 1
- Reverse SSH Port Forwarding SOCKS as Outbound HOT 1
- Config request HOT 1
- 客户端怎么配置 HOT 1
- VLESS WSS NGINX HOT 2
- VLESS TCP XTLS VISITION明显速度比VLESS TCP TLS慢啊,这正常么? HOT 10
- 客户端出站vmess+tcp+tls 服务器入站vmess+tcp+tls. 连接失败,附带配置,求高人指点迷津。 HOT 71
- VLESS-TCP-XTLS-Vision-REALITY 示例中的网站不支持tls1.3 HOT 6
- VLESS-mKCPSeed服务端配置config_server.json有误 HOT 1
- 'VLESS-TCP-XTLS-WHATEVER' does not work in XRAY server HOT 1
- grpc reality无法回落到vm ws上 HOT 1
- 使用grpc API添加vless+reality+version入站协议,运行时报错failed to dial dest: dial: unknown network求助 HOT 2
- restore 'VLESS-TCP-XTLS-WHATEVER' HOT 1
- Remove Content Based Package Restrictions? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xray-examples.