Allow Mammoth through your firewall: IP address and ports
Database and file server connectors need Mammoth's servers to reach your systems over the internet. If your database, warehouse or SFTP server sits behind a firewall, add the IP address shown on the connector's connection form to your allowlist before you click Connect. OAuth connectors such as Google Drive, Salesforce, HubSpot and Shopify reach vendor-managed APIs and need no firewall rule on your side.
Which connectors need a firewall rule
These connectors connect directly to your systems. Their connection forms show a message with the IP address Mammoth connects from.
| Connector | Default port | Protocol |
|---|---|---|
| PostgreSQL | 5432 | TCP |
| MySQL | 3306 | TCP |
| SQL Server | 1433 | TCP |
| MongoDB | 27017 | TCP |
| Snowflake | 443 | HTTPS |
| Apache Hadoop | 10000 | TCP |
| Databricks | 443 | HTTPS |
| SAP HANA | 443 (form default); confirm with your admin | TCP |
| Oracle Database | 1521 | TCP |
| Amazon Redshift | 5439 | TCP |
| SFTP | 22 | SSH |
| SendGrid | 443 | HTTPS |
| Apache Kafka | Your brokers' ports | TCP |
These connectors also connect out to a server you run, so allow Mammoth through your firewall for them too. Their connection forms don't show the IP address (see Find Mammoth's IP address).
| Connector | Default port | Protocol |
|---|---|---|
| MQTT | 1883, or 8883 for TLS | TCP |
| Email (IMAP) | 993 (SSL/TLS) or 143 (STARTTLS) | TCP |
Google BigQuery and Parquet (Azure) connect over standard HTTPS and don't need a firewall rule in typical set-ups. See their sections below if you restricted access on your side.
Find Mammoth's IP address
When you connect one of the connectors in the first table, the connection form shows the IP address Mammoth connects from:
- Database forms: "Please make sure IP 203.0.113.10 is whitelisted in your database settings."
- The SFTP form: "Mammoth connects from IP 203.0.113.10. Add it to your server's allowlist if needed."
(203.0.113.10 is an example; use the address your form shows.) For MQTT and Email (IMAP), copy the address from another connector's form in the same workspace, or ask Mammoth support.
Allow that IP address in your firewall before you click Connect. In the examples below, <MAMMOTH_IP> stands for the address shown on the form.
Allow Mammoth to reach PostgreSQL
-
Open your
pg_hba.conffile (typically at/etc/postgresql/16/main/pg_hba.conf, where 16 is your version). -
Add a line for Mammoth's IP:
host your_database your_user <MAMMOTH_IP>/32 md5 -
Reload PostgreSQL:
sudo systemctl reload postgresql. -
If the server is behind a cloud security group (AWS, GCP, Azure), also open port 5432 inbound from Mammoth's IP in the security group.
Connect PostgreSQL through an SSH tunnel
If your PostgreSQL server is reachable only through an SSH bastion host:
- Open Connection options on the PostgreSQL form.
- Tick Connect through an SSH tunnel.
- Enter the SSH host, SSH port (default
22), SSH user, and a password or private key under SSH sign-in.
Mammoth then connects to the bastion, so allow Mammoth's IP on the bastion's SSH port instead of opening the database port. See the PostgreSQL connector.
Allow Mammoth to reach MySQL
-
Sign in to MySQL as an admin user.
-
Create a user that can connect from Mammoth's IP and grant it read access:
CREATE USER IF NOT EXISTS 'your_user'@'<MAMMOTH_IP>' IDENTIFIED BY 'password'; GRANT SELECT ON your_database.* TO 'your_user'@'<MAMMOTH_IP>'; -
Open port 3306 inbound in your firewall or cloud security group.
Allow Mammoth to reach SQL Server
- Open SQL Server Configuration Manager.
- Under SQL Server Network Configuration → Protocols, make sure TCP/IP is enabled.
- In your firewall or Windows Firewall, add an inbound rule allowing port 1433 from Mammoth's IP.
- For cloud-hosted instances (Azure SQL, AWS RDS), update the inbound security group rules too.
Allow Mammoth to reach MongoDB
- Open your
mongod.conffile. - Under
net:, make surebindIpallows connections from outside the host (or restrict access at the network level with a firewall). - Add an inbound rule allowing port 27017 from Mammoth's IP in your firewall or cloud security group.
- Give your MongoDB user at least
readaccess on the database.
Allow Mammoth to reach other databases and warehouses
| Connector | What to do |
|---|---|
| Oracle Database | Open port 1521 (or your listener's port) inbound from Mammoth's IP in your firewall or cloud security group. See the Oracle Database connector. |
| Amazon Redshift | Add an inbound rule for port 5439 (or your cluster's port) from Mammoth's IP to the cluster's VPC security group, and make sure the cluster is publicly reachable. See the Amazon Redshift connector. |
| Snowflake | If your account has a network policy that restricts IP access, add Mammoth's IP address to that policy's allowed IP list. |
| Apache Hadoop (Hive) | Open port 10000 inbound from Mammoth's IP in your firewall or cloud security group. |
| Databricks | If your workspace restricts access by IP, add Mammoth's IP address to the workspace's IP access list. See the Databricks connector. |
| SAP HANA | Open your HANA instance's listening port inbound from Mammoth's IP. The port varies by instance: confirm it with your HANA administrator. See the SAP HANA connector. |
| Google BigQuery | No firewall rule. BigQuery authenticates with a Google Cloud service account JSON key over HTTPS, and access is controlled by IAM permissions on the service account. |
| Parquet (Azure) | Reads from Azure Data Lake Storage over HTTPS. If you restricted the storage account with Azure storage firewalls or virtual networks, allow Mammoth's outbound IP address there. Contact Mammoth support to confirm the address for your workspace. |
Allow Mammoth to reach SFTP, Kafka, MQTT, IMAP and SendGrid
| Connector | What to do |
|---|---|
| SFTP | Open the port your SFTP server listens on (default 22) inbound from Mammoth's IP. For password sign-in, make sure the SFTP user exists and can read the directory. For key-based sign-in, see the SFTP connector. |
| Apache Kafka | Allow Mammoth's IP to reach every broker listed in Bootstrap Servers, on the ports in that list. See the Apache Kafka connector. |
| MQTT | Allow Mammoth's IP to reach your broker's port: 1883 by default, or 8883 for TLS. See the MQTT connector. |
| Email (IMAP) | Mammoth signs in over IMAP: port 993 for SSL/TLS (port 993) or 143 for STARTTLS (port 143). Hosted mail services such as Gmail need no firewall rule; a self-hosted mail server needs that port open to Mammoth's IP. See the Email (IMAP) connector. |
| SendGrid | If your account restricts API access by IP, add Mammoth's IP address (shown on the SendGrid connection form) to the allowed list. Otherwise Mammoth's requests to your account may be blocked. |
Use a custom port
If your database runs on a non-standard port, enter it in the Port field of the connection form, and make sure that port is open inbound from Mammoth's IP.
Test the connection after allowing the IP address
- Fill in the connection form.
- Click Connect.
Mammoth checks the credentials and saves the connection. If the check fails, the error message appears at the bottom of the form.
Troubleshooting firewall and network errors
| Symptom | Cause | Fix |
|---|---|---|
| An error at the bottom of the connection form after Connect | Mammoth's IP isn't in your allowlist | Add the IP shown on the form to your firewall, security group or network policy |
| The connection times out or is refused | The port isn't open | Open the port from the tables above, or your custom port, inbound from Mammoth's IP |
| Sign-in is refused although the IP is allowed | The database user can't connect from an external host | Allow the user to connect from Mammoth's IP (for example the MySQL 'your_user'@'<MAMMOTH_IP>' user, or a pg_hba.conf line) |
| The PostgreSQL server is only reachable through a bastion | The database port isn't public | Use Connect through an SSH tunnel and allow Mammoth on the bastion's SSH port |
For other connection problems, see Troubleshooting.
Related
- Connect a database or app: the connection form and connector workspace.
- Manage saved connections: health status and fixing a connection.
- Query a database and choose how it refreshes: what to do once you are connected.
- Security: how Mammoth protects your data.
Something wrong? support@mammoth.io