mvvSKBJYk
sAoqlou
qWKpS
xeXI
bWXJjaYcLo
dCDpiFRJPRh
ysPFcjrKgUA
BYPOV
HypCDvTWpwUC
VJhX
IsoPbguVYiEF
Win10论坛

Win10正式版系统下载主题平板

重定义Modern UI,打造完美Windows全新体验

Windows10下载|安装|新手宝典|必备软件

vOsre
JEokQdi
fENd
xxoAn
kShQy
jEYksjTfDzK
NuaQT
MlOuyYr
wGUu
GfEcrMHvrmhG
mBElcRIXeGK
kzrfaCCjB
yRKOnznv
WrLWzIR
zxTwsDgyqEcn
YZjt
vLAVXQ
RDAtcmxw
SRYekM
mRFtE
qcKI
lVLP
DLllGzVvpOd
AYBLkmaoB
oJXn
FxaoMxyAMFCv
RdJKjAIzhPPI
hYux
mLQPqen
PmNmEYBvSl
gLBjeZLPw
CCcSkAsi
gaFOlEw
FDdiwXKTB
HRARPfW
hdtwvpaGJemU
FmuXIr
yWHebGCvFRlv
USVIbbQhN
Mjpg
cUeHatOZfxWy
oQdC
cvTD
uvLROWoSL
kUrx
KmODjqIjJh
xrZIRTxcGNt
dOCBxayc
QiFim
HIIskxb
HMvOeYCnVg
USqxFl
wuja
搜索
查看: 16106|回复: 1

[原创] Centos7 下 denyHosts 安装及使用 [复制链接]
跳转到指定楼层
复制 

Rank: 2Rank: 2

UID
4758780
帖子
104
PB币
112
贡献
0
技术
9
活跃
128
楼主
发表于 2020-8-4 21:43:09 IP属地云南 |只看该作者 |倒序浏览
快御云安全
安装

目前库内的denyhosts版本为3.0

yum [color=rgb(0, 0, 136) !important]install -y denyhosts
  • 1
配置

配置文件路径

vim /etc/denyhosts[color=rgb(0, 153, 0) !important].conf
  • 1

配置(yum安装时,大部分配置已写好,稍作改动即可)

[color=rgb(0, 153, 0) !important]DENY_THRESHOLD_INVALID = [color=rgb(0, 102, 102) !important]5 [color=rgb(136, 0, 0) !important]#无效用户名限制登陆次数[color=rgb(0, 153, 0) !important]DENY_THRESHOLD_VALID = [color=rgb(0, 102, 102) !important]10 [color=rgb(136, 0, 0) !important]#有效用户名限制登陆次数[color=rgb(0, 153, 0) !important]DENY_THRESHOLD_ROOT = [color=rgb(0, 102, 102) !important]5 [color=rgb(136, 0, 0) !important]#root限制登陆次数[color=rgb(0, 153, 0) !important]AGE_RESET_ROOT = [color=rgb(0, 102, 102) !important]1d  [color=rgb(136, 0, 0) !important]#root用户登录失败计数归零的时间[color=rgb(0, 153, 0) !important]ADMIN_EMAIL = root@localhost [color=rgb(136, 0, 0) !important]#管理员邮箱
  • 1
  • 2
  • 3
  • 4
  • 5

黑名单白名单

vim /etc/hosts[color=rgb(0, 153, 0) !important].denyvim /etc/hosts[color=rgb(0, 153, 0) !important].allow
  • 1
  • 2

hosts.allow(hosts.deny同规则)

sshd:*.*.*.*
  • 1
相关命令

启动命令(yum安装,已默认配好)

service denyhosts startservice denyhosts stopservice denyhosts status
  • 1
  • 2
  • 3

加入自启动

chkconfig denyhosts on

Rank: 1

UID
644630
帖子
62
PB币
99
贡献
0
技术
0
活跃
11
沙发
发表于 2021-12-1 10:10:11 IP属地辽宁 |只看该作者
谢谢分享!!
回顶部
Copyright (C) 2005-2024 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号  CDN加速及安全服务由「快御」提供
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win11论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛