Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Implemented socks5 proxy #65

Merged
merged 1 commit into from
May 13, 2015
Merged

Conversation

abitfan
Copy link
Contributor

@abitfan abitfan commented May 7, 2015

Socks5 proxy support as per #63

@abitfan
Copy link
Contributor Author

abitfan commented May 7, 2015

This doesn't support .onion sites yet

@chris-belcher
Copy link
Collaborator

It actually does work with .onions

I just tried it with another IRC onion and it works. The problem is the snoonet onion is down, I confirmed it asking in #snoonet, they do plan to get it back up in time.

Tested it, seems to work. Will merge.

@BitPopCoin
Copy link

Tor may cause more disconnects

#34

#21

@chris-belcher
Copy link
Collaborator

@BippopCoin what do you mean by linking those other issues? Please explain why they're relevant, I don't understand.

@BitPopCoin
Copy link

I think those issues relate to disconnects and issues that occur after

@chris-belcher
Copy link
Collaborator

@abitfan please get in touch: belcher@riseup.net or the IRC channel

chris-belcher added a commit that referenced this pull request May 13, 2015
@chris-belcher chris-belcher merged commit d3c40ea into JoinMarket-Org:master May 13, 2015
@BitPopCoin
Copy link

Can this be added to blockr?

@BitPopCoin
Copy link

Guys are you sure this works? For me it's working using any port which means it's not really using the proxy.

@abitfan
Copy link
Contributor Author

abitfan commented May 13, 2015

I get ProxyConnectionError(), as expected, when using a non socks port.
So far I'm connecting successfully with non-tor socks but with tor I still haven't managed to connect and its a pita to test due to servers being down, refusing tor connections or meaningless errors which are hard to hunt down. I will eventually setup a tor irc server to get this finished.
When you are enabling socks you need to disable ssl for it to properly work, as the ssl wrapping is causing some problems.

@chris-belcher sent you an email, you can also use bitmessage listed on my profile

@chris-belcher
Copy link
Collaborator

When I was testing I found a working irc onion on reddit.com/r/onions I think, or maybe it was the hidden wiki.

It worked for me. The socks protocol that tor uses is the same as any other socks protocol, no reason it shouldn't work for both.

@chris-belcher
Copy link
Collaborator

Connecting to an onion proves the DNS redirection works, because regular DNS doesn't understand the .onion TLD

@BitPopCoin
Copy link

Look at the port, this isn't possible unless I'm an idiot?

13 10:39:12] starting irc
[2015/05/13 10:39:12] connecting
[2015/05/13 10:39:12] Using socks5 proxy 127.0.0.1:80085
[2015/05/13 10:39:14] >>pubmsg !orderbook
[2015/05/13 10:39:14] Connected to IRC and joined channel
waiting for all orders to certainly arrive

@chris-belcher
Copy link
Collaborator

Yes port numbers only go up to 65535 or so.

Thats from here https://github.com/chris-belcher/joinmarket/blob/master/lib/irc.py#L455

Looks like the format string uses %s:%s when it should be %s:%d, easy fix. And doesn't affect the actual proxying.

ghtdak pushed a commit to ghtdak/joinmarket that referenced this pull request Oct 1, 2015
ghtdak pushed a commit to ghtdak/joinmarket that referenced this pull request Oct 4, 2015
ghtdak pushed a commit to ghtdak/joinmarket that referenced this pull request Dec 4, 2015
Implemented socks5 proxy
[gitreformat yapf-ify (github/ghtdak) on Fri Dec  4 04:47:09 2015]
[from commit: d3c40ea]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants