PurpleI2P / i2pd

🛡 I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website
BSD 3-Clause "New" or "Revised" License
3.29k stars 424 forks source link

Question about setting proxy-server with google-chrome #1809

Closed raphael10-collab closed 1 year ago

raphael10-collab commented 2 years ago

In order to be able to see i2p sites, I started with Ubuntu 22.04 Desktop google chrome as follows:

google-chrome-stable --proxy-server="http://127.0.0.1:4444/" . Tried to access this i2p site : 
https://kmpmk2fmineaiwublteqlifg4fkmewnhmxqlcgg7qwecz6daj43a.b32.i2p/  

But I got : "There is something wrong with the proxy server, or the address is incorrect"

How to make it work?

r4sas commented 2 years ago
  1. Most of I2P didn't use HTTPS. Use HTTP
  2. Address in your post is offline
  3. Do not include quotation marks: --proxy-server=http://127.0.0.1:4444
  4. Use SwitchyOmega extension for configuring proxies
raphael10-collab commented 1 year ago

From this blog: https://mhatta.medium.com/the-hitchhikers-guide-to-the-i2p-eepsites-e4dfe6bb7a45 I've taken this sample i2p address: http://kmpmk2fmineaiwublteqlifg4fkmewnhmxqlcgg7qwecz6daj43a.b32.i2p/ : is it online or offline ?

image

These are the settings of SwitchOmega :

image

image

r4sas commented 1 year ago

Example PAC file:

var FindProxyForURL = function(init, profiles) {
    return function(url, host) {
        "use strict";
        var result = init, scheme = url.substr(0, url.indexOf(":"));
        do {
            result = profiles[result];
            if (typeof result === "function") result = result(url, host, scheme);
        } while (typeof result !== "string" || result.charCodeAt(0) === 43);
        return result;
    };
}("+Auto", {
    "+Auto": function(url, host, scheme) {
        "use strict";
        if (/:\/\/[-a-zA-Z0-9.]+\.i2p(:\d+)?\//.test(url)) return "+I2P";
        return "DIRECT";
    },
    "+I2P": function(url, host, scheme) {
        "use strict";
        if (/^127\.0\.0\.1$/.test(host) || /^::1$/.test(host) || /^localhost$/.test(host) || host[host.length - 1] >= 0 && isInNet(host, "192.168.0.0", "255.255.0.0")) return "DIRECT";
        return "PROXY 127.0.0.1:4444";
    }
});
r4sas commented 1 year ago

image image

URL Regex for I2P: ://[-a-zA-Z0-9.]+\.i2p(:\d+)?/

raphael10-collab commented 1 year ago

I've created with three profiles:

image

URL Regex for I2P: ://[-a-zA-Z0-9.]+.i2p(:\d+)?/
image

image

image

But still I'm not able to see this I2P website: https://dmwqjoudwbxhqswhpitrhr6byc6afuvvja4reo7ecaoc3bpfxwdq.b32.i2p/ :

image

image

image

r4sas commented 1 year ago
  1. You have not started i2pd
  2. HTTPS again. Use http://dmwqjoudwbxhqswhpitrhr6byc6afuvvja4reo7ecaoc3bpfxwdq.b32.i2p/
raphael10-collab commented 1 year ago

Now it works fine

image

Thank you very much @r4sas