Skip to content

SunnyQuic server

Configuration of sunnyquic inbound

Example:

bind-addr: "0.0.0.0:1443"
users:
  - username: "zhangsan"
    password: "12345678"
server-name: "echo.free.beeceptor.com" # must be the same as client
alpn: ["h3"]
congestion-control: bbr
zero-rtt: true

Fields

bind-addr

  • Type: SocketAddr
  • Required: yes

Binding address. e.g. 0.0.0.0:443, [::1]:443

users

Users for client authentication

server-name

  • Type: string
  • Required: yes

Server name of the certificates

cert-path

  • Type: path
  • Required: yes

Certificate path for tls

key-path

  • Type: path
  • Required: yes

Private key path for tls

max-path-num

  • Type: u32
  • Required: no
  • Default: 12

Maximum number of paths for multipath quic, 0 for disabling multipath

alpn

  • Type: list of string
  • Required: no
  • Default: vec!["h3".into()]

Alpn of tls. Default is ["h3"], must have common element with client

zero-rtt

  • Type: bool
  • Required: no
  • Default: true

0-RTT handshake. Set to true to enable zero rtt. Enabled by default

congestion-control

Congestion control, default to "bbr", supported: "bbr", "new-reno", "cubic"

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

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

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

brutal

Brutal server configuration