mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
ubridge: default the control transport to unix
Switch ubridge_control_transport from tcp (-H) to unix (-U), the AF_UNIX + SO_PEERCRED channel recommended on Linux for kernel-level peer authentication. tcp is retained as an opt-in for backward compatibility. Existing deployments that set the key explicitly are unaffected; only fresh installs / unset keys pick up the new default.
This commit is contained in:
parent
b8ac76f047
commit
5f4ac38434
@ -92,10 +92,11 @@ udp_end_port_range = 30000
|
||||
; uBridge executable location, default: search in PATH
|
||||
;ubridge_path = ubridge
|
||||
|
||||
; uBridge control channel transport: "tcp" (-H host:port, default) or "unix"
|
||||
; (-U socket_path; AF_UNIX + SO_PEERCRED, recommended on Linux for kernel-level
|
||||
; peer authentication). TCP now binds loopback by default.
|
||||
;ubridge_control_transport = tcp
|
||||
; uBridge control channel transport: "unix" (-U socket_path; AF_UNIX +
|
||||
; SO_PEERCRED, default — recommended on Linux for kernel-level peer
|
||||
; authentication) or "tcp" (-H host:port; retained for backward compatibility,
|
||||
; binds loopback).
|
||||
;ubridge_control_transport = unix
|
||||
|
||||
; Marker (traffic-insight) UDP sink: one listener per compute process that
|
||||
; receives uBridge MARK signals from every uBridge on this host.
|
||||
|
||||
@ -164,10 +164,11 @@ class ServerSettings(BaseModel):
|
||||
udp_start_port_range: int = Field(10000, gt=0, le=65535)
|
||||
udp_end_port_range: int = Field(30000, gt=0, le=65535)
|
||||
ubridge_path: str = "ubridge"
|
||||
# Transport for the uBridge hypervisor control channel. "tcp" (-H) is the
|
||||
# historical default; "unix" (-U, AF_UNIX + SO_PEERCRED) is recommended on
|
||||
# Linux for kernel-level peer authentication.
|
||||
ubridge_control_transport: UbridgeControlTransport = UbridgeControlTransport.tcp
|
||||
# Transport for the uBridge hypervisor control channel. "unix" (-U,
|
||||
# AF_UNIX + SO_PEERCRED) is the default — recommended on Linux for
|
||||
# kernel-level peer authentication. "tcp" (-H) is retained for backward
|
||||
# compatibility.
|
||||
ubridge_control_transport: UbridgeControlTransport = UbridgeControlTransport.unix
|
||||
# Marker (traffic-insight) UDP sink: one listener per compute process that
|
||||
# receives ubridge MARK signals from every ubridge on this host. The host
|
||||
# defaults to loopback because ubridge runs on the same host as the compute.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user