The cluster VPN created by Kilo can also be used by peers as a gateway to access the Internet.
In order configure a local machine to use the cluster VPN as a gateway to the Internet, first register the local machine as a peer of the cluster following the steps in the [VPN docs](./vpn.md).
Once the machine is registered, generate the configuration for the local peer:
```shell
PEER=squat # name of the registered peer
kgctl showconf peer $PEER > peer.ini
```
Next, the WireGuard configuration must be modified to enable routing traffic for any IP via a node in the cluster.
To do so, open the WireGuard configuration in an editor, select a node in the cluster, and set the `AllowedIPs` field of that node's corresponding `peer` section to `0.0.0.0/0, ::/0`: