Configure firewall rules (allow, block, list rules)
Manages firewall rules to allow, block, list, or delete port and IP configurations.
/plugin marketplace add dsyorkd/system-admin/plugin install dsyorkd-system-admin@dsyorkd/system-adminConfigure firewall rules using the configure_firewall.py tool.
This command orchestrates the system-admin skill's firewall configuration tool.
Architecture:
Parse user request or $ARGUMENTS:
Invoke the configure_firewall.py tool:
python3 ./skills/system-admin/scripts/configure_firewall.py <action> [target] [OPTIONS]
Read the output and report changes made
Allow a port:
User: /configure-firewall allow 8080 --protocol tcp
Run: python3 ./skills/system-admin/scripts/configure_firewall.py allow 8080 --protocol tcp
Report port opened
Block an IP:
User: /configure-firewall block 192.168.1.100
Run: python3 ./skills/system-admin/scripts/configure_firewall.py block 192.168.1.100
Report IP blocked
List current rules:
User: /configure-firewall list
Run: python3 ./skills/system-admin/scripts/configure_firewall.py list
Display all firewall rules
Delete a rule:
User: /configure-firewall delete 8080
Run: python3 ./skills/system-admin/scripts/configure_firewall.py delete 8080
Report rule removed
allow - Open a portblock - Block IP or portlist - Show all rulesdelete - Remove a rulereset - Reset to defaults--protocol tcp|udp - Specify protocol (default: tcp)--source <IP> - Restrict to source IP--zone <zone> - Firewalld zone--permanent - Make rule persistentlist before making changes--permanent to persist across reboots--dry-run to preview changes