SunnyQuic outbound¶
Sunnyquic outbound configuration
example:
tag: proxy
type: sunnyquic
addr: "12.34.56.7:1089" # or "[12:ff::ff]:1089" for dualstack
password: "12345678"
username: "87654321"
server-name: "echo.free.beeceptor.com"
alpn: ["h3"]
initial-mtu: 1400
congestion-control: bbr
zero-rtt: true
over-stream: false # true for udp over stream, false for udp over datagram
Fields¶
tag¶
- Type:
string - Required: yes
Required label for this endpoint.
username¶
- Type:
string - Required: yes
username, must be the same as the server
password¶
- Type:
string - Required: yes
password, must be the same as the server
addr¶
- Type:
string - Required: yes
Shadowquic server address. example: 127.0.0.0.1:443, www.server.com:443, [ff::f1]:4443
extra-paths¶
- Type: list of
QuicPath - Required: no
- Default: (type default)
Additional paths for multipath quic IPV4 or IPv6 path are all fine. The noq backend opens extra paths as available. Once validated, they can carry stream data alongside the initial path when it is busy.
It's recommended to use IPV4 and IPV6 path together for dual stack network.
Each path will has a standalone socket. This can be alternative for port hoping
Assigning a bind interface is also supported for a path for link aggregation.
extra-paths:
- bind-addr: "eth0"
addr: "[12:ff::ff]:1089"
- bind-addr: "192.168,1.122:5678"
addr: "199.109.100.100:443"
- bind-addr: "192.168,1.122:0"
addr: "199.109.100.100:444" # if server has multiple bind listeners,
# you can add path to it
max-path-num¶
- Type:
u32 - Required: no
- Default:
12
Maximum number of paths for multipath quic, 0 for disabling multipath
server-name¶
- Type:
string - Required: yes
Server name, must be the same as the server jls_upstream domain name
alpn¶
- Type: list of
string - Required: no
- Default:
vec!["h3".into()]
Alpn of tls, default is ["h3"], must have common element with server
cert-path¶
- Type:
path(optional) - Required: no
Certificate path for tls
initial-mtu¶
- Type:
u16 - Required: no
- Default:
1300
Initial mtu, must be larger than min mtu, at least to be 1200. 1400 is recommended for high packet loss network. default to be 1300
congestion-control¶
- Type:
CongestionControl - Required: no
- Default:
bbr
Congestion control, default to "bbr", supported: "bbr", "new-reno", "cubic"
zero-rtt¶
- Type:
bool - Required: no
- Default:
true
Set to true to enable zero rtt, default to true
over-stream¶
- Type:
bool - Required: no
- Default:
false
Transfer udp over stream or over datagram. If true, use quic stream to send UDP, otherwise use quic datagram extension, similar to native UDP in TUIC
min-mtu¶
- Type:
u16 - Required: no
- Default:
1290
Minimum mtu, must be smaller than initial mtu, at least to be 1200. 1400 is recommended for high packet loss network. default to be 1290
keep-alive-interval¶
- Type:
DurationMs - Required: no
- Default:
0
Keep alive interval in milliseconds 0 means disable keep alive, should be smaller than 30_000(idle time). Disabled by default.
gso¶
- Type:
bool - Required: no
- Default:
true
Enable QUIC Generic Segmentation Offload (GSO).
Controls [quinn::TransportConfig::enable_segmentation_offload]. When supported, GSO reduces
CPU usage for bulk sends; unsupported environments may see transient startup packet loss.
Enabled by default
mtu-discovery¶
- Type:
bool - Required: no
- Default:
true
Enable auto MTU discovery, default to true For stable udp network, it's better to disable it and set a proper initial mtu
half-close-timeout¶
- Type:
u64 - Required: no
- Default:
60_000
Inactivity timeout after either TCP source reaches EOF, in milliseconds. Defaults to 60 seconds. Zero disables the timeout.
max-concurrent-bidi-streams¶
- Type:
u32 - Required: no
- Default:
500
Streams the peer may hold open concurrently. Each proxied request and
each UDP association holds one for its whole lifetime, so this is also
the ceiling on concurrent sessions over a single connection; a peer that
reaches it waits in open_bi until this side frees a stream. Worst-case
buffering is this multiplied by stream-receive-window. Default 500.
max-concurrent-uni-streams¶
- Type:
u32 - Required: no
- Default:
500
Unidirectional streams the peer may hold open concurrently. With
over-stream on, the peer's UDP replies travel over these. Default 500.
stream-receive-window¶
- Type:
u64 - Required: no
- Default:
crate::quic::MAX_STREAM_WINDOW
Bytes the peer may have in flight on one stream, and therefore the most this side can be made to buffer for it. The default is a 400 Mbit/s bandwidth-delay product over a 100 ms path. Default 5000000.
receive-window¶
- Type:
u64(optional) - Required: no
Bytes the peer may have in flight across every stream at once. Left out,
the transport's own default is kept, which is unlimited — so the only
bound on buffering is max-concurrent-bidi-streams multiplied by
stream-receive-window. Setting it caps that independently of the
stream count.
send-window¶
- Type:
u64(optional) - Required: no
Bytes this side may have in flight before it stalls waiting for acknowledgement. Left out, the transport's own default is kept.
dns¶
- Type:
string(optional) - Required: no
DNS service used to resolve destination domains after routing.
addr-resolver¶
- Type:
string(optional) - Required: no
DNS resolver used to resolve the server address.
cipher-suite-preference¶
- Type: list of
CipherSuitePreference(optional) - Required: no
Optional TLS 1.3 cipher suite preference. If unset, use the crypto provider's default preference order.
fw-mark¶
- Type:
u32(optional) - Required: no
fw_mark on linux
bind-interface¶
- Type:
Interface(optional) - Required: no
binding interface of this outgoing packet.
If bind_interface is set, the outgoing packet will be sent from the
specified interface. Recommend to use to cooporate with other tun based proxy like sing-box/mihomo
Example:
protect-path¶
- Type:
path(optional) - Required: no
Android Only. the unix socket path for protecting android socket