https://github.com/uk0/mix_firewall
golang 调用 iptables firewall-cmd netsh 工具
https://github.com/uk0/mix_firewall
firewall-cmd iptables netsh
Last synced: 3 months ago
JSON representation
golang 调用 iptables firewall-cmd netsh 工具
- Host: GitHub
- URL: https://github.com/uk0/mix_firewall
- Owner: uk0
- Created: 2023-05-16T14:06:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T14:59:20.000Z (about 2 years ago)
- Last Synced: 2025-02-24T16:14:31.630Z (3 months ago)
- Topics: firewall-cmd, iptables, netsh
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### mix_firewall
#### 简易的pcap检测工具
#### TODO
* 支持Rego规则
* 支持多种协议 http tcp udp 的数据包内容检测#### 使用方法
* build and run
#### 自己改一下代码才能用
```go
const (
pcapDev = "en0" // 相关设备
packetLimit = 10 // 触发防火墙规则的数据包数量
cooldown = time.Second * 5 // 防火墙规则的冷却时间
)
```