Skip to content

golang 调用 iptables firewall-cmd netsh 工具

Notifications You must be signed in to change notification settings

uk0/mix_firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mix_firewall

简易的pcap检测工具

TODO

  • 支持Rego规则
  • 支持多种协议 http tcp udp 的数据包内容检测

使用方法

  • build and run

自己改一下代码才能用

const (
	pcapDev     = "en0"           // 相关设备
	packetLimit = 10              // 触发防火墙规则的数据包数量
	cooldown    = time.Second * 5 // 防火墙规则的冷却时间
)

About

golang 调用 iptables firewall-cmd netsh 工具

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages