stangri / source.openwrt.melmac.net

OpenWrt Packages
GNU General Public License v3.0
145 stars 47 forks source link

[PBR] Wish: I2P Support #133

Open FZXizzbKv7jg opened 3 years ago

FZXizzbKv7jg commented 3 years ago

Support I2P provided by package i2pd.

stangri commented 2 years ago

I have zero experience with that protocol, and I don't have the time to experiment with it right now. If you can provide the following information I can have a look at supporting it:

  1. How to identify i2p interface.
  2. How to obtain i2p interface gateway.
FZXizzbKv7jg commented 2 years ago

service name: i2pd

config /etc/i2pd/i2pd.conf:

## Where to write pidfile (default: i2pd.pid, not used in Windows)
# pidfile = /run/i2pd.pid

## Network interface to bind to                        
## Updates address4/6 options if they are not set                                                                                                             
ifname = vpniface

## External IPv4 or IPv6 address to listen for connections  
## By default i2pd sets IP automatically                                                                                                                 
# host = 1.2.3.4   

## Port to listen for connections                                      
## By default i2pd picks random port. You MUST pick a random number too,    
## don't just uncomment this                                         
# port = 4567  

[httpproxy]                                                                    
## Uncomment and set to 'false' to disable HTTP Proxy                       
# enabled = true                                                         
## Address and port service will listen on                                     
address = 192.168.1.1                                                       
port = 4444    

tunnels config: /etc/i2pd/tunnels.conf

stangri commented 2 years ago

So on your system there's an interface called 'vpniface'?

FZXizzbKv7jg commented 2 years ago

Several interfaces for lan, wan, wg, with a different name. There's no interface to create for i2p.

You can bind i2p to a wan or vpn interface.

The implementation for i2p should be similar to tor's. Suffix is .i2p .

stangri commented 2 years ago

The implementation for i2p should be similar to tor's. Suffix is .i2p .

So it's a proxy where you can send HTTP/HTTPS requests?

FZXizzbKv7jg commented 2 years ago

Yes right.