Skip to content

pravesh-kashyap-tech/Personal-Firewall-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firewall

DISCLAIMER: The following code is only for Ubuntu.

Features

  1. Block IP addresses
  2. Block access to certain ports
  3. Block specifed prefixes of IP address (to block networks)
  4. Block too many requests made by the same IP in a short period of time (user can specify threshold and time)

Steps to Run

  1. Type the following terminal command:
          iptables -I INPUT -d 192.168.0.0/24 -j NFQUEUE --queue-num 1
  2. Execute firewall.py using python3

Requirements

  1. netfilterqueue
  2. scapy

About

Develop a Personal Firewall using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages