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

Get Real ip connections #23

Open
intellvold opened this issue Aug 29, 2024 · 6 comments
Open

Get Real ip connections #23

intellvold opened this issue Aug 29, 2024 · 6 comments

Comments

@intellvold
Copy link

Hello, how can I get the user's real ip like getting the ip in the http protocol using X forward headers? Is there a way to do this without a domain? Or on a protocol that can be done in v2ray ?

@GFW4Fun
Copy link
Owner

GFW4Fun commented Sep 1, 2024

Hi
your cdn is on?

proxy_set_header	X-Real-IP $remote_addr;
proxy_set_header	X-Forwarded-For $http_cf_connecting_ip;
proxy_set_header	CF-Connecting-IP $http_cf_connecting_ip;

@intellvold
Copy link
Author

I installed according to the instructions. I entered the domain . and the script got a certificate for this domain, and I opened the panel link that the script gave me , in the browser and tried to create an inbound with the websocket protocol, but the user's real IP was still not visible in the xui logs . In CDN, everything is open

and on the same domain, you can see the real IP in http get or post requests. but not show in xui logs when user connect vpn.

After installing the script and raising the panel in the browser using the domain. and creating ws inbound?

Do I have to do anything ?

Hi your cdn is on?

proxy_set_header	X-Real-IP $remote_addr;
proxy_set_header	X-Forwarded-For $http_cf_connecting_ip;
proxy_set_header	CF-Connecting-IP $http_cf_connecting_ip;

@intellvold
Copy link
Author

For some security and server connection issue, I want to know real IP of users when connecting to vpn using V2ray core. In the xui logs, I can see IPs, but a bunch of ISPs, including my own. The router shows the central IP of the isp as the connection. While the actual IP is visible when the send or receive request is sent from the client to the server. I wanted to know how the same x forwarded scenario can be fully implemented in v2ray without the need to edit the client anymore because these things can be manipulated on the client side. I would be grateful if you know a solution for not using the domain, or if you know how it works with the domain. Because in the documentation of this repository, I could not fully understand how it works

Hi your cdn is on?

proxy_set_header	X-Real-IP $remote_addr;
proxy_set_header	X-Forwarded-For $http_cf_connecting_ip;
proxy_set_header	CF-Connecting-IP $http_cf_connecting_ip;

@GFW4Fun
Copy link
Owner

GFW4Fun commented Sep 2, 2024

Run the installation again!
The script was updated!

@GFW4Fun
Copy link
Owner

GFW4Fun commented Sep 6, 2024

@GFW4Fun 我使用了ChatGPT进行翻译,方便您的阅读。感谢您的出色工作。我想知道,NGINX是否支持TCP TLS xtls-rprx-vision?另外,在您看来,Caddy、NGINX和HAProxy哪个更好?

Maybe TCP/UDP stream support in the future!

@hazharKurdi
Copy link

remove this script cod plz

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

3 participants