Coder Social home page Coder Social logo

pstrap's Introduction

Introduction 简介

pstrap(Port Scanner Trap) listens on specific ports (trap ports, e.g., pretend to be a SSH server on tcp port 22) and deny all access from those IPs who connect these ports. It is a simple way to prevent port scanning. Only work with iptables.

pstrap(Port Scanner Trap)侦听特定的端口(陷阱端口,例如监听22 tcp 端口来伪装成SSH服务),并且会阻止连接这些端口的IP到本机的所有连接。这是一个阻止端口扫描的简单方法。 需要和iptables配合使用。

Configuration 配置

# /etc/pstrap/pstrap.ini
[DEFAULT]
trap_ports = 22,3389    # trap ports
db_file = /etc/pstrap/pstrapped.ini # file stores trapped IPs
log_file = /var/log/pstrap.log  # log file
trapped_duration = 10080    # minutes that a IP is trapped, after which the rule is deleted. set to zero to disable this function.

pstrap's People

Contributors

shishouyuan avatar

Stargazers

Aravind Babu 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.