Salut Magicalex
d'ac si j'ai bien comprit ton message _
Le mieux est lxc ? 😅
Salut MattProd
Déjà cool de reproduire le shema du réseau, je vais te redétailler le mien pour que l'on soit sûr, tout en donnant réponse à tes questions 🙂
En soit j'ai suivie le tuto pour l'intallation de pfsense : https://blog.zwindler.fr/2017/07/11/deploiment-de-proxmox-ve-5-sur-un-serveur-dedie-part-1/
et loué ma machine chez @Ikoula (d'ailleurs super offre en ce moment chez eux pour découvrir proxmox !) et pris mon nom de domaine chez OVH.
Je reprend ma petite config :
Un lxc debian 10 avec FiveM rien d'autre dessus pas de nginx php mysql etc ..
IP_FiveM : 192.168.10.20
Un lxc avec mariadb, Sous alpine3.10
Ip:192.168.10.11
Puis un autre Nginx : la en kvm mais juste parce que j'avais un bug sur le pass root {dans le début des config} je compte remettre en lxc mais vu que j'ai sué pour letsencrypt etc.. je patiente un coup :p
Ip: 192.168.10.12
Je n'ai pas de dns ni de dhcp {Pour le moment}
Question/Réponse: _la commande netstat -anp | grep 3306 sur le ct mariadb te retourne quoi ?
Oui il me dit qu'il tourne, j'aurai dut te le préciser :
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 431/mysqld
J'ai aussi mis ma config sur 0.0.0.0; Config complète en dessous:
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
# this is read by the standalone daemon and embedded servers
[server]
# this is only for the mysqld standalone daemon
[mysqld]
#skip-networking
# Galera-related settings
[galera]
# Mandatory settings
#wsrep_on=ON
#wsrep_provider=
#wsrep_cluster_address=
#binlog_format=row
#default_storage_engine=InnoDB
#innodb_autoinc_lock_mode=2
#
# Allow server to accept connections on all interfaces.
#
bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1
#innodb_flush_log_at_trx_commit=0
# this is only for embedded server
[embedded]
# This group is only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]
# This group is only read by MariaDB-10.3 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mariadb-10.3]
En vous remerciant tous.
Bon j"ai finalement réussie mon "bordel"
Pour mariadb sur alpine -> https://wiki.alpinelinux.org/wiki/MariaDB
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
# this is read by the standalone daemon and embedded servers
[server]
# this is only for the mysqld standalone daemon
[mysqld]
#skip-networking
# Galera-related settings
[galera]
# Mandatory settings
#wsrep_on=ON
#wsrep_provider=
#wsrep_cluster_address=
#binlog_format=row
#default_storage_engine=InnoDB
#innodb_autoinc_lock_mode=2
#
# Allow server to accept connections on all interfaces.
#
bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1
#innodb_flush_log_at_trx_commit=0
# this is only for embedded server
[embedded]
# This group is only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]
# This group is only read by MariaDB-10.3 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mariadb-10.3]
Pour les users de la base de donnée :
create database ma_base;
create user user@localhost identified by 'paswword';
grant all privileges on ma_base.* to user@localhost identified by 'password';
grant all privileges on ma_base.* to user@192.168.10.20 identified by 'password';
#Je suis pas sûr de cette règles mais dans le doute j'ai mis tout les conteneurs
grant all privileges on ma_base.* to user@192.168.10.12 identified by 'password';
flush privileges;
exit;
Voir si le jeux accepte la connexion