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

Cloudflared connection via account #103

Open
joaomamede opened this issue Oct 25, 2021 · 3 comments
Open

Cloudflared connection via account #103

joaomamede opened this issue Oct 25, 2021 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@joaomamede
Copy link

joaomamede commented Oct 25, 2021

Hello, I would like to start a cloudflare argo tunnel through my cloudflare account and application that is well configured.
As I see from the code it's not possible to do so correct? (only free anonymous tunnels?)

I would like to request to have an option to do so?
https://developers.cloudflare.com/cloudflare-one/tutorials/ssh

$ cloudflared tunnel login
$ cloudflared tunnel create <NAME>

add the config.yml file example from the tunnel above:

tunnel: 6ff42ae2-765d-4adf-8112-31c55c1551ef 
credentials-file: /root/.cloudflared/6ff42ae2-765d-4adf-8112-31c55c1551ef.json

ingress:
  - hostname: tunnel.example.com
    service: ssh://localhost:22
  - service: http_status:404
  # Catch-all rule, which responds with 404 if traffic doesn't match any of
  # the earlier rules

$ cloudflared tunnel run <NAME>

@WassimBenzarti WassimBenzarti added enhancement New feature or request good first issue Good for newcomers labels Oct 27, 2021
@WassimBenzarti
Copy link
Owner

Hello @joaomamede, Welcome to Colab-ssh community!

Thank you for suggesting this feature request. I think it would be useful for Cloudflare users.

I will look into it and read the docs and see what changes we need to make. If anyone is interested to help, feel free to create a pull request.

@joaomamede Could you please walk me through the key differences between launching a tunnel using a Cloudflare account and anonymously.

@joaomamede
Copy link
Author

joaomamede commented Oct 27, 2021

The anonymous tunnels break more often, although with google colab being designed to be a temporary session it seems a good match, but it should help to keep certain things going smoothly, when I try to do sshfs mount it breaks everything right away.

The address will always be the same as well. For example.
mysshcolab.myowndomain.com
Therefore we could always use the same code without problem.

There's a separate thing I'd like to put on the scripts if I had the time (easier). is to use cloudflared exec file, to connect to cloudflare tunnels in the client setting. It's very useful as well.

@joaomamede
Copy link
Author

I just made a fork that should do it (if you provide a tar.bz2 with all the same certificates and configurations (as in my initial post).
My plan would be to separate the download of cloudflared etc, and then have another function to do like yours do, and a 3rd to do it with a personal domain config!

https://github.com/joaomamede/colab-ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants