Skip to main content

Module firewall_setup

Module firewall_setup 

Source
Expand description

Run the elevated firewall helper when the person asks for the setup (docs/specs/SPEC_LAN_FIREWALL_SETUP_2026_10_01.md 4.2, step 3). The helper is agentmux.exe --configure-lan-firewall, in the install folder above this program’s own ({app}\runtime\agentmux-srv-<version>.exe, and the same in a portable folder). It reads the firewall without elevation and asks Windows for administrator permission itself, only when a change is needed, so this module never elevates anything. It is started by the person’s click and never by itself: a cancel is final until the next click.

Functions§

helper_exe
The helper that goes with the program at srv_exe, if its folder has one.
result_for
What the person is told for how the helper ended. code is its exit code (None: it was ended by something else), reason the last line it wrote to stderr.
run_blocking
Run the helper and say how it went. Blocks while Windows’ prompt is open: call it from a blocking task.