How can your school let you browse the web but block an outside connection?
You can open a revision website from a computer at school. Meanwhile, a device outside the school tries to start a connection into the network and gets no access. How can the school let one connection through and stop the other?
Think about signing in to your school portal. Authentication checks your claimed identity, for example by checking your password. Encryption protects the contents of a message so someone who intercepts it can't read it without the right key. Schools need both kinds of protection to keep private information such as your grades secure.
Follow the request from the device outside. It's trying to start a connection into the school, so it's inbound. The firewall checks the request against a rule that blocks new inbound connections. The rule matches, so the request stops at the firewall.
An outside device tries to start an encrypted connection into the school. The firewall rule blocks all new inbound connections. What does the firewall do with this request? Pick the answer that follows the rule.
These rules cover new connections, so replies are handled separately. First, block new inbound requests. Next, allow new outbound requests using T C P with destination port four four three, commonly used for secure websites. If neither of those rules matches, block the request.
Now start at a school computer. Its new request uses T C P and is aimed at port four four three. It heads out to a revision website, so the inbound rule doesn't match. The outbound rule matches both the protocol and the destination port. The firewall lets the request leave.
This time, a classroom computer sends a new outbound T C P request to port eighty. The allow rule is still only for outbound T C P requests to port four four three. Pick what the firewall does with this request.
Encryption makes a message unreadable without the right key. Firewall rules decide whether traffic can pass. Here's the common mistake: assuming an allowed file is safe. Our rule checks direction, protocol and destination port. A harmful file can still arrive over a connection that the rule allows.
On school Wi-Fi, MAC address filtering can let a laptop join if its network adapter's address is on the approved list. The firewall checks whether traffic can pass under its rules. Authentication still checks your portal sign-in, and encryption protects the messages you exchange with the portal.