Adding firewall rule doesn't work — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberHosting

Adding firewall rule doesn't work

edited September 16 in General Discussion
I am not sure, if this is my bad or not but I tried to add a rule to open port 3306, so I can remotely connect to mySQL
I checked the port - it is still blocked.

What amI missing?
(Using digital Ocean) and checked the port using
https://networkappers.com/tools/open-port-checker

Comments

  • If you opened the port on the server and its still not accessible did you check if this is a port that DO allows?
    Cyberpanel Managed & Unmanaged Shared & VPS Hosting by Cyberpanel Experts.
    https://www.cyberhosting.org
    You can now earn with the Cyberhosting affiliate scheme. Join today
    https://www.cyberhosting.org/affiliates/
  • Hi, I didn't know that some port are not allowed (is there a list of allow port)
    Also, if you want to programmatic access the database (open connection)
    how do you do that?
    I thought that the way to do it is to open port 3306, is there any other way?
  • Service providers have their own rules and stipulations. You need to refer to what ports are open or closed for DO.

    Some you can set in the firewall in your control panel for your service provider. Others you need to request by support ticket.
    Cyberpanel Managed & Unmanaged Shared & VPS Hosting by Cyberpanel Experts.
    https://www.cyberhosting.org
    You can now earn with the Cyberhosting affiliate scheme. Join today
    https://www.cyberhosting.org/affiliates/
  • Yap, it seems you were right!

    I am using digitalOcean
    and I had to change the mysql cnf file from 127.0.0.1 to 0.0.0.0
    also I added a rule in the firewall of cyberpanel to open the port 3306 only to my IP (and to all)
    and I think the connection was success, also I think the cyberpanel security rule protect me a bit from the general opening of 3306 to all ip's.
    Thank you.
  • (And also had to open a new user in the database)
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!