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

NLA redirection #308

Merged
merged 5 commits into from
Apr 1, 2021
Merged

NLA redirection #308

merged 5 commits into from
Apr 1, 2021

Conversation

xshill
Copy link
Collaborator

@xshill xshill commented Mar 25, 2021

Added options --redirection-host and --redirection-port. When trying to downgrade from NLA, PyRDP will connect to this host instead of the intended server if it only allows NLA connections.

See #260.

@xshill xshill linked an issue Mar 25, 2021 that may be closed by this pull request
@obilodeau obilodeau added the enhancement New feature or request label Mar 31, 2021
@obilodeau obilodeau added this to the v1.1.0 milestone Mar 31, 2021
Copy link
Member

@obilodeau obilodeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have concerns about the interaction of this code with the transparent proxy mode. Are both modes compatible? It should be possible but how will the new server-side TCP connection will be created? It needs to be set with clientIP as its source. Is that covered?

pyrdp/mitm/cli.py Outdated Show resolved Hide resolved
@xshill
Copy link
Collaborator Author

xshill commented Apr 1, 2021

I have concerns about the interaction of this code with the transparent proxy mode. Are both modes compatible? It should be possible but how will the new server-side TCP connection will be created? It needs to be set with clientIP as its source. Is that covered?

I suppose so, it uses the same functions as previously, just with a different argument. But I haven't tested it tbh.

Copy link
Member

@obilodeau obilodeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🚀

@xshill xshill merged commit ef7b669 into master Apr 1, 2021
@obilodeau obilodeau deleted the nla-redirection branch August 6, 2021 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to detect NLA and optionally redirect to a non NLA server.
2 participants