差分

移動先: 案内検索

IAX-Fail2ban

116 バイト追加, 2013年6月25日 (火) 11:13
編集の要約なし
SIPでのFail2banは'''[[SIP-Fail2ban]]'''を参照してください。<br>
ここでの解説はSIPとIAXを併用するようになっています。ここでの解説はSIPとIAXを併用するようになっています。併用する場合にはインストール作業自体は、1度やればいいです。あたりまえですが。<br>
<br>
==fail2ban==
展開したディレクトリでインストールを実行します。
cd fail2ban-0.8.4
python ./setup.pyinstall
スタートアップ・スクリプトをコピーしておきます(CentOSなどRedHat系の場合の例)。
cp files/redhat-initd /etc/init.d/fail2ban install
==設定==
failregex = No registration for peer '.*' \(from <HOST>\)
Host <HOST> failed MD5 authentication
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
enabled = true
filter = asterisk-iax
action = iptables-sipiax[name=ASTERISK, protocol=all]
sendmail-whois[name=ASTERISK, dest=root, sender=fail2ban@example.net]
logpath = /var/log/asterisk/messages

案内メニュー

VoIp-Info.jp

HP Directplus -HP公式オンラインストア-