2018-07-28 03:41:33 -04:00
|
|
|
ephsite - Easy forwarding of local services to i2p
|
|
|
|
==================================================
|
|
|
|
|
2018-07-28 03:51:05 -04:00
|
|
|
ephsite is a forwarding proxy designed to configure a tunnel for use
|
|
|
|
with i2p. It can be used to easily forward a local service to the
|
|
|
|
i2p network using i2p's SAM API instead of the tunnel interface.
|
2018-07-28 03:41:33 -04:00
|
|
|
|
|
|
|
usage:
|
|
|
|
------
|
|
|
|
|
2018-07-28 03:51:05 -04:00
|
|
|
```
|
|
|
|
Usage of ./bin/ephsite:
|
|
|
|
-access string
|
|
|
|
Type of access list to use, can be "whitelist" "blacklist" or "none". (default "none")
|
|
|
|
-accesslist value
|
|
|
|
Specify an access list member(can be used multiple times)
|
|
|
|
-dir string
|
|
|
|
Directory to save tunnel configuration file in.
|
|
|
|
-encryptlease
|
|
|
|
Use an encrypted leaseset(true or false) (default true)
|
|
|
|
-gzip
|
2018-07-28 04:07:21 -04:00
|
|
|
Uze gzip(true or false)
|
2018-07-28 03:51:05 -04:00
|
|
|
-host string
|
|
|
|
Target host(Host of service to forward to i2p) (default "127.0.0.1")
|
|
|
|
-inback int
|
2018-07-28 04:07:21 -04:00
|
|
|
Set inbound tunnel backup quantity(0 to 5) (default 4)
|
2018-07-28 03:51:05 -04:00
|
|
|
-incount int
|
2018-07-28 04:07:21 -04:00
|
|
|
Set inbound tunnel quantity(0 to 15) (default 8)
|
2018-07-29 01:08:30 -04:00
|
|
|
-ini string
|
|
|
|
Use an ini file for configuration(config file options override passed arguments for now.) (default "none")
|
2018-07-28 03:51:05 -04:00
|
|
|
-inlen int
|
2018-07-28 04:07:21 -04:00
|
|
|
Set inbound tunnel length(0 to 7) (default 3)
|
2018-07-28 03:51:05 -04:00
|
|
|
-invar int
|
2018-07-28 04:07:21 -04:00
|
|
|
Set inbound tunnel length variance(-7 to 7)
|
2018-07-28 03:51:05 -04:00
|
|
|
-name string
|
|
|
|
Tunnel name, this must be unique but can be anything. (default "forwarder")
|
|
|
|
-outback int
|
2018-07-28 04:07:21 -04:00
|
|
|
Set outbound tunnel backup quantity(0 to 5) (default 4)
|
2018-07-28 03:51:05 -04:00
|
|
|
-outcount int
|
2018-07-28 04:07:21 -04:00
|
|
|
Set outbound tunnel quantity(0 to 15) (default 8)
|
2018-07-28 03:51:05 -04:00
|
|
|
-outlen int
|
2018-07-28 04:07:21 -04:00
|
|
|
Set outbound tunnel length(0 to 7) (default 3)
|
2018-07-28 03:51:05 -04:00
|
|
|
-outvar int
|
2018-07-28 04:07:21 -04:00
|
|
|
Set outbound tunnel length variance(-7 to 7)
|
2018-07-28 03:51:05 -04:00
|
|
|
-port string
|
|
|
|
Target port(Port of service to forward to i2p) (default "8081")
|
|
|
|
-reduce
|
2018-07-28 04:07:21 -04:00
|
|
|
Reduce tunnel quantity when idle(true or false)
|
2018-07-28 03:51:05 -04:00
|
|
|
-reducecount int
|
2018-07-28 04:07:21 -04:00
|
|
|
Reduce idle tunnel quantity to X (0 to 5) (default 3)
|
2018-07-28 03:51:05 -04:00
|
|
|
-reducetime int
|
2018-07-30 20:36:33 -04:00
|
|
|
Reduce tunnel quantity after X (minutes) (default 10)
|
2018-07-28 03:51:05 -04:00
|
|
|
-samhost string
|
|
|
|
SAM host (default "127.0.0.1")
|
|
|
|
-samport string
|
|
|
|
SAM port (default "7656")
|
2018-07-28 09:19:19 -04:00
|
|
|
-save
|
2018-08-08 16:51:18 -04:00
|
|
|
Use saved file and persist tunnel(If false, tunnel will not persist after program is stopped.
|
2018-07-30 20:36:33 -04:00
|
|
|
-udp
|
|
|
|
UDP mode(true or false)
|
2018-07-28 03:51:05 -04:00
|
|
|
-zeroin
|
2018-07-28 04:07:21 -04:00
|
|
|
Allow zero-hop, non-anonymous tunnels in(true or false)
|
2018-07-28 03:51:05 -04:00
|
|
|
-zeroout
|
2018-07-28 04:07:21 -04:00
|
|
|
Allow zero-hop, non-anonymous tunnels out(true or false)
|
2018-07-28 03:51:05 -04:00
|
|
|
```
|
2018-08-08 16:51:18 -04:00
|
|
|
|
|
|
|
eephttpd - Static file server automatically forwarded to i2p
|
|
|
|
============================================================
|
|
|
|
|
2018-08-08 17:18:10 -04:00
|
|
|
usage:
|
|
|
|
------
|
|
|
|
|
2018-08-08 16:51:18 -04:00
|
|
|
eephttpd is a static http server which automatically runs on i2p with
|
|
|
|
the help of the SAM bridge. By default it will only be available from
|
|
|
|
the localhost and it's i2p tunnel. It can be masked from the localhost
|
|
|
|
using a container.
|
|
|
|
|
|
|
|
```
|
|
|
|
Usage of ./bin/eephttpd:
|
2018-08-08 17:18:10 -04:00
|
|
|
-a string
|
|
|
|
hostname to serve on (default "127.0.0.1")
|
|
|
|
-c Use an encrypted leaseset(true or false)
|
2018-08-08 16:51:18 -04:00
|
|
|
-d string
|
|
|
|
the directory of static files to host(default ./www) (default "./www")
|
|
|
|
-f string
|
|
|
|
Use an ini file for configuration (default "none")
|
|
|
|
-g Uze gzip(true or false) (default true)
|
|
|
|
-i save i2p keys(and thus destinations) across reboots (default true)
|
|
|
|
-ib int
|
|
|
|
Set inbound tunnel backup quantity(0 to 5) (default 4)
|
|
|
|
-il int
|
|
|
|
Set inbound tunnel length(0 to 7) (default 3)
|
|
|
|
-iq int
|
|
|
|
Set inbound tunnel quantity(0 to 15) (default 8)
|
|
|
|
-iv int
|
|
|
|
Set inbound tunnel length variance(-7 to 7)
|
|
|
|
-n string
|
|
|
|
name to give the tunnel(default static-eepSite) (default "static-eepSite")
|
|
|
|
-ob int
|
|
|
|
Set outbound tunnel backup quantity(0 to 5) (default 4)
|
|
|
|
-ol int
|
|
|
|
Set outbound tunnel length(0 to 7) (default 3)
|
|
|
|
-oq int
|
|
|
|
Set outbound tunnel quantity(0 to 15) (default 8)
|
|
|
|
-ov int
|
|
|
|
Set outbound tunnel length variance(-7 to 7)
|
|
|
|
-p string
|
|
|
|
port to serve locally on (default "8100")
|
|
|
|
-r Reduce tunnel quantity when idle(true or false)
|
|
|
|
-rc int
|
|
|
|
Reduce idle tunnel quantity to X (0 to 5) (default 3)
|
|
|
|
-rt int
|
|
|
|
Reduce tunnel quantity after X (minutes) (default 10)
|
|
|
|
-s string
|
|
|
|
the directory to save the keys in(default ./) (default ".")
|
|
|
|
-sh string
|
|
|
|
sam host to connect to (default "127.0.0.1")
|
|
|
|
-sp string
|
|
|
|
sam port to connect to (default "7656")
|
|
|
|
-z Allow zero-hop, non-anonymous tunnels(true or false)
|
|
|
|
```
|
|
|
|
|
2018-08-08 17:18:10 -04:00
|
|
|
### build in docker
|
|
|
|
|
|
|
|
```
|
|
|
|
docker build --build-arg user=eephttpd -f Dockerfile -t eyedeekay/eephttpd .
|
|
|
|
```
|
|
|
|
|
|
|
|
### Run in docker
|
|
|
|
|
|
|
|
```
|
|
|
|
docker run -i -t -d --network si \
|
|
|
|
--env samhost=sam-host \
|
|
|
|
--env samport=7656 \
|
2018-08-08 17:24:21 -04:00
|
|
|
--env args=-r # Additional arguments to pass to eephttpd\
|
2018-08-08 17:18:10 -04:00
|
|
|
--network-alias eephttpd \
|
|
|
|
--hostname eephttpd \
|
|
|
|
--name eephttpd \
|
|
|
|
--restart always \
|
2018-08-08 17:24:21 -04:00
|
|
|
--volume eephttpd:/home/eephttpd/ \
|
2018-08-08 17:18:10 -04:00
|
|
|
eyedeekay/eephttpd
|
|
|
|
```
|
|
|
|
|
2018-08-08 18:15:35 -04:00
|
|
|
instance
|
|
|
|
--------
|
|
|
|
|
|
|
|
a running instance of eephttpd with the example index file is availble on
|
|
|
|
jhnnybq5gvcldvidornz6q3l55tkbftjwbciqjuzzx26eu3gq4ka.b32.i2p
|
|
|
|
|