We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
How to Change the SSH port number in Fail2Ban?
How to Change the SSH port number in Fail2Ban?
Hello,
I have changed default 22 SSH port number. Now I want Fail2Ban to detect newly added port number, not default SSH port number. Where and how can I change that? Thanks in advance.
I have changed default 22 SSH port number. Now I want Fail2Ban to detect newly added port number, not default SSH port number. Where and how can I change that? Thanks in advance.
Re: How to Change the SSH port number in Fail2Ban?
Hi,
Firewall section in the VestaCP gui
Firewall section in the VestaCP gui
Re: How to Change the SSH port number in Fail2Ban?
There is only "List Fail2Ban" link in Firewall section which shows blocked ip addresses by Fail2Ban.
Re: How to Change the SSH port number in Fail2Ban?
I clicked Add Rule:
Action: Accept / Drop
Protocol: TCP /UDP / ICMP
Port:
Ip address:
Comment:
Here there is no option to changed Fail2Ban SSH port. Though I have changed default SSH port to another 3310 port, Fail2Ban still checks default 22 Port.
Action: Accept / Drop
Protocol: TCP /UDP / ICMP
Port:
Ip address:
Comment:
Here there is no option to changed Fail2Ban SSH port. Though I have changed default SSH port to another 3310 port, Fail2Ban still checks default 22 Port.
Re: How to Change the SSH port number in Fail2Ban?
Code: Select all
Action: Accept
Protocol: TCP
Port: 3310
Ip address: 0.0.0.0/0
Comment: custom_ssh
Code: Select all
v-update-firewall
Re: How to Change the SSH port number in Fail2Ban?
ok, but how Fail2ban will check custom ssh port?
ACCEPT TCP / custom_ssh 3310 0.0.0.0/0
ACCEPT TCP / SSH 3310 0.0.0.0/0
I have researched on google, people change default ssh port for Fail2Ban in /etc/fail2ban/jail.conf and /etc/fail2ban/jail.local.
ACCEPT TCP / custom_ssh 3310 0.0.0.0/0
ACCEPT TCP / SSH 3310 0.0.0.0/0
I have researched on google, people change default ssh port for Fail2Ban in /etc/fail2ban/jail.conf and /etc/fail2ban/jail.local.
Re: How to Change the SSH port number in Fail2Ban?
No needed to set up fail2ban. its worked automatically
Re: How to Change the SSH port number in Fail2Ban?
I tested. Thank you very much.I delete banned ip address from list, but after restart it restores banned ip address again. Why is it so?