Crates.io | innisfree |
lib.rs | innisfree |
version | 0.3.0 |
source | src |
created_at | 2021-07-30 19:48:34.917047 |
updated_at | 2023-12-29 21:58:07.184838 |
description | Exposes local services on public IPv4 address, via cloud server. |
homepage | |
repository | https://github.com/conorsch/innisfree |
max_upload_size | |
id | 429403 |
size | 501,612 |
A tool to aid in self-hosting. Expose local services on your computer, via a public IPv4 address.
Most of the data I maintain is local, within my house, or otherwise on a machine that I control. Uploading that information to a cloud server doesn't always make sense. For one, it's not private: the cloud provider has direct access to all the files I upload. Second, if I have large amounts of data, such as a music collection, it's both expensive and inefficient to upload all that data to the cloud simply so that I can access it remotely.
Mostly, I just want an IP address tied to a service I'm running. I don't want to publish my home IP in DNS records. I don't want to open ports on my home router to allow traffic in.
When you run innisfree up
, the program performs the following steps:
DIGITALOCEAN_API_TOKEN
env var, so it can access the DigitalOcean cloud provider.8080/TCP,443/TCP
).--dest-ip
was specified, configures a local proxy to pass traffic
from the local Wireguard interface to another service locally.
Useful when the local service is running on an address other than localhost.There are deb packages available in the Releases page on this repo. You can install directly from source:
# Build a deb package and install it locally
make install
innisfree doctor
to check support your machine.USAGE:
innisfree [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
doctor Run checks to evaluate platform support
help Prints this message or the help of the given subcommand(s)
ip Display IPv4 address for cloud node
proxy Start process to forward traffic, assumes tunnel already up
ssh Open interactive SSH shell on cloud node
up Create new innisfree tunnel
The deb package ships with a systemd config file.
To use it, choose a unique name for the service (e.g. minikube
),
and make sure your API token is exported:
cat /etc/systemd/system/innisfree\@minikube.service.d/override.conf
[Service]
Environment="DIGITALOCEAN_API_TOKEN=<REDACTED>"
# Override any settings from the shipped service
User=conorsch
ExecStart=
ExecStart=/bin/bash -c "innisfree up --floating-ip 1.2.3.4 --dest-ip $(minikube ip) -p 443/TCP --name k8s"
The above will proxy a connection to a local minikube installation.
It's from the Yeats poem:
I will arise and go now, and go to Innisfree,
And a small cabin build there, of clay and wattles made:
Nine bean-rows will I have there, a hive for the honey-bee;
And live alone in the bee-loud glade.
The idea is that in context of the internet, my own home is already the "bee-loud glade": I don't need to upload all my data into the hustle and bustle of cloud computing. Just give me an IP, so I can share data with others, and that's enough.
AGPLv3