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

Tunnel #3

Closed
ahmadrezaei opened this issue Jun 5, 2023 · 4 comments
Closed

Tunnel #3

ahmadrezaei opened this issue Jun 5, 2023 · 4 comments
Labels
question Further information is requested

Comments

@ahmadrezaei
Copy link

Hi,
Thanks for your script, when i use tunnel to connect marzban it cant find user ip and it return tunnel server ip for user.
can we do something for that?

@houshmand-2005
Copy link
Owner

Hi
yes we have problem with tunneling because Xray core can't get user's ip when you forward users to another server (When you do this, all users' IP is the IP of the server you are tunneling with)
so, when the xray core can't detect users ip i can't make a script to make the limitation.
unless you use xray core itself for tunneling (you can search for tutorials)

@ahmadrezaei
Copy link
Author

Thanks for your response,
I use xray dokodemo-door to forward connection, this does not work too?

@houshmand-2005
Copy link
Owner

Yes, it is possible, but you need to do this method in Marzban panel and not in other panels, because other panels have a different way of getting their logs. (But I don't recommend this method very much)
The method I suggest
You can bring a vless or vmess and set it to outbound.
For more information
vless:
https://xtls.github.io/en/config/outbounds/vless.html
vmess:
https://xtls.github.io/en/config/outbounds/vmess.html

@houshmand-2005 houshmand-2005 pinned this issue Aug 7, 2023
@houshmand-2005 houshmand-2005 added the question Further information is requested label Aug 7, 2023
@yasinowo
Copy link

Hello, have a good time
There is no special method on the deco tunnel to set an IP address?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants