Go to file
2015-11-27 14:01:15 +00:00
build delete build/cmake_modules/FindCryptoPP.cmake (now using openssl) 2015-11-26 11:24:02 +00:00
contrib/certificates cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
debian * fix Depends: for i2pd-dbg 2015-11-27 14:01:15 +00:00
Win32 fixed mingw build error 2015-11-20 12:34:53 -05:00
.gitignore Add libi2pd.so to .gitignore 2015-03-18 11:26:17 +06:00
AddressBook.cpp use path.string () instead path.c_str () 2015-11-20 12:30:20 -05:00
AddressBook.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
api.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
api.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
Base.cpp check for zero-length 2015-11-20 10:10:13 -05:00
Base.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
BOB.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
BOB.h pass LeaseSet to callback of RequestDestination 2015-04-07 12:02:25 -04:00
ClientContext.cpp Make tunnels.cfg configurable 2015-11-20 13:59:00 +01:00
ClientContext.h Make tunnels.cfg configurable 2015-11-20 13:59:00 +01:00
Crypto.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
Crypto.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
CryptoConst.cpp initialize crpto constants on demand 2014-09-21 18:17:16 -04:00
CryptoConst.h RSA signatures 2014-12-10 21:31:06 -05:00
Daemon.cpp Reorder ssl/boost includes to avoid winsock complains 2015-11-11 13:44:52 -06:00
Daemon.h use system folders if run as service 2014-10-17 09:55:41 -04:00
DaemonLinux.cpp fixed build error 2015-06-19 16:06:14 -04:00
DaemonWin32.cpp Using the d-pointer to hide HTTPProxy, HTTPServer, add logfile ofstream 2014-04-23 02:07:21 +04:00
Datagram.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
Datagram.h always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
Destination.cpp backport fix build for clang 2015-11-20 10:02:54 -05:00
Destination.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
filelist.mk Makefile.mingw added 2015-11-10 14:09:26 -05:00
Garlic.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
Garlic.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
HTTPProxy.cpp Use static for now while returning HTTP 500 error 2015-06-19 14:47:44 -05:00
HTTPProxy.h use shared_ptr for socket in I2PTunnelConnection 2015-04-06 14:41:07 -04:00
HTTPServer.cpp fixed access to eepsites from webconsole 2015-11-22 21:02:02 -05:00
HTTPServer.h use shared_ptr for sockets 2015-11-22 17:01:37 -05:00
i2pd.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
I2NPProtocol.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
I2NPProtocol.h always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
I2PControl.cpp async handshake 2015-11-25 13:11:02 -05:00
I2PControl.h async handshake 2015-11-25 13:11:02 -05:00
I2PEndian.cpp Avoid aliasing problems by using special buf endian handling functions wrapping memcpy 2014-12-29 23:04:02 +01:00
I2PEndian.h backport openbsd support 2015-11-20 09:55:34 -05:00
I2PService.cpp use shared_ptr for socket in I2PTunnelConnection 2015-04-06 14:41:07 -04:00
I2PService.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
I2PTunnel.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
I2PTunnel.h replace Host: for server http tunnels 2015-06-03 12:30:15 -04:00
Identity.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
Identity.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
LeaseSet.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
LeaseSet.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
LICENSE Update LICENSE 2015-01-23 14:02:37 -05:00
LittleBigEndian.h fix LittleEndian, change endian.h version 2014-02-05 09:14:07 +04:00
Log.cpp backport fix build for clang 2015-11-20 10:02:54 -05:00
Log.h backport fix build for clang 2015-11-20 10:02:54 -05:00
Makefile more separation between api and executable builds 2015-11-21 17:04:40 -05:00
Makefile.bsd * Makefile.* : fix build with gcc 4.7.2 (#299) 2015-11-27 11:42:44 +00:00
Makefile.linux * Makefile.* : fix build with gcc 4.7.2 (#299) 2015-11-27 11:42:44 +00:00
Makefile.mingw more separation between api and executable builds 2015-11-21 17:04:40 -05:00
Makefile.osx Fix Mac OSX build error. 2015-01-03 21:33:27 +01:00
NetDb.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
NetDb.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
NetDbRequests.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
NetDbRequests.h shared_ptr for lookup messages 2015-06-22 15:47:45 -04:00
NTCPSession.cpp eliminate session creation collision 2015-11-25 11:51:35 -05:00
NTCPSession.h eliminate session creation collision 2015-11-25 11:51:35 -05:00
Profiling.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
Profiling.h changed profiling algorithm 2015-06-09 14:04:25 -04:00
Queue.h more generic queue 2015-06-16 13:14:33 -04:00
README.md Update README.md 2015-11-26 21:04:19 -05:00
Reseed.cpp fixed build for gcc 4.6 and boost 1.46 2015-11-06 09:01:02 -05:00
Reseed.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
RouterContext.cpp EdDSA speed improvement 2015-11-04 13:48:30 -05:00
RouterContext.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
RouterInfo.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
RouterInfo.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
SAM.cpp Minor omissions 2015-11-11 13:21:52 -06:00
SAM.h format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int} 2015-11-26 11:23:27 +00:00
Signature.cpp Ed25519 per thread 2015-11-26 14:00:40 -05:00
Signature.h copy constructor for Ed22519 2015-11-26 13:31:30 -05:00
SOCKS.cpp use shared_ptr for socket in I2PTunnelConnection 2015-04-06 14:41:07 -04:00
SOCKS.h use shared_ptr for socket in I2PTunnelConnection 2015-04-06 14:41:07 -04:00
SSU.cpp split between CreateSession and CreateSessionThrough Introducer 2015-11-26 16:20:24 -05:00
SSU.h split between CreateSession and CreateSessionThrough Introducer 2015-11-26 16:20:24 -05:00
SSUData.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
SSUData.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
SSUSession.cpp skip extended options in SSU header 2015-11-16 13:27:27 -05:00
SSUSession.h skip extended options in SSU header 2015-11-16 13:27:27 -05:00
stdafx.cpp Precompiled headers 2015-06-10 13:41:08 -05:00
stdafx.h Use OpenSSL & zlib in precompiled headers 2015-11-11 13:48:49 -06:00
Streaming.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
Streaming.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
Timestamp.h ms visual studio 2013 support 2014-01-09 23:56:07 +04:00
TransitTunnel.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
TransitTunnel.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
Transports.cpp replace GetSession to CreateSession 2015-11-25 12:51:35 -05:00
Transports.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
TransportSession.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
Tunnel.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
Tunnel.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
TunnelBase.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
TunnelConfig.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
TunnelEndpoint.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
TunnelEndpoint.h use shared_ptr for I2NP messages through tunnels 2015-06-19 14:38:31 -04:00
TunnelGateway.cpp always use shared_ptr for I2NPMessage 2015-11-24 13:09:12 -05:00
TunnelGateway.h random non-zero padding 2015-06-26 16:06:59 -04:00
TunnelPool.cpp cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
TunnelPool.h cumulative update from bitbucket 2015-11-03 09:15:49 -05:00
UPnP.cpp fixup! Fix UPnP for Win32 2015-06-20 00:50:12 -05:00
UPnP.h Fix UPnP for Win32 2015-06-06 13:53:22 -05:00
util.cpp fixed mingw build error 2015-11-20 11:42:38 -05:00
util.h Make tunnels.cfg configurable 2015-11-20 13:59:00 +01:00
version.h 0.9.23/2.1.0 version update 2015-11-19 09:26:38 -05:00

i2pd

I2P router written in C++ Contains all ongoing changes from https://bitbucket.org/orignal/i2pd/src

License

This project is licensed under the BSD 3-clause license, which can be found in the file LICENSE in the root of the project source code.

Donations

BTC: 1K7Ds6KUeR8ya287UC4rYTjvC96vXyZbDY
LTC: LKQirrYrDeTuAPnpYq5y7LVKtywfkkHi59
ANC: AQJYweYYUqM1nVfLqfoSMpUMfzxvS4Xd7z

Requirements for Linux/FreeBSD/OSX

GCC 4.6 or newer, Boost 1.46 or newer, openssl, zlib. Clang can be used instead of GCC.

Requirements for Windows

VS2013 (known to work with 12.0.21005.1 or newer), Boost 1.46 or newer, crypto++ 5.62. See Win32/README-Build.txt for instructions on how to build i2pd and its dependencies.

Downloads

Official binary releases could be found at: http://i2pd.website/releases/
older releases http://download.i2p.io/purplei2p/i2pd/releases/

Build Statuses

  • Linux x64 - Build Status
  • Linux ARM - To be added
  • Mac OS X - Got it working, but not well tested. (Only works with clang, not GCC.)
  • Microsoft VC13 - To be added

Testing

First, build it.

On Ubuntu/Debian based

  • sudo apt-get install libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev libboost-date-time-dev libssl-dev zlib1g-dev
  • $ cd i2pd
  • $ make

Then, run it:

$ ./i2p

The client should now reseed by itself. To visit an eepsite use HTTP proxy port 4446. For tunnels follow instructions

Cmdline options

  • --host= - The external IP (deprecated).
  • --port= - The port to listen on
  • --httpport= - The http port to listen on
  • --log= - Enable or disable logging to file. 1 for yes, 0 for no.
  • --daemon= - Enable or disable daemon mode. 1 for yes, 0 for no.
  • --service= - 1 if uses system folders (/var/run/i2pd.pid, /var/log/i2pd.log, /var/lib/i2pd).
  • --v6= - 1 if supports communication through ipv6, off by default
  • --floodfill= - 1 if router is floodfill, off by default
  • --bandwidth= - L if bandwidth is limited to 32Kbs/sec, O if not. Always O if floodfill, otherwise L by default.
  • --httpproxyport= - The port to listen on (HTTP Proxy)
  • --socksproxyport= - The port to listen on (SOCKS Proxy)
  • --proxykeys= - optional keys file for proxy's local destination
  • --ircport= - The local port of IRC tunnel to listen on. 6668 by default
  • --ircdest= - I2P destination address of IRC server. For example irc.postman.i2p
  • --irckeys= - optional keys file for tunnel's local destination
  • --eepkeys= - File name containing destination keys, for example privKeys.dat. The file will be created if it does not already exist (issue #110).
  • --eephost= - Address incoming trafic forward to. 127.0.0.1 by default
  • --eepport= - Port incoming trafic forward to. 80 by default
  • --samport= - Port of SAM bridge. Usually 7656. SAM is off if not specified
  • --bobport= - Port of BOB command channel. Usually 2827. BOB is off if not specified
  • --i2pcontrolport= - Port of I2P control service. Usually 7650. I2PControl is off if not specified
  • --tunnelscfg= - Tunnels Config file (default: ~/.i2pd/tunnels.cfg or /var/lib/i2pd/tunnels.cfg)
  • --conf= - Config file (default: ~/.i2pd/i2p.conf or /var/lib/i2pd/i2p.conf) This parameter will be silently ignored if the specified config file does not exist. Options specified on the command line take precedence over those in the config file.

Config files

INI-like, syntax is the following : = . All command-line parameters are allowed as keys, for example:

i2p.conf:

log = 1
v6 = 0
ircdest = irc.postman.i2p

tunnels.cfg (filename of this config is subject of change):

; outgoing tunnel sample, to remote service
; mandatory parameters:
; * type -- always "client"
; * port -- local port to listen to
; * destination -- i2p hostname
; optional parameters (may be omitted)
; * keys -- our identity, if unset, will be generated on every startup,
; if set and file missing, keys will be generated and placed to this file
[IRC]
type = client
port = 6668
destination = irc.echelon.i2p
keys = irc-keys.dat

; incoming tunnel sample, for local service
; mandatory parameters:
; * type -- always "server"
; * host -- ip address of our service
; * port -- port of our service
; * keys -- file with LeaseSet of address in i2p
; optional parameters (may be omitted)
; * inport -- optional, i2p service port, if unset - the same as 'port'
; * accesslist -- comma-separated list of i2p addresses, allowed to connect
; every address is b32 without '.b32.i2p' part
[LOCALSITE]
type = server
host = 127.0.0.1
port = 80
keys = site-keys.dat
inport = 81
accesslist = [,]