Skip to content

maddynenn/maddys_firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Hi! This is my personal firewall script that I created to experiment with networking and security!

The main functionality of the script is to send a message to IPs that are scanning the server, and after a certain suspicious number of scans, to block that IP. By blocking, I mean their SYN packets will be dropped. Also queries a database of known IPs and analyzes the threat level of each IP - blocking instantly if marked as malicious (AbuseIPDB)

Efficacy:

Before image

After image

HOW TO USE:

  • Create the firewall file in your Linux directory
  • Copy the Python code into said file
  • Create a .env file with an AbuseIPDB API key
  • Run python file_name
  • Install prompted necessary dependencies
  • Run python file_name
  • Watch as IPs try to scan your server, and see the firewall take action!

About

My personal, custom firewall script that automates rule generation for dropping suspicious SYN packets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages