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)
|
2018-08-16 12:11:09 -04:00
|
|
|
-client
|
|
|
|
Client proxy mode(true or false)
|
|
|
|
-close
|
|
|
|
Close tunnel idle(true or false)
|
|
|
|
-closetime int
|
|
|
|
Reduce tunnel quantity after X (milliseconds) (default 600000)
|
|
|
|
-dest string
|
|
|
|
Destination for client tunnels. Ignored for service tunnels. (default "none")
|
2018-07-28 03:51:05 -04:00
|
|
|
-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-09-10 17:27:34 -04:00
|
|
|
-headers
|
|
|
|
Inject X-I2P-DEST headers
|
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-08-16 12:11:09 -04:00
|
|
|
Set inbound tunnel quantity(0 to 15) (default 6)
|
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-08-16 14:25:31 -04:00
|
|
|
-lsk string
|
|
|
|
path to saved encrypted leaseset keys (default "none")
|
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-08-16 12:11:09 -04:00
|
|
|
Set outbound tunnel quantity(0 to 15) (default 6)
|
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-08-16 12:11:09 -04:00
|
|
|
Reduce tunnel quantity after X (milliseconds) (default 600000)
|
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-09-08 03:57:37 -04:00
|
|
|
-tlsport string
|
|
|
|
(Currently inoperative. Target TLS port(HTTPS Port of service to forward to i2p)
|
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
|
|
|
|
2018-09-12 23:58:25 -04:00
|
|
|
samcatd - Router-independent tunnel management for i2p
|
|
|
|
=========================================================
|
|
|
|
|
|
|
|
samcatd is a daemon which runs a group of forwarding proxies to
|
|
|
|
provide services over i2p independent of the router. It also serves
|
2018-09-14 00:53:43 -04:00
|
|
|
as a generalized i2p networking utility for power-users. It's
|
|
|
|
intended to be a Swiss-army knife for the SAM API.
|
2018-08-08 16:51:18 -04:00
|
|
|
|
2018-08-08 17:18:10 -04:00
|
|
|
usage:
|
|
|
|
------
|
|
|
|
|
2018-08-08 16:51:18 -04:00
|
|
|
```
|
2018-09-13 17:30:37 -04:00
|
|
|
flag needs an argument: -h
|
2018-09-12 23:58:25 -04:00
|
|
|
Usage of ./bin/samcatd:
|
2018-09-13 17:30:37 -04:00
|
|
|
-a string
|
2018-09-12 23:58:25 -04:00
|
|
|
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)
|
2018-09-13 17:30:37 -04:00
|
|
|
-c Client proxy mode(true or false)
|
|
|
|
-ct int
|
2018-09-12 23:58:25 -04:00
|
|
|
Reduce tunnel quantity after X (milliseconds) (default 600000)
|
2018-09-13 17:30:37 -04:00
|
|
|
-d string
|
2018-09-12 23:58:25 -04:00
|
|
|
Directory to save tunnel configuration file in.
|
2018-09-13 17:30:37 -04:00
|
|
|
-f string
|
|
|
|
Use an ini file for configuration(config file options override passed arguments for now.) (default "none")
|
|
|
|
-h string
|
2018-09-12 23:58:25 -04:00
|
|
|
Target host(Host of service to forward to i2p) (default "127.0.0.1")
|
2018-09-13 17:30:37 -04:00
|
|
|
-i string
|
|
|
|
Destination for client tunnels. Ignored for service tunnels. (default "none")
|
|
|
|
-ib int
|
2018-08-08 16:51:18 -04:00
|
|
|
Set inbound tunnel backup quantity(0 to 5) (default 4)
|
2018-09-13 17:30:37 -04:00
|
|
|
-ic int
|
2018-09-12 23:58:25 -04:00
|
|
|
Set inbound tunnel quantity(0 to 15) (default 6)
|
2018-09-13 17:30:37 -04:00
|
|
|
-ih
|
|
|
|
Inject X-I2P-DEST headers
|
|
|
|
-il int
|
2018-08-08 16:51:18 -04:00
|
|
|
Set inbound tunnel length(0 to 7) (default 3)
|
2018-09-13 17:30:37 -04:00
|
|
|
-iv int
|
2018-08-08 16:51:18 -04:00
|
|
|
Set inbound tunnel length variance(-7 to 7)
|
2018-09-13 17:30:37 -04:00
|
|
|
-k string
|
2018-09-14 00:35:13 -04:00
|
|
|
key for encrypted leaseset (default "none")
|
2018-09-13 17:30:37 -04:00
|
|
|
-l Use an encrypted leaseset(true or false) (default true)
|
|
|
|
-n string
|
2018-09-12 23:58:25 -04:00
|
|
|
Tunnel name, this must be unique but can be anything. (default "forwarder")
|
2018-09-13 17:30:37 -04:00
|
|
|
-ob int
|
2018-08-08 16:51:18 -04:00
|
|
|
Set outbound tunnel backup quantity(0 to 5) (default 4)
|
2018-09-13 17:30:37 -04:00
|
|
|
-oc int
|
2018-09-12 23:58:25 -04:00
|
|
|
Set outbound tunnel quantity(0 to 15) (default 6)
|
2018-09-13 17:30:37 -04:00
|
|
|
-ol int
|
2018-08-08 16:51:18 -04:00
|
|
|
Set outbound tunnel length(0 to 7) (default 3)
|
2018-09-13 17:30:37 -04:00
|
|
|
-ov int
|
2018-08-08 16:51:18 -04:00
|
|
|
Set outbound tunnel length variance(-7 to 7)
|
2018-09-13 17:30:37 -04:00
|
|
|
-p string
|
2018-09-12 23:58:25 -04:00
|
|
|
Target port(Port of service to forward to i2p) (default "8081")
|
2018-09-14 00:35:13 -04:00
|
|
|
-pk string
|
|
|
|
private key for encrypted leaseset (default "none")
|
|
|
|
-psk string
|
|
|
|
private signing key for encrypted leaseset (default "none")
|
2018-09-13 17:30:37 -04:00
|
|
|
-r Reduce tunnel quantity when idle(true or false)
|
|
|
|
-rc int
|
2018-08-08 16:51:18 -04:00
|
|
|
Reduce idle tunnel quantity to X (0 to 5) (default 3)
|
2018-09-13 17:30:37 -04:00
|
|
|
-rt int
|
2018-08-16 18:24:31 -04:00
|
|
|
Reduce tunnel quantity after X (milliseconds) (default 600000)
|
2018-09-13 17:30:37 -04:00
|
|
|
-s Start a tunnel with the passed parameters(Otherwise, they will be treated as default values.)
|
|
|
|
-sh string
|
2018-09-12 23:58:25 -04:00
|
|
|
SAM host (default "127.0.0.1")
|
2018-09-13 17:30:37 -04:00
|
|
|
-sp string
|
2018-09-12 23:58:25 -04:00
|
|
|
SAM port (default "7656")
|
2018-09-13 17:30:37 -04:00
|
|
|
-t Use saved file and persist tunnel(If false, tunnel will not persist after program is stopped.
|
|
|
|
-tls string
|
2018-09-12 23:58:25 -04:00
|
|
|
(Currently inoperative. Target TLS port(HTTPS Port of service to forward to i2p)
|
2018-09-13 17:30:37 -04:00
|
|
|
-u UDP mode(true or false)
|
|
|
|
-x Close tunnel idle(true or false)
|
|
|
|
-z Uze gzip(true or false)
|
|
|
|
-zi
|
2018-09-12 23:58:25 -04:00
|
|
|
Allow zero-hop, non-anonymous tunnels in(true or false)
|
2018-09-13 17:30:37 -04:00
|
|
|
-zo
|
2018-09-12 23:58:25 -04:00
|
|
|
Allow zero-hop, non-anonymous tunnels out(true or false)
|
2018-08-08 16:51:18 -04:00
|
|
|
```
|
|
|
|
|
2018-09-12 23:58:25 -04:00
|
|
|
example config - valid for both ephsite and samcat
|
|
|
|
==================================================
|
2018-09-14 01:02:47 -04:00
|
|
|
Options are still being added, pretty much as fast as I can put them
|
|
|
|
in. For up-to-the-minute options, see [the checklist](config/CHECKLIST.md)
|
2018-09-12 23:58:25 -04:00
|
|
|
|
2018-09-14 01:02:47 -04:00
|
|
|
(ephsite will only use top-level options, but they can be labeled or
|
|
|
|
unlabeled)
|
|
|
|
(samcatd treats the first set of options it sees as the default, and
|
|
|
|
does not start tunnels based on unlabeled options unless passed the
|
|
|
|
-s flag.)
|
2018-08-08 17:18:10 -04:00
|
|
|
|
|
|
|
```
|
|
|
|
|
2018-09-12 23:58:25 -04:00
|
|
|
## Defaults, these are only invoked with the -start option or if labeled tunnels
|
|
|
|
## are not present(samcatd instructions)
|
2018-08-08 17:18:10 -04:00
|
|
|
|
2018-09-12 23:58:25 -04:00
|
|
|
inbound.length = 3
|
|
|
|
outbound.length = 6
|
|
|
|
inbound.lengthVariance = 0
|
|
|
|
outbound.lengthVariance = 0
|
|
|
|
inbound.backupQuantity = 3
|
|
|
|
outbound.backupQuantity = 3
|
|
|
|
inbound.quantity = 5
|
|
|
|
outbound.quantity = 5
|
|
|
|
inbound.allowZeroHop = false
|
|
|
|
outbound.allowZeroHop = false
|
|
|
|
i2cp.encryptLeaseSet = false
|
|
|
|
gzip = true
|
|
|
|
i2cp.reduceOnIdle = true
|
|
|
|
i2cp.reduceIdleTime = 3000000
|
|
|
|
i2cp.reduceQuantity = 2
|
|
|
|
i2cp.enableWhiteList = false
|
|
|
|
i2cp.enableBlackList = false
|
2018-08-16 18:24:31 -04:00
|
|
|
|
2018-09-12 23:58:25 -04:00
|
|
|
[sam-forwarder]
|
|
|
|
type = server
|
|
|
|
host = 127.0.0.1
|
|
|
|
port = 8081
|
|
|
|
inbound.length = 3
|
|
|
|
outbound.length = 6
|
|
|
|
keys = forwarder
|
|
|
|
|
|
|
|
[sam-forwarder-two]
|
|
|
|
type = client
|
|
|
|
host = 127.0.0.1
|
|
|
|
port = 8082
|
|
|
|
inbound.length = 6
|
|
|
|
outbound.length = 3
|
|
|
|
keys = forwarder-two
|
2018-08-08 17:18:10 -04:00
|
|
|
|
2018-09-12 23:58:25 -04:00
|
|
|
[sam-forwarder-three]
|
|
|
|
type = udpclient
|
|
|
|
host = 127.0.0.1
|
|
|
|
port = 8083
|
|
|
|
inbound.length = 3
|
|
|
|
outbound.length = 6
|
|
|
|
keys = forwarder-three
|
2018-08-08 18:15:35 -04:00
|
|
|
|
2018-09-12 23:58:25 -04:00
|
|
|
[sam-forwarder-four]
|
|
|
|
type = udpserver
|
|
|
|
host = 127.0.0.1
|
|
|
|
port = 8084
|
|
|
|
inbound.length = 6
|
|
|
|
outbound.length = 3
|
|
|
|
keys = forwarder-four
|
|
|
|
|
|
|
|
[sam-forwarder-five]
|
|
|
|
type = http
|
|
|
|
host = 127.0.0.1
|
|
|
|
port = 8085
|
|
|
|
inbound.length = 3
|
|
|
|
outbound.length = 6
|
|
|
|
keys = forwarder-five
|
|
|
|
```
|
2018-08-16 12:11:09 -04:00
|
|
|
|