Comments (1)
协议内部有关的字段要放在 "settings" 里 而不是直接放在单个入站里
{
"tag": "proxy1",
"protocol": "wireguard",
"settings": { // 以下均为wireguard出站的设置
"secretKey": "8GK9bioGPYkdL0ObYmQqe2iMsffKV9D9C7t9tP2heEU=",
"address": [
"10.9.9.7/32"
],
"peers": [
{
"endpoint": "10.25.25.1:11451",
"publicKey": "USRGaQ8uORcj4W42CAiQhiVFMFM4wgHw37wAcmzV2jo=",
"preSharedKey": "",
"keepAlive": 3,
"allowedIPs": [
"0.0.0.0/0"
]
}
],
"reserved": [
0,
0,
0
],
"mtu": 1420, // optional, default 1420
"workers": 1, // optional, default runtime.NumCPU()
"domainStrategy": "ForceIP"
}
}
这里有一个有效的范例出站(使用cloudflare warp) 以供参考
{
"protocol": "wireguard",
"settings": {
"secretKey": "QC7ExHptW1GIS7AD8pZY5Z3O31nA4c1VNvyHXsnCXFI=",
"address": [
"172.16.0.2/32"
],
"peers": [
{
"publicKey": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
"allowedIPs": [
"0.0.0.0/0"
],
"endpoint": "engage.cloudflareclient.com:2408"
}
],
"reserved": [43, 77, 229],
"mtu": 1280
},
"tag": "proxy1"
}
from xray-core.
Related Issues (20)
- Memory leak on "observed" node HOT 10
- feature request: fake SNI for iranian users HOT 7
- 转发到tor,关闭sniffer后dns无法解析,请问怎么解决,配置是默认的reality HOT 3
- Vision: 连接总是在服务端 connIdle 设置的 2 倍时间断线 HOT 18
- tls ech client and server configuration sample json file HOT 1
- Closed HOT 3
- Help with fallbacks HOT 1
- NTP client service HOT 1
- - HOT 1
- 关于文档中对sniffing和Tor的描述问题 HOT 12
- Quic sniffer 再次失效 HOT 2
- quic sniffer 失效 HOT 10
- iperf3: error - control socket has closed unexpectedly - when testing with xray HOT 17
- Invert Routing Rules HOT 9
- 发错地方了 HOT 1
- httpupgrade not working HOT 3
- ERR_SSL_Protocol_error in 1.8.11 with Vless-tls HOT 15
- MUX not working (unexpected EOF) HOT 1
- can't open video HOT 2
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-core.