Skip to content

Commit

Permalink
Update firewall_configurator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
geeknik committed Jun 19, 2023
1 parent 150f4e1 commit cf3f792
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions security/firewall_configurator.py
@@ -1,4 +1,3 @@

import os

def configure_firewall():
Expand All @@ -24,5 +23,3 @@ def main():

if __name__ == "__main__":
main()
```
This script configures a basic firewall using iptables, allowing only loopback, established connections, and traffic on ports 22 (SSH), 80 (HTTP), and 443 (HTTPS). It then saves these rules so they persist after a reboot. Please note that this script needs to be run as root.

0 comments on commit cf3f792

Please sign in to comment.