Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Using IPFS over a SOCKS proxy #185

Closed
mateon1 opened this issue Oct 3, 2016 · 3 comments
Closed

Using IPFS over a SOCKS proxy #185

mateon1 opened this issue Oct 3, 2016 · 3 comments

Comments

@mateon1
Copy link

mateon1 commented Oct 3, 2016

Recently, I've been on a network over which IPFS couldn't connect to anything, because of agressive outgoing port filtering, and the inability to punch through the NAT.
It did allow SSH (didn't filter port 22), so I'm wondering, whether it's possible to use IPFS over a SOCKS proxy, with an additional reverse-forwarded port for incoming connections.

An example solution would be:

ssh -R4001:0.0.0.0:4001 -D1080 user@remote

ipfs daemon --with-socks=localhost:1080

and

ipfs config Swarm.AdditionalAdvertised '["/ip4/remote/tcp/4001"]'
# and
ipfs swarm advertise /ip4/remote/tcp/4001
# (similarly to how `ipfs swarm filters` works)

Something along those lines should send everything through the localhost:1080 SOCKS proxy, and advertise /ip4/remote/tcp/4001/ipfs/QmPeerID to the swarm additionally to the regular addresses.

@ivar
Copy link

ivar commented Oct 23, 2016

This would be interesting to know, as it might facilitate anonymization by running IPFS over Tor.

@jbenet
Copy link
Contributor

jbenet commented Nov 14, 2016

  • Since IPFS is just opening and using ports it is definitely configurable to use proxies or virtual networks with your OS networking stack.
  • I recommend the vpn / cjdns approach to things -- where it's not a single proxy, but all traffic is routed over a special network.
  • It may or may not make sense to enable go-ipfs to follow proxy settings from a config -- not sure.
  • I like the Swarm.AdditionalAdvertised idea. something like that makes sense. if you'd like to propose it, prototype the whole feature in https://github.com/ipfs/go-ipfs
    • just as an issue in text is fine, just how it work in full. it can be tweaked and refined once it's being considered.
  • There will be native Tor support

@flyingzumwalt
Copy link
Contributor

This issue was moved to https://discuss.ipfs.io/t/using-ipfs-over-a-socks-proxy/440

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants