fail2ban freeswitch ip拦截

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拦截)