remove default login port 2222

av_admin

Member
Joined
Apr 4, 2022
Messages
31
Hi
I changed my port login from 2222 to another one and added in CSF , but now I see warning of Brute Force attack
in https://www.shodan.io/host/ show me the open ports:
1650689037598.png
Is it possible to close or remove 2222 port number?
 
How to close?
I change the 2222 to 9879

I don't know what is the 3306 port ...
Yes. Close port 2222 in your firewall (CSF in your case?) and restart. What port did you change it into?

Also do you need port 3306 to be open?
 
3306 is MYSQL
probebly it's need for site using and it's not safe to close that...
But is it safe to change that port , so hackers coldent find that ?
becuse in monitoring the trafick last night , I saw that the CPU usage was around 100% in netdata , and with command find that was the mysql
 
Default PHP Application use port 3306, and if you want to change it, you need to make change your application too, also on DA, ..etc..
 
Default PHP Application use port 3306, and if you want to change it, you need to make change your application too, also on DA, ..etc..
I was under the impression that 3306 was only needed if the database was on a remote machine and that if they were on the same machine, the best approach would be to:

Add the following the my.cnf
Code:
bind-address = 127.0.0.1

And close port 3306

 
I was under the impression that 3306 was only needed if the database was on a remote machine and that if they were on the same machine, the best approach would be to:

Add the following the my.cnf
Code:
bind-address = 127.0.0.1

And close port 3306

You mean its safe to close that in this machine?
fine , I will do that.
Thanks for your reply BillyS
 
Back
Top