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
Methods
OpenPortsAsync(IReadOnlyList<int>, bool)
Opens the specified TCP ports on the host firewall.
public static Task<InstallResult> OpenPortsAsync(IReadOnlyList<int> ports, bool prompt = true)
Parameters
portsIReadOnlyList<int>Port numbers to open.
promptboolWhen true, prompts for confirmation before making changes.
Returns
- Task<InstallResult>
InstallResult indicating success or failure.