TokTok / c-toxcore

The future of online communications.
https://tox.chat
GNU General Public License v3.0
2.24k stars 283 forks source link

tox-bootstrap daemon behind reverse proxy #1338

Open rong-00gle opened 5 years ago

rong-00gle commented 5 years ago

Hi, I wanna configure tox-bootstrap daemon or tox node behind a firewall(port forwording). nmap scan shows port is open but qtox(client) is unable to connect with node.

Does tox-bootstrap daemon work behind reverse proxy? If no, is there any other way of putting my node behind a firewall?

nurupo commented 5 years ago

tox-bootstrapd uses UDP port 33445, so make sure that passes through your firewall/proxy. If you have tcp relay feature enabled, then you need to pass through the corresponding TCP ports. You can change ports in the config file.

rong-00gle commented 5 years ago

I have host my tox-bootstrap node(only tcp port 33445) behind cisco-asa firewall. port forwarding done - nmap show port is open but my tox-client(qtox) unable to connect with dht node.

nurupo commented 5 years ago

Okay, a few things to note:

If you node is on the internet, you can check if it works with this test page https://nodes.tox.chat/test. It sends some packets to you node and checks if it gets the correct response back. If it's in a private network, you can telnet into your node telnet <ip> 33445 to at least make sure there is something accepting TCP connections on there (I guess nmap works too).

Anyway, from what you have described it sounds like your tox-boostrapd node should have no issues with receiving TCP connections, so make sure that qTox is actually attempting to connect to it through TCP. You might want to open an issue at https://github.com/qTox/qTox and have qTox folks help you figure out why qTox is not connecting to the node if you have hard time troubleshooting it yourself.

rong-00gle commented 5 years ago

@nurupo Hi, tox clients(qtox, isotoxin) are still unable to connect(status: offline) with tox-bootstrap node hosted by me.

tox-client status client shows offline, tcp connection state is ESTABLISHED: Screenshot from 2019-08-26 17-21-42

tox-bootstrap node status: Screenshot from 2019-08-26 13-27-03

tox-bootstrap node status on https://nodes.tox.chat/test Screenshot from 2019-08-26 17-08-45

What i want is host some nodes(only tcp) which will isolated from any other third-party tox-nodes, my clients will be only using tcp port to connect with tox-nodes?Must me something which i am missing, please help me with this?

iphydf commented 2 years ago

Please try this again with latest master (or in a few days, v0.2.14). There's more logging now so we could find out what's going wrong.

emdee-is commented 6 months ago

If you node is on the internet, you can check if it works with this test page https://nodes.tox.chat/test.

Does nodes.tox.chat/test actually work? Requests to nodes I know are good give me request timed out for UDP and errors for TCP.

Is it working or is the timeout too short?

@nurupo Is the code for this on github? Any idea where?

Is the code for the wiki or its pages on github? Any idea where?

There's nothing much in https://github.com/Tox/tox.chat - just some themes and javascript.

nurupo commented 6 months ago

@emdee-is please don't necropost with questions that are not related to the issue at hand, either open a new issue, or just ask on IRC / groupchat.

emdee-is commented 6 months ago

Sure - I will, but I was quoting you from directly in this issue: https://github.com/TokTok/c-toxcore/issues/1338#issuecomment-522859928 That makes it on topic/in issue - sorry I didn't take the time to cite the quote.

You gave the quote as an answer to the issue at hand, and I was just pointing out that the answer is currently broken/not working, and that if it was working that would be nice for other reasons testing the tox-bootstrap daemon beyond just this issue. And the issue is 0,2.x milestoned https://github.com/TokTok/c-toxcore/issues/1338#event-3269693108 - which means it's alive and on-topic, albeit old.

A necropost is in a discussion forum; this is a milestoned issue tagged with the current major milestone; sometimes old issues are still relevant - the project has no QA or priotitization. Plus as a user, I have a lot of concern that the Tox infrastructure is decaying: I would have opened a new issue in the repo with the code for the /test if it was somewhere on github. Any idea where, or who wrote or maintains the code?

@nurupo Of course if this comment is marked as off-topic and the questions remain unanswered, I'll leave you to your necrotic issue and your deceased server. Which makes me ask if the hiding of the comment is to hide that you know the infrastructure is not working and is not fixed.