Ligolo-ng is used for pivoting when a target machine does not have a direct route to the Kali machine and traditional tools like Chisel fail. It requires a proxy binary on the Kali machine and an agent binary on the compromised pivot machine (e.g., a Windows machine). The proxy handles the routing, allowing the attacker to use tools from Kali against targets behind the pivot.
# On Kali: Create and enable the ligolo virtual interface
sudo ip tuntap add user kali mode tun ligolo
sudo ip link set ligolo up
# On Kali: Add the route to the target network via the ligolo interface
sudo ip route add 10.10.x.x/24 dev ligolo
# On Kali: Start the proxy
./proxy -selfcert