[[firewall]] adds Windows Firewall rules that let your app’s traffic through: a server other computers connect to, or a program that is blocked by default. It needs installer.scope = "machine", like [[services]].
bach.toml
What to know
- Every rule allows traffic; Bach doesn’t write blocking rules.
- Setup adds the rule after the files are in place, deletes an older rule of the same name first (so an update never leaves two), and deletes it when the app is removed.
- The delete is narrowed by the rule’s program, direction, protocol and ports, so a rule of the same name that another program made stays.
- A setup file with
[[firewall]]can’t be an MSI. bach inspectlists each rule asFirewall.