夜夜夜爽_日本老头与少妇作爱_欧美性高清肥妇喷潮_丰满放荡的寡妇精品一区二区 - 成人免费午夜视频69影院

易秋網(wǎng)絡(luò)旗下全球VPS測評站
云主機測評/獨立服務(wù)器測評/主機優(yōu)惠碼

#DA面板#Directadmin如何屏蔽ip阻止Brute Force Attack詳細(xì)教程

自從安裝了DA面板后,Brute Force Attack暴力破解DA后臺密碼就沒有停止過,或許見多了就不怪了,但是老是收到諸如此類的信息:Brute-Force Attack detected in service log from IP(s) 106.187.43.249,總不是一件讓人很愉快的事兒。

directadmin官方有教程,如何屏蔽ip阻止Brute ForceAttack

http://help.directadmin.com/item.php?id=380

以下我將官方的教程漢化下:
1)第一步,配置iptables,讓block_ip.sh生效,DA官方的iptables文件適用于CentOS/Fedora,目前沒有在Debian或者FreeBSD上測試,或許支持,或許不知道debian/FreeBSD。

cd /etc/init.d
mv iptables iptables.backup
wget http://files.directadmin.com/services/all/iptables
chmod 755 iptables*** 注意,ipables默認(rèn)開啟的ssh端口是22,如果你的ssh端口不是22,請手動修改iptables設(shè)置。

*** 注意,ipables默認(rèn)開啟的ssh端口是22,如果你的ssh端口不是22,請手動修改iptables設(shè)置。啟動iptables:

/etc/init.d/iptables restart

2) 第二步,安裝block_ip.sh腳本,block_ip.sh格式可以在found here找到 .

cd /usr/local/directadmin/scripts/custom
wget http://files.directadmin.com/services/all/block_ip.sh
wget http://files.directadmin.com/services/all/show_blocked_ips.sh
wget http://files.directadmin.com/services/all/unblock_ip.sh
chmod 700 block_ip.sh show_blocked_ips.sh unblock_ip.sh

3)創(chuàng)建blocked_ips文本:

touch /root/blocked_ips.txt
touch /root/exempt_ips.txt

去DA后臺操作下Home–>Brute Forece Monitor–>IP info–>Blcok this IP.

4)自動封IP:

vi /usr/local/directadmin/scripts/custom/brute_force_notice_ip.sh

添加內(nèi)容:

#!/bin/sh
SCRIPT=/usr/local/directadmin/scripts/custom/block_ip.sh
ip=$value $SCRIPT
exit $?;

chmod 700 brute_force_notice_ip.sh


以下是FreeBSD相關(guān):

If you’re running FreeBSD with ipfw, you’d skip steps 2 and 3, and instead, add the following code to the file:

/usr/local/directadmin/scripts/custom/block_ip.sh
#!/bin/sh
echo “Blocking $ip with ipfw …<br>”;
ipfw add deny ip from $ip to any
exit $?

and don’t forget to chmod the block_ip.sh to 755.

贊(2) 打賞
版權(quán)歸求VPS所有,未經(jīng)允許不準(zhǔn)轉(zhuǎn)載!求VPS » #DA面板#Directadmin如何屏蔽ip阻止Brute Force Attack詳細(xì)教程
【聲明】:求VPS,易秋網(wǎng)絡(luò)旗下專業(yè)VPS測評站,主要側(cè)重篩選全球質(zhì)量比較好的VPS、云主機以及獨立服務(wù)器,并且進(jìn)行簡單測評,僅供參考。因為全國網(wǎng)絡(luò)差異較大,求VPS的VPS以及獨立服務(wù)器測評數(shù)據(jù)僅對當(dāng)時的測評環(huán)境有效。求VPS不強制網(wǎng)友購買本站介紹的VPS以及獨立服務(wù)器資源,如果網(wǎng)友購買了本站介紹的資源,風(fēng)險自擔(dān)!

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

微信掃一掃打賞