If your database or webhook receiver only accepts connections from listed addresses, allow the public address of the etlmcp server. When the server has that address configured, the Destinations page prints it under your list of destinations as Behind a firewall? Allow connections from followed by the address. Allow it on the port you entered for the destination, make sure the database accepts TLS, and press Test to check the rule.
What to allow
- Address. One public address: the one shown on the Destinations page. Every connection etlmcp makes to a PostgreSQL destination or a webhook comes from the server, so a rule for that address covers scheduled syncs, runs you start by hand and the Test button alike.
- Port. For PostgreSQL, the port set on the destination, which the form fills with PostgreSQL's usual port unless you enter another. For a webhook, the port in its URL.
- Direction. Inbound to your database or receiver. etlmcp opens the connection; your side never connects back.
TLS is required for PostgreSQL
etlmcp connects to PostgreSQL with sslmode=require by default, and a production server refuses to start with any setting other than require, verify-ca or verify-full. PostgreSQL's libpq documentation explains that with require the client attempts only an encrypted connection and never falls back to plain text. A server that does not offer SSL fails the connection even when the firewall rule is correct. Turn on SSL before you test.
Recognising etlmcp's sessions
Every session etlmcp opens sets application_name to etlmcp. In the pg_stat_activity view, the application_name column shows that value and client_addr shows the address the session came from, which should match the address on the Destinations page. A non-superuser sees full details only for sessions of roles it belongs to, so query the view as the etlmcp user, a superuser, or a member of pg_read_all_stats. This is also a quick way to confirm that a rule on a proxy or load balancer has not rewritten the source address.
What a blocked connection looks like
etlmcp resolves the host name you entered and tries each address it gets, with a connect timeout applied to each one. If a firewall silently drops the packets, every attempt waits out its timeout, and the run or test ends with an error that starts could not connect: followed by the driver's reason. etlmcp treats that error as temporary, so a scheduled run retries it; see retries. A firewall that rejects the connection outright fails faster with the same prefix.
Two failures are different and come back at once, without retries, because they mean the firewall let etlmcp through:
could not connect: authentication failed: the user name or password is wrong.could not connect: database does not exist: the database name is wrong.
For a webhook, a network failure ends in a message that starts webhook request failed:, and a transport error of that kind is also treated as temporary. The other messages are on webhook errors, and the PostgreSQL ones on PostgreSQL errors.
Private networks cannot be reached
Before connecting, etlmcp checks every address the host name resolves to. If any of them is private, loopback, link-local, reserved, or in the carrier-grade NAT range, the destination fails with host not allowed and no connection is attempted. A database that is reachable only inside a VPC, a private subnet or an office network cannot be used, whatever your firewall allows. Give it a public endpoint, restricted to the etlmcp address, instead. The full list of refused ranges is on host not allowed.
Testing a new rule
The Test button on the Destinations page connects from the same server as a real run. For PostgreSQL it opens a session, creates the table if it is missing, inserts one sample row and rolls the insert back, so nothing stays in your table. A success message names the PostgreSQL major version and the table that is ready to load. For a webhook it posts one sample row. Setup details are on the PostgreSQL destination and webhook destination pages.