Skip to content
SecArsenal
Educational and ethical use only. Only test systems you own or are explicitly authorized to test. Full disclaimer.

restrict-egress

Restrict outbound network access to an allowlist of domains and CIDRs using an nftables default-deny egress policy. It i

general-utilitiesBlue Team
Official docs ↗Download ↗

Platforms: Linux · License: MIT · Last verified September 6, 2026

Restrict outbound network access to an allowlist of domains and CIDRs using an nftables default-deny egress policy. It installs a persistent, self-refreshing lockdown on a VM or host, or enforces a one-shot lockdown inside a container with the apply command. Where dnsmasq and systemd-resolved are present, domain entries are coupled to DNS: a local dnsmasq inserts each answered IP into the allow set before the client sees it, so rotating load-balancer addresses never miss.

Only use this tool against systems you own or are explicitly authorized to test — see the disclaimer.

Getting started

Preinstalled on REMnux. See the official REMnux tool listing and upstream website linked above for details.

Commonly preinstalled on

REMnux

Ubuntu-based toolkit for reverse-engineering and analyzing malicious software