- 论坛徽章:
- 0
|
服务器上面打开了pf防火墙,不过是挂的模块,没有重新编译内核,现在我也不知道防火墙是不是正常,大家帮我看看
ext_if="bge0"
web="{127.0.0.1}"
ports="{80}"
###block this IP if threads from the IP more than allowd###
table <abusive_hosts> persist
block in quick on $ext_if inet proto tcp from <abusive_hosts> to $web port 80
pass in quick on $ext_if proto tcp from any to $web port 80 flags S/SA keep \
state (max-src-conn 100, max-src-conn-rate 3/1, max-src-states 5 overload \
<abusive_hosts> flush)
就只用了这一点点配置,感觉好像连接还是挺多的,
www# pfctl -si
No ALTQ support in kernel
ALTQ related functions disabled
Status: Enabled for 0 days 00:19:27 Debug: Urgent
State Table Total Rate
current entries 0
searches 128597 110.2/s
inserts 0 0.0/s
removals 15 0.0/s
Counters
match 128597 110.2/s
bad-offset 0 0.0/s
fragment 0 0.0/s
short 0 0.0/s
normalize 0 0.0/s
memory 0 0.0/s
bad-timestamp 0 0.0/s
congestion 0 0.0/s
ip-option 0 0.0/s
proto-cksum 1 0.0/s
state-mismatch 0 0.0/s
state-insert 0 0.0/s
state-limit 0 0.0/s
src-limit 0 0.0/s
synproxy 0 0.0/s
后面的的rate越来越大啊,感觉很恐怖啊! |
|