diff --git a/macros/databases/ssh-bastion-mdb.mdx b/macros/databases/ssh-bastion-mdb.mdx
new file mode 100644
index 0000000000..b620e7b6e6
--- /dev/null
+++ b/macros/databases/ssh-bastion-mdb.mdx
@@ -0,0 +1,21 @@
+---
+macro: ssh-bastion-mdb
+---
+
+
+Managed MongoDB® is currently not compatible with the [Static NAT](/public-gateways/concepts/#nat) feature of [Scaleway Public Gateways](/public-gateways/concepts/#public-gateway). Instead, you can use Public Gateways' [SSH bastion](/public-gateways/how-to/use-ssh-bastion/) feature and perform port forwarding. Follow the steps below to connect using SSH bastion.
+
+
+If you want to connect locally to a Database Instance that is not accessible via the public internet, you can use SSH Bastion and connect it to the same Private Network the Database Instance is connected to.
+
+1. Open an SSH tunnel with port forwarding:
+
+ ```
+ ssh -L local_port:instance_id.network_id.internal:27017 bastion@gatewayIP -p 61000 -N
+ ```
+
+2. Connect using `mongosh`:
+
+ ```
+ mongosh --host localhost --port local_port --username "username"
+ ```
\ No newline at end of file
diff --git a/macros/databases/ssh-bastion.mdx b/macros/databases/ssh-bastion.mdx
new file mode 100644
index 0000000000..724a429ae9
--- /dev/null
+++ b/macros/databases/ssh-bastion.mdx
@@ -0,0 +1,21 @@
+---
+macro: ssh-bastion
+---
+
+
+Managed Databases for PostgreSQL and MySQL are currently not compatible with the [Static NAT](/public-gateways/concepts/#nat) feature of [Scaleway Public Gateways](/public-gateways/concepts/#public-gateway). Instead, you can use Public Gateways' [SSH bastion](/public-gateways/how-to/use-ssh-bastion/) feature and perform port forwarding. Follow the steps below to connect using SSH bastion.
+
+
+If you want to connect locally to a Database Instance that is not accessible via the public internet, you can use SSH bastion and connect it to the same Private Network the Database Instance is connected to.
+
+1. Open an SSH tunnel with port forwarding:
+
+ ```
+ ssh -L :: bastion@ -p -N
+ ```
+
+2. Connect using `psql`:
+
+ ```
+ psql -h localhost --port -d -U
+ ```
\ No newline at end of file
diff --git a/menu/navigation.json b/menu/navigation.json
index e347a21d35..b04c8a4d08 100644
--- a/menu/navigation.json
+++ b/menu/navigation.json
@@ -2269,6 +2269,10 @@
"label": "Connect to a Database Instance",
"slug": "connect-database-instance"
},
+ {
+ "label": "Connect a Database Instance to a Private Network",
+ "slug": "connect-database-private-network"
+ },
{
"label": "Create a database",
"slug": "add-a-database"
@@ -2341,10 +2345,6 @@
"label": "Apply scheduled maintenance",
"slug": "apply-maintenance"
},
- {
- "label": "Connect a Database Instance to a Private Network",
- "slug": "connect-database-private-network"
- },
{
"label": "Remove a public endpoint",
"slug": "remove-public-endpoint"
@@ -2535,6 +2535,10 @@
"label": "Quickstart",
"slug": "quickstart"
},
+ {
+ "label": "FAQ",
+ "slug": "faq"
+ },
{
"items": [
{
diff --git a/pages/managed-databases-for-postgresql-and-mysql/faq.mdx b/pages/managed-databases-for-postgresql-and-mysql/faq.mdx
index 32fe5b79da..019eb9f93e 100644
--- a/pages/managed-databases-for-postgresql-and-mysql/faq.mdx
+++ b/pages/managed-databases-for-postgresql-and-mysql/faq.mdx
@@ -143,4 +143,8 @@ Quotas exist to protect Scaleway from abuse, and to protect your Scaleway resour
When it comes to automatic data preservation, however, Scaleway prioritizes the resilience of your data. Therefore, if a Database Instance has autobackup set up, even if the quota is exceeded, the backup or snapshot will still be automatically created.
-You can monitor your [quotas](https://console.scaleway.com/organization/quotas), backups and snapshots via the Scaleway console or the API.
\ No newline at end of file
+You can monitor your [quotas](https://console.scaleway.com/organization/quotas), backups and snapshots via the Scaleway console or the API.
+
+## How can I connect to a Database Instance in a Private Network using Public Gateways?
+
+
\ No newline at end of file
diff --git a/pages/managed-databases-for-postgresql-and-mysql/how-to/connect-database-private-network.mdx b/pages/managed-databases-for-postgresql-and-mysql/how-to/connect-database-private-network.mdx
index 8387132928..6857d4e37f 100644
--- a/pages/managed-databases-for-postgresql-and-mysql/how-to/connect-database-private-network.mdx
+++ b/pages/managed-databases-for-postgresql-and-mysql/how-to/connect-database-private-network.mdx
@@ -57,11 +57,9 @@ You can create new Database Instances to attach to your Private Network, or atta
6. Click **Attach to Private Network** to conclude.
-
-Managed Databases for PostgreSQL and MySQL are currently not compatible with the [Static NAT](/public-gateways/concepts/#nat) feature of [Scaleway Public Gateways](/public-gateways/concepts/#public-gateway).
+## How to connect to a Database Instance through a Public Gateway
-You can use Public Gateways in [SSH bastion](/public-gateways/how-to/use-ssh-bastion/) mode and perform port forwarding.
-
+
## How to detach a Database Instance from a Private Network
diff --git a/pages/managed-mongodb-databases/faq.mdx b/pages/managed-mongodb-databases/faq.mdx
new file mode 100644
index 0000000000..fcae47e3b6
--- /dev/null
+++ b/pages/managed-mongodb-databases/faq.mdx
@@ -0,0 +1,15 @@
+---
+meta:
+ title: Managed MongoDB® FAQ
+ description: Learn about Managed MongoDB® and how to get started with your MongoDB® Database Instances.
+content:
+ h1: Managed MongoDB® FAQ
+dates:
+ validation: 2025-01-29
+category: managed-databases
+productIcon: MongoDBProductIcon
+---
+
+## How can I connect to a Database Instance in a Private Network using Public Gateways?
+
+
\ No newline at end of file
diff --git a/pages/managed-mongodb-databases/how-to/connect-database-private-network.mdx b/pages/managed-mongodb-databases/how-to/connect-database-private-network.mdx
index d4ac670bc2..f625fb9bf5 100644
--- a/pages/managed-mongodb-databases/how-to/connect-database-private-network.mdx
+++ b/pages/managed-mongodb-databases/how-to/connect-database-private-network.mdx
@@ -48,14 +48,14 @@ You can [create new Database Instances](/managed-mongodb-databases/how-to/create
6. Click **Attach to Private Network** to conclude.
-
-Managed MongoDB® is currently not compatible with the [Static NAT](/public-gateways/concepts/#nat) feature of [Scaleway Public Gateways](/public-gateways/concepts/#public-gateway). You can use Public Gateways in [SSH bastion](/public-gateways/how-to/use-ssh-bastion/) mode and perform port forwarding.
-
-
Once you have attached your Database Instance to a Private Network, you can [connect to the Database Instance](/managed-mongodb-databases/how-to/connect-database-instance) using the private endpoint connection string.
+## How to connect to a Database Instance through a Public Gateway
+
+
+
## How to detach a Database Instance from a Private Network
1. Click **MongoDB®** under **Managed Databases** on the side menu. A list of your Database Instances displays.