2.9 Ensure MariaDB is Bound to an IP Address

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version


By default, the MariaDB server accepts TCP/IP connections from MariaDB user accounts on all server host IPv6 and IPv4 interfaces. You can make this configuration more restrictive by setting the bind_address configuration option to a specific IPv4 or IPv6 address so that the server only accepts TCP/IP connections on that address.


Limiting the IP address provides additional controls and restrictions on how client applications can connect to MariaDB. If not configured to a specific IP all IPs for this server can be used to connect to MariaDB.


For example, to have the MariaDB server only accept connections on a specific IPv4 address, add an entry similar to this under the [mysqld] option group in MariaDB configuration files:


This setting typically appears in /etc/mysql/mariadb.conf.d/50-server.cnf.
In the case above, clients can connect to the server using --host= Connections on other server host addresses are not permitted.

Default Value:

Not set. On some linux variants (Ubuntu, Debian), bind_address is set to

See Also