[PR #96] [MERGED] FEAT: added additional arguments for create/update firewall rules #94

Closed
opened 2026-02-27 23:19:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sophos/sophos-firewall-sdk/pull/96
Author: @mamullen13316
Created: 9/8/2025
Status: Merged
Merged: 9/8/2025
Merged by: @mamullen13316

Base: mainHead: fw_rule_update


📝 Commits (1)

  • e96700b added additional arguments for create/update firewall rules

📊 Changes

6 files changed (+243 additions, -4 deletions)

View changed files

📝 pyproject.toml (+1 -1)
📝 sophosfirewall_python/firewallapi.py (+42 -0)
📝 sophosfirewall_python/firewallrule.py (+71 -0)
📝 sophosfirewall_python/templates/createfwrule.j2 (+64 -1)
📝 sophosfirewall_python/templates/updatefwrule.j2 (+63 -0)
📝 sophosfirewall_python/tests/functional.py (+2 -2)

📄 Description

Added support for the following arguments for creating and updating firewall rules:

        web_filter(str): Name of the web filter policy to apply
        web_category_traffic_shaping(str): Name of the web category traffic shaping policy to apply
        block_quic(str): Enable/Disable QUIC blocking
        scan_virus(str): Enable/Disable virus scanning
        proxy_mode(str): Enable/Disable proxy mode
        decrypt_https(str): Enable/Disable HTTPS decryption
        source_security_heartbeat(str): Enable/Disable source security heartbeat
        minimum_source_hb_permitted(str): Minimum source heartbeat permitted
        dest_security_heartbeat(str): Enable/Disable destination security heartbeat
        minimum_dest_hb_permitted(str): Minimum destination heartbeat permitted
        application_control(str): Enable/Disable application control
        application_base_qos_policy(str): Name of the application base QoS policy to apply
        intrusion_prevention(str): Enable/Disable intrusion prevention
        qos_policy(str): Name of the QoS traffic shaping policy to apply
        dscp_marking(str): DSCP marking value
        scan_smtp(str): Enable/Disable SMTP scanning
        scan_smtps(str): Enable/Disable SMTPS scanning
        scan_imap(str): Enable/Disable IMAP scanning
        scan_imaps(str): Enable/Disable IMAPS scanning
        scan_pop3(str): Enable/Disable POP3 scanning
        scan_pop3s(str): Enable/Disable POP3S scanning

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sophos/sophos-firewall-sdk/pull/96 **Author:** [@mamullen13316](https://github.com/mamullen13316) **Created:** 9/8/2025 **Status:** ✅ Merged **Merged:** 9/8/2025 **Merged by:** [@mamullen13316](https://github.com/mamullen13316) **Base:** `main` ← **Head:** `fw_rule_update` --- ### 📝 Commits (1) - [`e96700b`](https://github.com/sophos/sophos-firewall-sdk/commit/e96700b13d7c35aa28949da681516b4daacb5b9f) added additional arguments for create/update firewall rules ### 📊 Changes **6 files changed** (+243 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `pyproject.toml` (+1 -1) 📝 `sophosfirewall_python/firewallapi.py` (+42 -0) 📝 `sophosfirewall_python/firewallrule.py` (+71 -0) 📝 `sophosfirewall_python/templates/createfwrule.j2` (+64 -1) 📝 `sophosfirewall_python/templates/updatefwrule.j2` (+63 -0) 📝 `sophosfirewall_python/tests/functional.py` (+2 -2) </details> ### 📄 Description Added support for the following arguments for creating and updating firewall rules: web_filter(str): Name of the web filter policy to apply web_category_traffic_shaping(str): Name of the web category traffic shaping policy to apply block_quic(str): Enable/Disable QUIC blocking scan_virus(str): Enable/Disable virus scanning proxy_mode(str): Enable/Disable proxy mode decrypt_https(str): Enable/Disable HTTPS decryption source_security_heartbeat(str): Enable/Disable source security heartbeat minimum_source_hb_permitted(str): Minimum source heartbeat permitted dest_security_heartbeat(str): Enable/Disable destination security heartbeat minimum_dest_hb_permitted(str): Minimum destination heartbeat permitted application_control(str): Enable/Disable application control application_base_qos_policy(str): Name of the application base QoS policy to apply intrusion_prevention(str): Enable/Disable intrusion prevention qos_policy(str): Name of the QoS traffic shaping policy to apply dscp_marking(str): DSCP marking value scan_smtp(str): Enable/Disable SMTP scanning scan_smtps(str): Enable/Disable SMTPS scanning scan_imap(str): Enable/Disable IMAP scanning scan_imaps(str): Enable/Disable IMAPS scanning scan_pop3(str): Enable/Disable POP3 scanning scan_pop3s(str): Enable/Disable POP3S scanning --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 23:19:01 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sophos-firewall-sdk#94
No description provided.