Code Monkey home page Code Monkey logo

firewall's Introduction

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. Fill out the rules in the JSON file as follows:

  3. Execute firewall.py using python3

Requirements

  1. netfilterqueue
  2. scapy

Credits:

  1. Meghana Holla : https://github.com/meghana-holla
  2. Ornella D'souza : https://github.com/Onurene

Author

  1. Email: [email protected]
  2. LinkedIn: https://www.linkedin.com/in/naklecha
  3. CodeChef: https://www.codechef.com/users/naklecha
  4. PYPI: https://pypi.org/user/naklecha
  5. GitHub: https://github.com/Naklecha
"Any suggestions would be appreciated"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.