iptables xt_owner unavailable, secure egress isolation alternatives?

Hello Fly.io community,

I’m deploying a security-sensitive outbound HTTP fetching service on Fly Machines, using a Go API wrapper and Smokescreen as an HTTP proxy.

The architecture requires the wrapper process (UID 10002) to access only the local Smokescreen proxy on TCP port 4750. All direct IPv4 and IPv6 outbound connections must be blocked.

The container runs Alpine Linux with iptables-nft and iptables-legacy. During startup, we attempt to install an OUTPUT rule using:

iptables -I OUTPUT 1 -m owner --uid-owner 10002 -j EOLVA_WRAPPER_OUT

Both backends fail:

iptables-nft:

Warning: Extension owner revision 0 not supported, missing kernel module?
iptables v1.8.11 (nf_tables): RULE_INSERT failed (No such file or directory): rule in chain OUTPUT

iptables-legacy:

Warning: Extension owner revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.

The service intentionally fails closed and does not start.

Could someone clarify:

  1. Is the xt_owner netfilter match supported on current Fly Machines?

  2. Is there a supported way to use per-process or per-UID outbound firewall restrictions?

  3. Are network namespaces, cgroup-based egress filtering, or another isolation mechanism available on Fly Machines?

  4. What would Fly.io recommend for enforcing that one process can reach only a local HTTP proxy, with no direct IPv4/IPv6 egress?

We want to preserve fail-closed security rather than bypass the firewall.

Thank you!

Hi… Network namespaces definitely work. (That’s what I use for this kind of thing.)

In contrast, cgroups tend to have surprises within Fly.io Machines, although I don’t know the details there…

Hope this helps a little!

I would recommend using network policies and a separate app running smokescreen rather than firewall rules inside one machine.