侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

20170327-小知识-fail2ban等

2023-11-20 星期一 / 0 评论 / 0 点赞 / 35 阅读 / 1347 字

1:tcpwrapper 显示誰连接我的ssh被禁止了: vim /etc/hosts.deny sshd: all : spawn (wall "sshd deny" %a) & 帮助: man h

1:tcpwrapper

显示誰连接我的ssh被禁止了:

vim /etc/hosts.deny

sshd: all : spawn (wall "sshd deny" %a ) &

帮助: man hosts.deny

通过日志的方法显示 如下:

防止ssh暴力破解

yum install  fail2ban 

vim /etc/fail2ban/

 

 

 

mac和ip绑定:

yum install  arp-scan

arp-scan -I eth0 -l | tail -n +3 | head -n -3 | awk '{print $2,$1}' >>/etc/ethers

for i in  {1..254};do grep -w 192.168.30.$i  /etc/ethers || "00.00.00.00.00.00 192.168.30.$i" >> /etc/ehters ;done

 

广告 广告

评论区