美文网首页
fail2ban freeswitch ip拦截

fail2ban freeswitch ip拦截

作者: 小狐记忆 | 来源:发表于2018-10-09 19:52 被阅读38次

freeswitch文档

https://freeswitch.org/confluence/display/FREESWITCH/Fail2Ban

/etc/fail2ban/jail.d/freeswitch.local

ignoreip = 127.0.0.0/8
maxretry  =   4    ; for a total of five failures
findtime  =  3600  ; based on empirical testing
bantime   =  1200  ; ban for 20m (which lets us pick up repeat offenders)

/etc/fail2ban/jail.conf

[freeswitch]

port     = 5060,5061
action   = %(banaction)s[name=%(__name__)s-tcp, port="%(port)s", protocol="tcp", chain="%(chain)s", actname=%(banaction)s-tcp]
           %(banaction)s[name=%(__name__)s-udp, port="%(port)s", protocol="udp", chain="%(chain)s", actname=%(banaction)s-udp]
logpath  = /usr/local/freeswitch/log/freeswitch.log
maxretry = 10

相关文章

网友评论

      本文标题:fail2ban freeswitch ip拦截

      本文链接:https://www.haomeiwen.com/subject/nxbyaftx.html