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

Proxy TCP traffic to/from Miner via Hub #5

Open
noxiouz opened this issue Jun 9, 2017 · 0 comments
Open

Proxy TCP traffic to/from Miner via Hub #5

noxiouz opened this issue Jun 9, 2017 · 0 comments
Milestone

Comments

@noxiouz
Copy link
Contributor

noxiouz commented Jun 9, 2017

Now Miner has multiplexed TCP connection to a Hub. We can use extra channels to proxy TCP traffic to/from the miner via Hub

Steps for naive solution:

  • Miner should detect NAT (look at Miner should detect if it has public IPv4/IPv6 #15)
  • If the miner needs proxy, the hub should listen a port, patch returned values to a CLI
  • when accept returns a connection, open new stream in the conn to Miner
  • transfer traffic through it.
  • all open listeners must be bound to a miner's context and task inside Hub to be properly disposed.
  • miner must transport actual info about lauched tasks

Suggested optimizations for naive userspace proxy solution:

  • do not send traffic from miner via hub. Just dance around src packet address (like tunnel IPvS)
@noxiouz noxiouz added this to the alpha milestone Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant