• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Why is it the default setting to allow remote connections to databases?

hschramm

Basic Pleskian
Hi,

before opening a bug report, I want to know, why it is the default setting of all databases / db users to allow access from remote in the plesk ui. I know that per default the bind-address param of mysql is set to localhost, but think about the following scenario:

- Let 100 Users create their databases not caring about the default setting "allow remote connections from all"
- The mysql bind-address param is set to localhost (so nobody has remote access to the mysql)
- One user wants to access his db from remote
-> you have to reconfigure the mysql bind-address to 0.0.0.0 (or comment it out)
- Now 99 Users have a broader security risk in getting bruteforced for their databases

From my understanding the correct default value in plesk ui should be "only local connections"

Kind regards,
Holger
 
I don't believe this is actually the default setting. At least not on any of my Plesk installations. As @john0001 pointed out you can change the default setting for remote access via Tool & Settings > Database Servers > Settings.

Schermafbeelding 2021-07-10 om 11.13.51.png
 
@hschramm The default MariaDB my.cnf setting is a bind to localhost only. So even if Plesk had it set to allow for all, the database should still remain inaccessible unless my.cnf is changed to bind = ::.
 
You should also have p3306 blocked from 0.0.0.0/0 anyways....if you need remote access do it over a secured tunnel.
 
Back
Top