GithubHelp home page GithubHelp logo

juvenal-yescas / proxydetector-firewall Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 40 KB

Enter an IP list and generate an output of the proxies detected with the rules for different firewalls to be applied directly.

Home Page: https://lite.ip2location.com/database/px1-ip-country

License: MIT License

Python 100.00%
proxy firewall ip2location ip2location-database proxy-checker firewall-rules firewall-configuration vpn-connections proxy-connection tor-connection

proxydetector-firewall's Introduction

ProxyDetector Firewall logo

ProxyDetector Firewall

Protect your infrastructure from incoming or outgoing Proxy connections. An extra layer of security to your network..
Explore docs »

Report bug · Request feature


Actions Status Python 3 GitHub license

Table of contents

Description

ProxyDetector-Firewall is a script written in Python, enter an IP list and generate an output of the proxy detected with the rules for different firewalls to be applied directly.

Useful when it blocks the connection to improper sites and users bypass these rules using proxy.

The database used to recognize proxy can be obtained from :

Output formats supported:
  • Mikrotik
  • Cisco ACL
  • Cisco bit bucket
  • Linux iptables
  • Juniper Junos
  • CIDR

Soon more will be added

Prerequisites

  • Python3 and up
  • pip3
  • IP2Proxy - Proxy Detection Database

Installation

Clone the repository and enter its respective folder

pip3 install -r requirements.txt

Move your database IP2PROXY-P[xxxx].BIN to foder /data/ as IP2PROXY.BIN

├── proxydetectorfirewall
│   ├── data
│   │   └── IP2PROXY.BIN

Usage

usage: cli.py [-h] -i INPUT -f
              {iptables,mikrotik,cisco-acl,cidr,cisco-bitbucket,juniper-junos}
              [-o OUTPUT]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        File containing an ip list (default: None)
  -f {iptables,mikrotik,cisco-acl,cidr,cisco-bitbucket,juniper-junos}, --firewall {iptables,mikrotik,cisco-acl,cidr,cisco-bitbucket,juniper-junos}
                        Firewall, output format for the rules. (default: None)
  -o OUTPUT, --output OUTPUT
                        Output file with the rules to block the ip detected
                        as a proxy. (default: Output.txt)
python3 cli.py -i ExampleProxyList.txt -f cisco-acl -o output.txt
python3 cli.py -i ExampleProxyList.txt -f mikrotik -o mikrotik.txt
Check out a demo

Run tests

Tests on Github Action

The pytest module is necessary

pip -q install pytest

pytest
pytest tests/output_files_test.py

Build with

  • IP2Proxy - IP2Proxy Python Library
  • Python3 - Python is an interpreted, high-level, general-purpose programming language.

Wiki

More information on how to use this project on the Wiki

License

This project is licensed under the MIT License - see the LICENSE file for details.

proxydetector-firewall's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.