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

How get destination address from Transport.accept()? #1450

Open
castrorry opened this issue Jun 4, 2019 · 2 comments
Open

How get destination address from Transport.accept()? #1450

castrorry opened this issue Jun 4, 2019 · 2 comments

Comments

@castrorry
Copy link

castrorry commented Jun 4, 2019

How can I get the destination address through .Transport-accept(), for which I want to forward using direct-tcpip?

@ploxiln
Copy link
Contributor

ploxiln commented Jun 4, 2019

ServerInterface has method check_channel_direct_tcpip_request(self, chanid, origin, destination) for you to implement - destination is an (ip_addr, port) tuple. See http://docs.paramiko.org/en/2.4/api/server.html#paramiko.server.ServerInterface.check_channel_direct_tcpip_request

@castrorry
Copy link
Author

Okay, but I already had check_channel_direct_tcpip_request enabled, but forwarding does not work. And for me to create manual routing, I need to get the destination through the channel.

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