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

Can WinDivert modify client IP addresses for a Windows TCP server? #369

Open
somersby10ml opened this issue Sep 4, 2024 · 0 comments
Open

Comments

@somersby10ml
Copy link

I'm working in a Windows environment and need to alter how a server perceives client IP addresses. My goal is to make an existing server program see a specific IP address when it tries to access a client's Remote Address.

Current setup:

I plan to use a TCP proxy with Proxy Protocol V2.
This causes the server to recognize client IPs as 127.0.0.1.

Desired scenario:

Client connects
TCP proxy (using Proxy Protocol V2) handles the connection
My custom server or WinDivert parses this to extract the real IP
This information is passed to the main server

The challenge:

Make the main server receive the real client IP instead of 127.0.0.1.

Important note:

The main server is a pre-compiled executable without source code, so rebuilding is not an option.

Question:

Is it possible to use WinDivert to intercept and modify the perceived client IP addresses for this Windows TCP server? If so, how can this be implemented?
Any insights or alternative approaches would be greatly appreciated. Thank you!

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

1 participant