Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox-bootstrap daemon behind reverse proxy #1338

Open
rong-00gle opened this issue Aug 19, 2019 · 8 comments
Open

tox-bootstrap daemon behind reverse proxy #1338

rong-00gle opened this issue Aug 19, 2019 · 8 comments
Labels
P3 Low priority
Milestone

Comments

@rong-00gle
Copy link

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
Copy link
Member

nurupo commented Aug 20, 2019

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
Copy link
Author

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
Copy link
Member

nurupo commented Aug 20, 2019

Okay, a few things to note:

  • DHT in toxcore is UDP-only
  • If you don't open UDP port, tox-boostrapd won't be able to connect to other bootstrap nodes you have listed in the config file, as well as other nodes won't be able to connect to you
  • The TCP is for the Relay Server functionality, which is basically your tox-bootstrapd providing a service of a DHT node to clients who can't run their own DHT node due to e.g. being behind a restrictive NAT or not able to use UDP
  • qTox should be able to connect to your tox-boostrapd through either UDP or TCP, even if your tox-bootstrap node is not connected to any other node, so maybe your qTox is not configured to connect to your node through TCP? qTox should write in the log file which nodes it's connecting to.

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
Copy link
Author

rong-00gle commented Aug 26, 2019

@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 iphydf added this to the v0.2.x milestone Apr 24, 2020
@iphydf iphydf added the P3 Low priority label Apr 27, 2020
@iphydf
Copy link
Member

iphydf commented Feb 4, 2022

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

This comment was marked as off-topic.

@nurupo
Copy link
Member

nurupo commented Feb 7, 2024

@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

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Low priority
Projects
None yet
Development

No branches or pull requests

4 participants