Table of Contents

Class FirewallInstaller

Namespace
FishMMO.Installer
Assembly
FishMMO-Installer.dll

Automates host firewall rule creation for FishMMO server ports. Linux: ufw first, firewalld fallback. Windows: netsh.

public static class FirewallInstaller
Inheritance
FirewallInstaller
Inherited Members

Fields

DefaultPorts

Ports opened by the menu, and by a manifest that names none: HTTPS for the web servers, plus the UDP range NGINX's stream module listens on for QUIC game traffic (the same range as the install templates and the stream config generator). Port 80 is deliberately absent: the DNS challenge needs no HTTP, so nothing unencrypted is exposed. A host using the HTTP challenge must open 80/tcp itself.

public static readonly IReadOnlyList<FirewallPortSpec> DefaultPorts

Field Value

IReadOnlyList<FirewallPortSpec>

Methods

OpenPortsAsync(IReadOnlyList<FirewallPortSpec>, bool)

Opens the specified ports or port ranges on the host firewall.

public static Task<InstallResult> OpenPortsAsync(IReadOnlyList<FirewallPortSpec> ports, bool prompt = true)

Parameters

ports IReadOnlyList<FirewallPortSpec>

Rules to open; each is a single port or a range on TCP or UDP.

prompt bool

When true, prompts for confirmation before making changes.

Returns

Task<InstallResult>

InstallResult indicating success or failure.