i2pd icon indicating copy to clipboard operation
i2pd copied to clipboard

question reg http proxy

Open AlekseiKhatkevich opened this issue 1 year ago • 5 comments

This is rather question than issue, anyway

How to switch on http proxy?

HTTP Proxy | **Disabled**
-- | --
SOCKS Proxy | Enabled
BOB | Disabled
SAM | Enabled
I2CP | Disabled
I2PControl | Disabled

[httpproxy]
## Enable the HTTP proxy (default: true)
enabled = true
## Address and port service will listen on (default: 127.0.0.1:4444)
address = localhost
port = 4444
## Optional keys file for proxy local destination (default: http-proxy-keys.dat)
# keys = http-proxy-keys.dat
## Enable address helper for adding .i2p domains with "jump URLs" (default: true)
## You should disable this feature if your i2pd HTTP Proxy is public,
## because anyone could spoof the short domain via addresshelper and forward other users to phishing links
# addresshelper = true
## Address of a proxy server inside I2P, which is used to visit regular Internet
outproxy = purokishi.i2p
## httpproxy section also accepts I2CP parameters, like "inbound.length" etc.

I have as well i2p classic java based version installed and with this http proxy and outproxy works well, but not with i2pd What should i do to switch on http proxy and outproxy?

AlekseiKhatkevich avatar Jun 22 '24 09:06 AlekseiKhatkevich

Maybe because you trying to run both Java I2P and I2Pd http proxy on same port at one time?

r4sas avatar Jun 22 '24 09:06 r4sas

Maybe because you trying to run both Java I2P and I2Pd http proxy on same port at one time?

Well, i2p is swithed off while i2pd is working. Nobody uses port 4444 sudo ss -tunlp | grep 4444 - > None But 4447 in use by i2pd

sudo ss -tunlp | grep 4447
tcp   LISTEN 0      4096                              127.0.0.1:4447       0.0.0.0:*    users:(("i2pd",pid=5557,fd=35))                     

AlekseiKhatkevich avatar Jun 22 '24 10:06 AlekseiKhatkevich

Please share your i2pd.conf and check if data path on webconsole is correct.

r4sas avatar Jun 22 '24 16:06 r4sas

Data path: -- /var/lib/i2pd conf path -- /var/lib/i2pd/i2pd.conf file attached. Had to zip it to pass a file type validation.

i2pd.conf.zip

Plus i have found this 2 lines in log file: 12:05:24@30/warn - HTTPProxy: Outproxy failure for classify-client.services.mozilla.com: no outproxy enabled ... 12:05:29@30/warn - HTTPProxy: Sock recv got error: asio.misc:2 ... HTTPProxy: Error when creating the stream, check the previous warnings for more info ...

AlekseiKhatkevich avatar Jun 22 '24 16:06 AlekseiKhatkevich

You included symbolic link, not config itself.

Also, check if port 4444 is not used by other software, using netstat.

r4sas avatar Jun 30 '24 14:06 r4sas

t/o

r4sas avatar Oct 24 '24 20:10 r4sas