> For the complete documentation index, see [llms.txt](https://docs.qu35t.pw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qu35t.pw/pivot/ligolo-ng.md).

# Ligolo-ng

## Configuration

{% tabs %}
{% tab title="Build the proxy" %}

```bash
go build -o proxy cmd/proxy/main.go
```

{% endtab %}

{% tab title="Build the agent" %}

```bash
go build -o agent cmd/agent/main.go
```

{% endtab %}

{% tab title="Create the VPN interface" %}

```bash
sudo ip tuntap add user root mode tun ligolo
sudo ip link set ligolo up
```

{% endtab %}
{% endtabs %}

## Usage

{% tabs %}
{% tab title="Start the proxy" %}

```bash
./proxy -selfcert
```

{% endtab %}

{% tab title="Run agent on target machine" %}

```bash
./agent -connect 10.10.14.10:11601 -ignore-cert
```

{% endtab %}

{% tab title="Add an internal route" %}

```bash
sudo ip route add 192.168.0.0/24 dev ligolo
```

{% endtab %}

{% tab title="Create a listener" %}

```bash
listener_add --addr 0.0.0.0:1234 --to 127.0.0.1:9999 --tcp
```

{% endtab %}
{% endtabs %}
