houshmand-2005/V2IpLimit

Tunnel

ahmadrezaei opened this issue · 4 comments

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?

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)

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

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

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