@flyingzumwalt Could you please share how, if you were able to solve it?
What I need is connect to a SOCKS5 proxy server on port 1080 authenticating with user and password, no ssh keys, and have all ipfs daemon traffic go through it, the same way as QBittorrent does with a SOCKS5 proxy server.
The authentication user name is an e-mail address which domain is not the same as the proxy one (which I can reference through its fixed IP). That poses no problem with QBittorrent.
I’d prefer the data tunnel not to be encrypted, to avoid adding latency and losing bandwidth.
Testing through OpenVPN anyway:
ipfs id I actually see that the last IP address is the VPN server one.
However, when accessing through some gateways some small jpeg and mp4 files that I’ve added to this node, 260 kBytes - 22 MBytes, what happens varies greatly, and doesn’t seem to depend much on the size. Sometimes, seldom alas, the file is downloaded quickly and completely from the gateway after 5-20 seconds for discovery, but more often the transfer hangs and restarts many seconds later or never at all.
Could it be related to problems in listening to port 4001?
$ sudo ufw status verbose
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
To Action From
-- ------ ----
4001/tcp on tun0 ALLOW IN Anywhere # ipfs daemon
4001/tcp ALLOW IN Anywhere # ipfs daemon
4001/tcp (v6) on tun0 ALLOW IN Anywhere (v6) # ipfs daemon
4001/tcp (v6) ALLOW IN Anywhere (v6) # ipfs daemon
I have no better results when disabling the firewall completely.
$ ipfs swarm peers | wc -l
I see - much faster - 750-880 peers when not going through the VPN.
In that case,
ipfs id shows my public IP, but transfers from my node seem to be even more problematic. I find it thrilling, however, that they aren’t completely dead, maybe some chunks of data can travel because other nodes config has “EnableRelayHop”: true?
Not indispensable details:
I’ve gone through plenty of articles and tried with ssh, nc, ncat, tsocks, two versions of proxychains and socksify, without success so far (I haven’t given up yet but this is driving me nuts).
Alas after a big effort to switch to an ISP with higher bandwidth (nothing fancy anyway) and lower latency, to have them arrive here with an optical fiber cable, I get to know that they aren’t allowing to open any ports on their modems for incoming connections, since three months ago I’m told. I guess they had some hacks… I insisted that the port number only means anything when the packet reaches its destination, with no result.
(Damn my previous ISP was slower but they had put my modem in bridge mode.)
I need to solve this, not only because I’d like to run an IPFS node myself but also because I’d like to recruit a few more persons to do so and I guess that some of them might face the same situation.
The next step, ideally, would be what I described in my previous post, to be able to connect one ipfs daemon instance to various SOCKS5 proxy servers simultaneously, with balanced load and failover. But being able to connect to just one would be great already now.
Thanks for any advice!