mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-26 20:29:03 +03:00
Add Snell protocol. Refactor MASQUE HTTP/2, Fair Queue. Update XHTTP, OpenVPN, Sudoku, Fallback. Fixes
This commit is contained in:
@@ -39,11 +39,14 @@
|
||||
"udp_keepalive_period": "30s",
|
||||
"udp_initial_packet_size": 0,
|
||||
"reconnect_delay": "5s",
|
||||
"congestion_controller": "bbr",
|
||||
"cwnd": 0,
|
||||
"tls": { // TLS fields for HTTP2
|
||||
"insecure": false,
|
||||
"cipher_suites": [],
|
||||
"curve_preferences": [],
|
||||
"fragment": false,
|
||||
"fragment_fallback_delay": "500ms",
|
||||
"record_fragment": false,
|
||||
"kernel_tx": false,
|
||||
"kernel_rx": false
|
||||
|
||||
13
examples/profiler/config.json
Normal file
13
examples/profiler/config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "info"
|
||||
},
|
||||
"services": [
|
||||
{
|
||||
"type": "profiler",
|
||||
"tag": "pprof",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 6060
|
||||
}
|
||||
]
|
||||
}
|
||||
46
examples/snell/client.json
Normal file
46
examples/snell/client.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "error"
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"type": "local",
|
||||
"tag": "default"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "mixed",
|
||||
"tag": "mixed-in",
|
||||
"listen_port": 7897
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "snell",
|
||||
"tag": "snell-out",
|
||||
"server": "example.com",
|
||||
"server_port": 8443,
|
||||
"psk": "your-secret-psk",
|
||||
"version": 4, // 1 | 2 | 3 | 4 | 5 (v5 falls back to v4)
|
||||
"reuse": true, // v4 only, reuse pooled connections
|
||||
"network": ["tcp", "udp"]
|
||||
// "obfs": {
|
||||
// "mode": "tls", // tls | http
|
||||
// "host": "bing.com"
|
||||
// }
|
||||
// Dial Fields
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"final": "snell-out",
|
||||
"default_domain_resolver": "default",
|
||||
"auto_detect_interface": true
|
||||
}
|
||||
}
|
||||
39
examples/snell/server.json
Normal file
39
examples/snell/server.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "error"
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"type": "local",
|
||||
"tag": "default"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "snell",
|
||||
"tag": "snell-in",
|
||||
"listen": "::",
|
||||
"listen_port": 8443,
|
||||
"psk": "your-secret-psk",
|
||||
"version": 4, // 4 | 5 (server supports v4/v5 only)
|
||||
"network": ["tcp", "udp"]
|
||||
// "obfs": {
|
||||
// "mode": "tls", // tls | http
|
||||
// "host": "bing.com"
|
||||
// }
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"final": "direct",
|
||||
"default_domain_resolver": "default",
|
||||
"auto_detect_interface": true
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,8 @@
|
||||
"multiplex": {
|
||||
"enabled": true,
|
||||
"max_connections": 8,
|
||||
"min_streams": 5
|
||||
"min_streams": 5,
|
||||
"max_streams": 0
|
||||
},
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
@@ -50,12 +51,12 @@
|
||||
"health_check": true,
|
||||
"quic": true,
|
||||
"congestion_controller": "bbr", // bbr, bbr_standard, bbr2, bbr2_variant, cubic, reno
|
||||
"bbr_profile": "standard", // standard, conservative, aggressive
|
||||
"cwnd": 32,
|
||||
"multiplex": {
|
||||
"enabled": true,
|
||||
"max_connections": 8,
|
||||
"min_streams": 5
|
||||
"min_streams": 5,
|
||||
"max_streams": 0
|
||||
},
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
}
|
||||
],
|
||||
"congestion_controller": "bbr", // bbr, bbr_standard, bbr2, bbr2_variant, cubic, reno
|
||||
"bbr_profile": "standard", // standard, conservative, aggressive
|
||||
"cwnd": 32,
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
|
||||
@@ -65,6 +65,8 @@
|
||||
"uplink_data_placement": "",
|
||||
"uplink_data_key": "",
|
||||
"uplink_chunk_size": 0,
|
||||
"congestion_controller": "", // h3 only: bbr, bbr_standard, bbr2, bbr2_variant, cubic, reno
|
||||
"cwnd": 0, // h3 only: initial congestion window in packets, default 32
|
||||
"server": "example.com",
|
||||
"server_port": 443,
|
||||
"download": {
|
||||
@@ -97,6 +99,8 @@
|
||||
"uplink_data_placement": "",
|
||||
"uplink_data_key": "",
|
||||
"uplink_chunk_size": 0,
|
||||
"congestion_controller": "", // h3 only: bbr, bbr_standard, bbr2, bbr2_variant, cubic, reno
|
||||
"cwnd": 0, // h3 only: initial congestion window in packets, default 32
|
||||
"server": "example.com",
|
||||
"server_port": 443,
|
||||
"tls": { // https://sing-box.sagernet.org/configuration/shared/tls/#outbound
|
||||
|
||||
@@ -51,6 +51,8 @@
|
||||
"seq_key": "",
|
||||
"uplink_data_placement": "",
|
||||
"uplink_data_key": "",
|
||||
"congestion_controller": "", // h3 only: bbr, bbr_standard, bbr2, bbr2_variant, cubic, reno
|
||||
"cwnd": 0, // h3 only: initial congestion window in packets, default 32
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user