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

Ssh port forwarding? #300

Open
fzyzcjy opened this issue Apr 13, 2022 · 2 comments
Open

Ssh port forwarding? #300

fzyzcjy opened this issue Apr 13, 2022 · 2 comments

Comments

@fzyzcjy
Copy link

fzyzcjy commented Apr 13, 2022

Hi thanks for the project! I wonder whether ssh port forwarding is supported? For example, suppose there is an application in the private network using port 1234, and I want to communicate with that port directly at my local development machine. If the bastion is a normal server, I can use ssh port forward like ssh the-bastion -L 1234:some-ip:1234 and happily access localhost:1234 in my development machine.

@speed47
Copy link
Collaborator

speed47 commented Jun 24, 2022

Hey @fzyzcjy , actually ssh port forwarding is explicitly disabled on the bastion, because it could be used as a way to bypass its logic entirely and punch a hole in the traceability feature.

For example you could redirect a remote ssh port to your own machine, through the bastion, then use this tunnel to access it remotely from your machine, without using the bastion logic anymore, and the bastion wouldn't be able to see anything.

Disabling port forwarding helps asserting that the accesses are exhaustively traced on your infrastructure (closes a possible loop-hole), and as traceability is one of the main missions of the bastion, that's why it has been done this way.

@fzyzcjy
Copy link
Author

fzyzcjy commented Jun 24, 2022

Hi thanks for your reply!

My use case is mainly accessing Kubernetes in my cluster from my own computer. So is this feasible using the bastion (without using port forwarding)?

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

No branches or pull requests

2 participants