Complete the code to define a firewall rule that blocks incoming traffic on port 80.
firewall_rule = {"action": "block", "port": [1], "direction": "inbound"}The firewall rule blocks incoming traffic on port 80, which is commonly used for HTTP web traffic.
Complete the code to allow only outbound traffic from the local network.
firewall_rule = {"action": "allow", "direction": [1], "source": "192.168.1.0/24"}The rule allows outbound traffic only, meaning data leaving the local network is permitted.
Fix the error in the firewall rule that should block all traffic except from IP 10.0.0.5.
firewall_rule = {"action": "block", "source": "[1]", "direction": "inbound"}Using "0.0.0.0/0" blocks all IP addresses. To allow only 10.0.0.5, this rule blocks everything else by default.
Fill both blanks to create a firewall rule that allows inbound HTTPS traffic only from a specific IP.
firewall_rule = {"action": "[1]", "port": [2], "source": "203.0.113.10", "direction": "inbound"}The rule allows inbound traffic on port 443 (HTTPS) from IP 203.0.113.10 only.
Fill all three blanks to define a firewall rule that allows outbound SMTP traffic to a trusted mail server.
firewall_rule = {"action": "[1]", "port": [2], "destination": "[3]", "direction": "outbound"}The rule allows outbound traffic on port 25 (SMTP) to the trusted mail server mail.trustedserver.com.