Self-hosting an Exit Node
First, you’ll need a machine where you can run Chisel, the software that Chisel Operator uses to tunnel to your server. We assume that you’re running a Linux distribution with systemd.
To install Chisel, you can use your distribution’s Chisel package or the official install script. For the sake of this guide, we’ll be using the install script:
You’ll probably want to make a systemd service to manage the Chisel process.
On the system, you can create a file called /etc/systemd/system/chisel.service
with the following content:
You’ll also need to setup authentication for your Chisel instance. For the above systemd service, this is done in the /etc/sysconfig/chisel
file:
Then run systemctl daemon-reload
and systemctl enable --now chisel.service
to enable and start the service. The Chisel server will be accessible on all addresses on port 9000
, although, you may need to configure your firewall settings to allow this.
Now, we can finally let Chisel Operator know about our exit node, by creating a corresponding ExitNode
resource:
We’ll also need to create a secret with our credentials:
And congratulations, you’re ready to start tunneling services! That wasn’t too hard, was it?