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

Add a --rm flag to "inletsctl create" for a temporary tunnel #41

Open
alexellis opened this issue Jan 30, 2020 · 7 comments
Open

Add a --rm flag to "inletsctl create" for a temporary tunnel #41

alexellis opened this issue Jan 30, 2020 · 7 comments

Comments

@alexellis
Copy link
Member

We should add a --rm flag to "inletsctl create" for when users need a temporary tunnel.

The use-case would be that I want to share my blog i.e. 127.0.0.1:4000 with a friend or colleague, but I don't want to be billed for the DigitalOcean VM beyond my 1-2 hours of uptime.

I'd run a command similar to docker run --rm which removes the tunnel immediately after I hit control + c or exit.

We'd have something like this, but it'd need to work with inlets-pro too:

OSS:

inletsctl create --rm --upstream http://127.0.0.1:4000

Your IP is: X
Starting "inlets client" now, hit control+c to delete the tunnel.

Pro:

inletsctl create --rm --license $LICENSE --remote-tcp=http://127.0.0.1
Your IP is: X
Starting "inlets-pro client" now, hit control+c to delete the tunnel.
@utsavanand2
Copy link
Contributor

@alexellis I would love to know what do you think the right approach would be?
Including inlets from inletsctl as a binary or including the package in the vendor dir?

@alexellis
Copy link
Member Author

For the first attempt you should do nothing and assume that is in the path. At later time we can invoke the existing code which performs a download, if we are unable to locate the binary.

@alexellis
Copy link
Member Author

@adamjohnson01 I think I missed your comment here?

@adamjohnson01
Copy link
Contributor

@alexellis, I said that I would work on it but then I saw @utsavanand2 said in slack that he was working on it so I removed it.

@utsavanand2
Copy link
Contributor

@adamjohnson01 I would love your feedback on it! Maybe we can collab together? I'll push some changes tonight. We'll see how it works.

@alexellis I've created a check which makes sure inlets or inlets-pro is in /usr/local/bin/

@alexellis
Copy link
Member Author

It might be worth keeping all messages rather than deleting any so that we don't clash or duplicate work. Async communication is hard.

@utsavanand2 for the first version, there's probably no need to check that the tool exists at all. Let's keep it simple and get it shipped quickly.

@adamjohnson01
Copy link
Contributor

@alexellis, you are right I should have commented instead of removing it. I just didn't want to create confusion about who was doing the work.

@utsavanand2, sure I am happy to help out however I can. :)

utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 1, 2020
The --rm flag (default true) will enable to point to
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 3, 2020
Fix issue with the opening of TCP ports for inlets-pro on GCE

The --rm flag will enable to point to
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)
Updates the firewall rule when switching between inlets OSS
and inlets-pro and opens up ports from 1024 to 65535 when using
inlets-pro.

Fixes inlets#41
Fixes inlets#44

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 3, 2020
Fix issue with the opening of TCP ports for inlets-pro on GCE

The --rm flag will enable to point to
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)
Updates the firewall rule when switching between inlets OSS
and inlets-pro and opens up ports from 1024 to 65535 when using
inlets-pro.

Fixes inlets#41
Fixes inlets#44

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 3, 2020
Fix issue with the opening of TCP ports for inlets-pro on GCE

The --rm flag will enable to point to
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)
Updates the firewall rule when switching between inlets OSS
and inlets-pro and opens up ports from 1024 to 65535 when using
inlets-pro.

Fixes inlets#41
Fixes inlets#44

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 9, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 9, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 10, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 24, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 25, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 25, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 25, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 25, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 25, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 25, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 27, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Feb 28, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Mar 3, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Mar 3, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Mar 4, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Mar 10, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Apr 15, 2020
an upstream or a remote-tcp and will delete the exit-node
on a SIGINT (control + c)

Huge thanks to @viveksyngh for helping me out
with the context cancellation bug!

Fixes inlets#41

Signed-off-by: Utsav Anand <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants