Files
reseed-tools/README.md

76 lines
2.6 KiB
Markdown
Raw Normal View History

2014-12-10 19:24:13 -06:00
I2P Reseed Tools
==================
2014-09-12 14:19:35 -05:00
2022-01-05 12:18:45 -05:00
![Reseed Tools Poster](content/images/reseed.png)
2021-12-04 11:31:50 -05:00
This tool provides a secure and efficient reseed server for the I2P network.
There are several utility commands to create, sign, and validate SU3 files.
Please note that this requires at least Go version 1.13, and uses Go Modules.
2014-12-14 23:26:47 -06:00
2021-12-08 17:10:56 -05:00
Standard reseeds are distributed with the I2P packages. To get your reseed
included, apply on [zzz.i2p](http://zzz.i2p).
## Dependencies
`go`, `git`, and optionally `make` are required to build the project.
Precompiled binaries for most platforms are available at my github mirror
https://github.com/eyedeekay/i2p-tools-1.
In order to install the build-dependencies on Ubuntu or Debian, you may use:
```sh
sudo apt-get install golang-go git make
```
## Installation
Reseed-tools can be run as a user, as a freestanding service, or be installed
as an I2P Plugin. It will attempt to configure itself automatically. You should
make sure to set the `--signer` flag or the `RESEED_EMAIL` environment variable
to configure your signing keys/contact info.
### Installation(From Source)
2014-12-14 23:26:47 -06:00
```
2021-11-28 12:03:22 -05:00
git clone https://i2pgit.org/idk/reseed-tools
cd reseed-tools
make build
# Optionally, if you want to install to /usr/bin/reseed-tools
sudo make install
2014-12-14 23:26:47 -06:00
```
## Usage
#### Debian/Ubuntu note:
2023-01-04 16:42:54 +00:00
It is possible to create a `.deb` package using [these instructions](docs/DEBIAN.md).
Debian users who are running I2P as a system service must also run the
`reseed-tools` as the same user. This is so that the reseed-tools can access
the I2P service's netDb directory. On Debian and Ubuntu, that user is `i2psvc`
and the netDb directory is: `/var/lib/i2p/i2p-config/netDb`.
2021-12-04 11:31:50 -05:00
## Example Commands:
2016-05-15 17:29:08 +02:00
### Without a webserver, standalone with TLS support
2014-12-14 23:26:47 -06:00
2019-11-16 15:45:12 -05:00
If this is your first time running a reseed server (ie. you don't have any existing keys),
you can simply run the command and follow the prompts to create the appropriate keys, crl and certificates.
Afterwards an HTTPS reseed server will start on the default port and generate 6 files in your current directory
(a TLS key, certificate and crl, and a su3-file signing key, certificate and crl).
2021-11-28 12:03:22 -05:00
```
reseed-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --tlsHost=your-domain.tld
```
2019-11-16 15:41:16 -05:00
2021-11-28 12:03:22 -05:00
### Locally behind a webserver (reverse proxy setup), preferred:
2019-11-16 15:45:12 -05:00
If you are using a reverse proxy server it may provide the TLS certificate instead.
2021-11-28 12:03:22 -05:00
```
reseed-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --port=8443 --ip=127.0.0.1 --trustProxy
```
2019-11-16 15:45:12 -05:00
2023-01-04 16:42:54 +00:00
- **Usage** [More examples can be found here.](docs/EXAMPLES.md)
- **Docker** [Docker examples can be found here](docs/DOCKER.md)