set_host_firewall
Enable or disable IPv4/IPv6 host firewalls and manage permit/deny rules for IP, ICMP, TCP, or UDP by remote address and port.
Instructions
Use the Firewall and IPv6 Firewall apps of a PC, laptop or server: switch each one on or off, add rules (permit or deny ip, icmp, tcp or udp, by remote address and port) and remove them. Returns both switches and the rules in the order the firewall evaluates them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ipv4 | No | Switch the IPv4 inbound firewall on or off. Omit to leave it as it is. | |
| ipv6 | No | Switch the IPv6 inbound firewall on or off. Omit to leave it as it is. | |
| port | No | Network port. Defaults to `FastEthernet0`. | |
| device | Yes | PC, laptop or server name. | |
| add_rules | No | Rules to add, in the order the firewall will evaluate them. | |
| remove_rules | No | Rules to remove; they must match an existing rule exactly. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ipv4 | Yes | ||
| ipv6 | Yes | ||
| port | Yes | ||
| device | Yes | ||
| ipv4_rules | Yes | IPv4 rules as the firewall lists them, in order. | |
| ipv6_rules | Yes |