From 80a71e0fe5627c3ebc9ab444ce52840c24f98887 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 5 Jun 2015 09:08:38 -0400 Subject: [PATCH] Updated tunnels.cfg (markdown) --- tunnels.cfg.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tunnels.cfg.md b/tunnels.cfg.md index 86d1fe2..4ddf400 100644 --- a/tunnels.cfg.md +++ b/tunnels.cfg.md @@ -3,8 +3,9 @@ Must be located in ~/.i2pd. .ini file format. Consists of multiple sections with unique name each. -Section type is specified by 'type' parameter with possible values 'client' or 'server'. +Section type is specified by 'type' parameter with possible values 'client', 'server' or 'http'. Each 'client' specifies I2P client tunnel and each 'server' specifies I2P server tunnel. +'http' is special type of server tunnel for eepsites. Must contain few mandatory parameters, some optional parameters might be also presented. Example of client tunnel: @@ -20,15 +21,23 @@ If keys file is not found, new keys will be created and store into specified fil Client tunnels might share same local destination, if keys file contains same identity. Example of server tunnel: - `[WWW]` + `[smtp]` `type=server` `host=127.0.0.1` - `port=80` - `keys=eepsite.dat` + `port=25` + `keys=sendmail.dat` Keys must be presented, LeaseSet of address from keys file will be published. Server tunnel must use it's own local destination. Optional parameters: inport - what port at local destination server tunnel listens to. Same as 'port' by default. -accesslist - list of comma-separated of b32 address (without .b32.i2p) allowed to connect. Everybody is allowed by default. \ No newline at end of file +accesslist - list of comma-separated of b32 address (without .b32.i2p) allowed to connect. Everybody is allowed by default. + +'http' tunnel works same way as server tunnel, but replace 'Host: ' field in HTTP header to address provided in configuration. Also resolves it if necessary. +Example of http tunnel: +`[i2pd]` + `type=http` + `host=i2pd.website` + `port=80` + `keys=i2pd.dat`