Set up NodPulse
From checkout to a working site in five steps. You add your domain, prove you own it, run one command on your server (EchoNod), and point your DNS at NodPulse.
How it fits together
With EchoNod, visitors never connect to your server directly. Your domain points at the NodPulse gateway. The gateway passes each request to NodPulse relays, and a small agent on your server (the "origin") collects it from there and hands it to your web server on the same machine.
The agent only ever dials out. It opens no inbound port, so once everything works you can close your server's public web ports and its address stays out of your DNS.
- Your domain's A record points at the NodPulse gateway.
- The gateway holds the public HTTPS certificate for your domain and talks to visitors.
- The agent on your server connects out to the relays and forwards each request to your local web server over plain HTTP on the same machine.
Using Shield?
Shield cleans the traffic that reaches your site, but NodPulse still connects to your server at its public address, so that address is not hidden. There is nothing to install. For Shield you only do steps 1, 2 and 4: choose the plan, add your domain and pass the ownership check, then point the A record at the address the dashboard shows for your domain. Skip step 3. If you want your origin hidden, you need EchoNod.
What you need
- A domain you control, with access to its DNS settings (to add a TXT record and change the A record).
- EchoNod: A Linux server running your site: 64-bit x86 (amd64), with
systemd,curlandsha256sum(orshasum). The installer needssocat; on Debian and Ubuntu it installs it for you withapt-get, on other distributions installsocatfirst. - EchoNod: Root access on that server (the installer runs with
sudo). - EchoNod: Your site served over plain HTTP on the server itself, for example on
127.0.0.1:80or127.0.0.1:8080. The gateway handles HTTPS for visitors, so the agent talks to your web server over HTTP locally. See Site not on port 80?. - EchoNod: Outbound access from the server: HTTPS (TCP 443) to
api.nodpulse.comandnodpulse.com, and TCP 9444 to the NodPulse relays. No inbound ports are needed. - If your domain has a CAA record, it must allow
letsencrypt.org, or the HTTPS certificate cannot be issued. - EchoNod: A correct clock on the server. Use NTP (
timedatectlshould say "System clock synchronized: yes"). A badly wrong clock breaks the HTTPS checks the installer and agent rely on.
1Choose a plan
Go to Pricing, pick Shield (the plan open today), and create your account. Either way works: you can also create the account first at dashboard.nodpulse.com and pick the plan there, as the start page shows. Checkout is handled by Stripe. When payment completes you land in your dashboard at dashboard.nodpulse.com/.
Each plan has a domain limit: Shield covers 1 domain and EchoNod 1. EchoNod sends traffic over a single relay path; GateNod splits each request across three relays.
Every five minutes NodPulse requests the front page of each of your domains once through each gateway, to check that it is served. These requests come from 74.208.203.243 and will appear in your own server's logs. They are not counted in your traffic numbers.
2Add your domain and prove you own it
- In the dashboard, open Domains.
- Enter the domain (for example
example.com) and your origin server's IP address, then add it. - The domain shows Verify ownership, along with a TXT record to create. It looks like this:
| Type | Name | Value |
|---|---|---|
| TXT | _nodpulse.example.com | nodpulse-verify= followed by your token |
- Add that TXT record at your DNS provider. Copy the name and value exactly from the dashboard. Some DNS providers add your domain to the name automatically, in which case enter just
_nodpulse. - Wait. NodPulse checks every minute. Once the record is visible the domain moves to Provisioning.
Unverified domains are released after 7 days. If that happens, add the domain again and you'll get a new record to publish.
3Install the origin agent
In the dashboard, open Cloaking. The Origin Agent panel shows a one-line install command. On the server that hosts your site, run it as root:
curl -fsSL https://api.nodpulse.com/api/tunnel/install/<code> | sudo bash
Copy the command from the dashboard rather than typing it: <code> is a one-time enrolment code tied to your account. Each command works once and expires 24 hours after it was shown. If you need to run the installer again, refresh the dashboard to get a new command.
The installer:
- downloads the agent, the NodPulse root certificate and a small TLS helper over HTTPS, and checks each against a SHA-256 fingerprint before using it (a mismatch stops the install);
- fetches your agent's identity and access token once, and writes them to
/etc/nodpulse-agent/, readable only by a new system user callednodpulse; - sets up these systemd services:
np-origin-agent, the agent itself;vxnode-tls-client@relay1,@relay2and so on, one local TLS connection per relay;np-agent-refresh.timer, which renews the agent's access token daily so it never expires.
A successful run ends with lines like these:
[nodpulse-agent] token auto-refresh enabled (daily; rolls the capability token before it expires)
[nodpulse-agent] agent running
[nodpulse-agent] identity: ...
[nodpulse-agent] serving: http://127.0.0.1:80 -> relay ... (outbound only)
[nodpulse-agent] next step: in the dashboard add the domain to cloak and point its A record at your NodPulse gateway.
Check the serving: line. That is the local address the agent will send your visitors' requests to.
Site not on port 80, or port 80 redirects to HTTPS?
By default the agent forwards requests to http://127.0.0.1:80. That is wrong for you if:
- your site listens on a different port, for example 8080; or
- port 80 on your server only redirects to HTTPS (very common with Let's Encrypt setups).
The second case matters. The agent always talks to your server over plain HTTP. If that answer is "go to https://", the visitor's browser follows the redirect, comes back through NodPulse, gets the same redirect again, and ends up in a redirect loop.
Fix it by telling the installer where your plain-HTTP site is, with NODPULSE_LOCAL_SITE. Put it after sudo so it reaches the installer:
curl -fsSL https://api.nodpulse.com/api/tunnel/install/<code> | sudo NODPULSE_LOCAL_SITE=http://127.0.0.1:8080 bash
The value must start with http:// and should be a loopback address on the same server. HTTPS addresses are not supported here. Your web server must answer on that address for your domain name over plain HTTP, without redirecting to HTTPS. If you use a web server like nginx, a common approach is a small server block that listens on 127.0.0.1:8080 for your domain and serves the site normally.
Already installed? Change it without reinstalling: edit the NODPULSE_LOCAL_SITE= line in /etc/nodpulse-agent/agent.conf, then run sudo systemctl restart np-origin-agent.
Re-running the installer keeps the local site address already set on the server. To change it, add NODPULSE_LOCAL_SITE=... to the command, or edit agent.conf as above.
4Point your DNS at NodPulse
In the dashboard, the domain shows the address to point at. At your DNS provider, set your domain's A record to that address. For EchoNod this is the NodPulse gateway (at the time of writing, 198.71.50.21; always use the address the dashboard shows).
- EchoNod: do this after the agent is installed, so requests have somewhere to go.
- Remove any other A records for the same name, and any AAAA (IPv6) record that points at your server. Otherwise some visitors still reach your server directly and your address stays public.
- If your DNS provider offers its own proxy or CDN for the record, turn it off for this record ("DNS only"). The A record must point straight at NodPulse.
- Lowering the record's TTL a few hours beforehand makes the switch faster.
Once the change is visible, NodPulse issues the HTTPS certificate for your domain on the gateway and the domain becomes Active. This usually takes a few minutes after DNS updates. For those minutes, visitors using HTTPS see a certificate warning, so make the change at a quiet time. If something blocks it, the dashboard shows the problem under the domain and keeps retrying.
5Check it's working
- EchoNod: the agent is running. On your server:
The status should saysudo systemctl status np-origin-agent sudo journalctl -u np-origin-agent -factive (running). The log should showconnected to ...lines and no[FATAL]lines. - The site loads. Open
https://your-domain/in a browser. You can confirm the request came through NodPulse with:
which should showcurl -sI https://your-domain/ | grep -i '^server'Server: NodPulse. - EchoNod: the dashboard shows Connected. On Overview, the Origin agent tile shows Connected, and on Cloaking your domain shows Agent connected. It can take a minute or two after the agent starts to appear.
Something not right? See Troubleshooting.
After setup: EchoNod
On Shield, skip this section. NodPulse reaches your server at its public address, so keep your server's web ports open; closing them stops your site loading through NodPulse.
- Close your public web ports. Once your site loads through NodPulse, you can block inbound traffic to ports 80 and 443 on your server's public address. The agent doesn't need them. Keep your own admin access (such as SSH) open, and keep outbound TCP 9444 and 443 allowed.
- EchoNod: show your visitors' real addresses. The agent hands each request to your web server from 127.0.0.1, so until you add the lines below, your logs and any address-based rules see 127.0.0.1 for every visitor. NodPulse sends the visitor's address in the
X-Real-IPheader. Tell your web server to use it. nginx, insidehttp { }:
Reload nginx, then load your site and check the newest line of your access log: it should show your own address, not 127.0.0.1. Trust this header from 127.0.0.1 only, and do this after you close your public web ports, so that nobody can reach the server directly and set the header. On another web server, write to support@nodpulse.com and we will send the lines for it.set_real_ip_from 127.0.0.1; real_ip_header X-Real-IP; - Leave the refresh timer on.
np-agent-refresh.timerrenews the agent's token daily. Check it withsystemctl list-timers np-agent-refresh.timer. - Keep secrets private. The files in
/etc/nodpulse-agent/(especiallyagent.tokenandrefresh.secret) are credentials. Never post or email them, including to NodPulse support.