顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== 安裝 fail2ban Agent 的方式 ====== * 返回 [[tech:librenms]] * 這是 SNMP Extend * 至 fail2ban 主機內安裝 <code sh> wget https://github.com/librenms/librenms-agent/raw/master/snmp/fail2ban -O /etc/snmp/fail2ban chmod +x /etc/snmp/fail2ban </code> * 確認 fail2ban 可以正確執行<code sh> /etc/snmp/fail2ban</code> 如果正確執行應該可以看到類似的訊息<cli> {"version":"1","error":"0","errorString":"fail2ban-client exited with 0","data":{"jails":{"roundcube-iredmail":"0","postfix-pregreet-iredmail":"1","postfix-iredmail":"0","dovecot-iredmail":"0","sshd":"0","nginx-http-auth":"0"},"total":1}} </cli> * 修改 snmpd 設定<code> vi /etc/snmp/snmpd.conf</code><file> : extend fail2ban /etc/snmp/fail2ban </file>重新啟動 snmpd <code sh> systemctl restart snmpd </code> ===== 參考網址 ===== * https://docs.librenms.org/Extensions/Applications/#fail2ban {{tag>librenms agent snmp_ext}} tech/librenms/fail2ban_agent.txt 上一次變更: 2021/01/16 14:41由 jonathan