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 when a manifest or menu does not name any: HTTP and HTTPS.
public static readonly IReadOnlyList<FirewallPortSpec> DefaultPorts
Field Value
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
portsIReadOnlyList<FirewallPortSpec>Rules to open; each is a single port or a range on TCP or UDP.
promptboolWhen true, prompts for confirmation before making changes.
Returns
- Task<InstallResult>
InstallResult indicating success or failure.