Skip to content

Port Scanner Trap, a simple tool to prevent port scanning. 阻止端口扫描的简单工具。

License

Notifications You must be signed in to change notification settings

shishouyuan/pstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Port Scanner Trap, a simple tool to prevent port scanning. 阻止端口扫描的简单工具。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages