🛡 I2P: End-to-End encrypted and anonymous Internet
Go to file
2015-11-30 10:23:05 -05: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 * use stricter linker options for .deb packages 2015-11-27 14:02:19 +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 Configurable addresses from master 2015-11-30 16:44:32 +02:00
BOB.h Configurable addresses from master 2015-11-30 16:44:32 +02:00
ClientContext.cpp Configurable addresses from master 2015-11-30 16:44:32 +02:00
ClientContext.h Configurable addresses from master 2015-11-30 16:44:32 +02: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 Configurable addresses from master 2015-11-30 16:44:32 +02: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 Configurable addresses from master 2015-11-30 16:44:32 +02:00
HTTPProxy.h Configurable addresses from master 2015-11-30 16:44:32 +02:00
HTTPServer.cpp Configurable addresses from master 2015-11-30 16:44:32 +02:00
HTTPServer.h Configurable addresses from master 2015-11-30 16:44:32 +02: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 Configurable addresses from master 2015-11-30 16:44:32 +02:00
I2PControl.h Configurable addresses from master 2015-11-30 16:44:32 +02: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 Configurable addresses from master 2015-11-30 16:44:32 +02:00
I2PTunnel.cpp Configurable addresses from master 2015-11-30 16:44:32 +02:00
I2PTunnel.h Configurable addresses from master 2015-11-30 16:44:32 +02: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 * set defaults to *FLAGS instead redefining them 2015-11-27 14:01:15 +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 Configurable addresses from master 2015-11-30 16:44:32 +02: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 Configurable addresses from master 2015-11-30 16:44:32 +02:00
SAM.h Configurable addresses from master 2015-11-30 16:44:32 +02:00
Signature.cpp eliminate some unnecessary calculations 2015-11-27 22:16:10 -05:00
Signature.h copy constructor for Ed22519 2015-11-26 13:31:30 -05:00
SOCKS.cpp Configurable addresses from master 2015-11-30 16:44:32 +02:00
SOCKS.h Configurable addresses from master 2015-11-30 16:44:32 +02:00
SSU.cpp more introducers 2015-11-29 17:25:42 -05:00
SSU.h create SSU session in SSU thread 2015-11-29 09:10:49 -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 pass shared_ptr to SendRelayIntro 2015-11-30 10:23:05 -05:00
SSUSession.h pass shared_ptr to SendRelayIntro 2015-11-30 10:23:05 -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
  • --httpaddress= - The address to listen on (HTTP server)
  • --httpport= - The port to listen on (HTTP server)
  • --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.
  • --httpproxyaddress= - The address to listen on (HTTP Proxy)
  • --httpproxyport= - The port to listen on (HTTP Proxy) 4446 by default
  • --socksproxyaddress= - The address to listen on (SOCKS Proxy)
  • --socksproxyport= - The port to listen on (SOCKS Proxy). 4447 by default
  • --proxykeys= - optional keys file for proxy's local destination
  • --ircaddress= - The address to listen on (IRC tunnel)
  • --ircport= - The port listen on (IRC tunnel). 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
  • --samaddress= - The address to listen on (SAM bridge)
  • --samport= - Port of SAM bridge. Usually 7656. SAM is off if not specified
  • --bobaddress= - The address to listen on (BOB command channel)
  • --bobport= - Port of BOB command channel. Usually 2827. BOB is off if not specified
  • --i2pcontroladdress= - The address to listen on (I2P control service)
  • --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 = [,]