Editing
Network Security
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'Firewall Logic' (Filtering Traffic):''' <syntaxhighlight lang="python"> def firewall_check(ip_address, port, is_encrypted): """ A simple rule-based packet filter. """ allowed_ports = [80, 443, 22] blocked_ips = ["192.168.1.50", "10.0.0.99"] if ip_address in blocked_ips: return "BLOCK: Source IP is on the Blacklist." if port not in allowed_ports: return f"BLOCK: Port {port} is closed for security." if port == 80 and not is_encrypted: return "WARNING: Allowing unencrypted web traffic (HTTP)." return "ALLOW: Traffic matches security policy." # Testing a suspicious request print(firewall_check("192.168.1.50", 443, True)) # This is how firewalls protect your home and business # from thousands of 'knocks' per day. </syntaxhighlight> ; Security Landmarks : '''The Morris Worm (1988)''' β The first major internet worm, which showed how a single bug could crash 10% of the early internet. : '''Stuxnet''' β A sophisticated cyber-weapon that used network security flaws to physically destroy nuclear centrifuges. : '''HTTPS Everywhere''' β The global movement that made encryption the default for all web traffic. : '''Wi-Fi Security (WPA3)''' β The latest standard for protecting wireless networks from "Packet Sniffing" and password cracking. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information