How to change mail port and Fail2Ban?
How to change mail port and Fail2Ban?
Good day..
Can anyone tell me how to change ports example "port25" and let Fail2ban work on that port?
example "port25" change to "port29" and let Fail2Ban check the new port?
iv already changed the port but Fail2Ban keep rolling back to defaults after restart!
or is there a better security option for VestaCp Mail?
what iv changed was:
usr/local/vesta/data/firewall/chains.conf
and
usr/local/vesta/data/firewall/ports.conf
but if i reboot or restart Fail2Ban it rolls back to:
so how to i solve that?
also how to i setup max Banned time 5days? and Ban on "max retry 2 " ?
Thanks
Can anyone tell me how to change ports example "port25" and let Fail2ban work on that port?
example "port25" change to "port29" and let Fail2Ban check the new port?
iv already changed the port but Fail2Ban keep rolling back to defaults after restart!
or is there a better security option for VestaCp Mail?
what iv changed was:
usr/local/vesta/data/firewall/chains.conf
Code: Select all
change: CHAIN='MAIL' PORT='25,465,587,2525,110,995,143,993' PROTOCOL='TCP'
to: CHAIN='MAIL' PORT='29,465,587,2525,110,995,143,993' PROTOCOL='TCP'
usr/local/vesta/data/firewall/ports.conf
Code: Select all
from: CHAIN='MAIL' PORT='25,465,587,2525,110,995,143,993' PROTOCOL='TCP'
To: CHAIN='MAIL' PORT='29,465,587,2525,110,995,143,993' PROTOCOL='TCP'
Code: Select all
CHAIN='MAIL' PORT='25,465,587,2525,110,995,143,993' PROTOCOL='TCP'
also how to i setup max Banned time 5days? and Ban on "max retry 2 " ?
Thanks