Deploy instance with no outbound traffic

Hey team, keen to hear some insight on how we might install n8n on either my own EC2 instance(s), or locally, in such a way that it does not phone-home or exfil data.

I am very aware that a lot of the functionality rests on traversing the internet to send and receive data: that is not lost on me. But what I have a very security-sensitive environment in which I want to make use of some n8n functions that don’t necessarily rely on outbound traffic (mainly local ETL type stuff).

So my question: is there any guidance on how I can install n8n on either a local or cloud instance with no outbound traffic allowed?

TIA!

The strictest, surest way is to block egress traffic from the node (ec2 instance or container) where the n8n instance is running.

  • On the machine: using OS level firewall (iptables/nftables)
  • On the network that connects the machine: with VPC or similar

A partial solution would be to declare env vars for a “nodejs runtime-global” proxy (HTTP_PROXY, HTTPS_PROXY), pointed to a proxy that only permits through what you want to allow. This is only for http traffic though, where Axios is the client (Axios honors the proxy env vars).

We have n8n running in a k8s cluster which has egress locked down, so if you’re running in a container, that might also be an option/layer where you could shut it off.

Thank you :slight_smile: Yes that was my thought too, however I tried this by not allowing any outbound traffic from the instance and - whilst I can spin up n8n, create an account and login - the workflow UI fails to load.

I can’t find any documentation anywhere that covers egress.

Ah, I found them! Isolate n8n | n8n Docs

It’s covered in here. Consider this closed.