I've already performed these procedures, but the problem is that fail2ban does not block the attacks I'm receiving from the type below.
The lock only works if I do it manually.
2018-05-07 12:55:21.435487 [WARNING] sofia_reg.c:1737 SIP auth failure (REGISTER) on sofia profile 'LOCAL' for [5...@xxx.xxx.xxx.xxx] from ip 212.83.172.147
2018-05-07 12:55:21.455630 [WARNING] sofia_reg.c:1792 SIP auth challenge (REGISTER) on sofia profile 'LOCAL' for [9...@xxx.xxx.xxx.xxx] from ip 212.83.172.147
2018-05-07 12:55:21.575485 [WARNING] sofia_reg.c:1792 SIP auth challenge (REGISTER) on sofia profile 'LOCAL' for [21...@xxx.xxx.xxx.xxx] from ip 212.83.172.147
2018-05-07 12:55:21.875490 [WARNING] sofia_reg.c:2906 Can't find user [9...@xxx.xxx.xxx.xxx] from 212.83.172.147
You must define a domain called 'xxx.xxx.xxx.xxx' in your directory and add a user with the id="949" attribute
and you must configure your device to use the proper domain in it's authentication credentials.
2018-05-07 12:55:21.875490 [WARNING] sofia_reg.c:1737 SIP auth failure (REGISTER) on sofia profile 'LOCAL' for [9...@xxx.xxx.xxx.xxx] from ip 212.83.172.147
2018-05-07 12:55:21.875490 [WARNING] sofia_reg.c:2906 Can't find user [21...@xxx.xxx.xxx.xxx] from 212.83.172.147
You must define a domain called 'xxx.xxx.xxx.xxx' in your directory and add a user with the id="2133" attribute
and you must configure your device to use the proper domain in it's authentication credentials.
2018-05-07 12:55:21.875490 [WARNING] sofia_reg.c:1737 SIP auth failure (REGISTER) on sofia profile 'LOCAL' for [21...@xxx.xxx.xxx.xxx] from ip 212.83.172.147
2018-05-07 12:55:21.995486 [WARNING] sofia_reg.c:1792 SIP auth challenge (REGISTER) on sofia profile 'LOCAL' for [18...@xxx.xxx.xxx.xxx] from ip 212.83.172.147
2018-05-07 12:55:22.095484 [WARNING] sofia_reg.c:1792 SIP auth challenge (REGISTER) on sofia profile 'LOCAL' for [1...@xxx.xxx.xxx.xxx] from ip 212.83.172.147
2018-05-07 12:55:22.235506 [WARNING] sofia_reg.c:1792 SIP auth challenge (REGISTER) on sofia profile 'LOCAL' for [4...@xxx.xxx.xxx.xxx] from ip 212.83.172.147
2018-05-07 12:55:22.235506 [WARNING] sofia_reg.c:2906 Can't find user [18...@xxx.xxx.xxx.xxx] from 212.83.172.147