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

Implement proxied connections #47

Merged
merged 2 commits into from
Feb 28, 2018
Merged

Implement proxied connections #47

merged 2 commits into from
Feb 28, 2018

Conversation

mathieui
Copy link
Contributor

What this PR does / why we need it:

This PR allows admins to define a "hop" when creating a server (typically needed when a machine is inside a walled network, with only one entrypoint).

The feature is implemented as follows:

  • when creating a host, there is a possiblity to add a "hop"
  • hops are referend them with the name of the host in sshportal
  • the hop ID is then saved in the DB in the hosts table
  • when connecting to a host, sshportal will recurse through all the possible hops of a host (allowing chained proxies)

Special notes for your reviewer:

I don’t know if this feature is wanted, but we found it quite useful. I couldn't find a contributing guide, but I'm of course open to any code change that may be needed to properly integrate this code in the project.

The feature is implemented as follows:
- when creating a host, there is a possiblity to add a "hop"
- hops are referend them with the name of the host in sshportal
- the hop ID is then saved in the DB in the hosts table
- when connecting to a host, sshportal will recurse through all the
  possible hops of a host (allowing chained proxies)
- allow changing the hop set for this host
- allow removing hops altogether
@moul
Copy link
Owner

moul commented Feb 28, 2018

Tested, and approved :)

That's super nice and works quite good with fantastic performances (considering alternatives with interactive jump hosts)

Thanks a lot!


Do you feel the motivation to add some documentation on the README?

@moul moul merged commit e65ef7c into moul:master Feb 28, 2018
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 this pull request may close these issues.

2 participants