UnamSanctam / UnamWebPanel

MIT License
180 stars 58 forks source link

how can fix "ips" when im in loophole #80

Open derzbot2002 opened 2 years ago

derzbot2002 commented 2 years ago

Captura

Hello, I need help, how can i fix the ips, im using loophole "portmap.io" it only recreates the ip all the time

UnamSanctam commented 2 years ago

Well that's the IP that the traffic comes from, is it even possible to know what the origin IP is when using portmap (or any loophole)?

derzbot2002 commented 2 years ago

Im using openvpn connected with portmap file with my config

UnamSanctam commented 2 years ago

Yes and 10.9.0.1 is probably the local IP that the connections are coming from which is why it shows that. It gets the address using $_SERVER["REMOTE_ADDR"] which in this case is coming from your local connection, it's the same if using Cloudflare since it proxies all the traffic so for Cloudflare you have to check the http header instead.

derzbot2002 commented 2 years ago

so what i should do ? :)

UnamSanctam commented 2 years ago

You would have to set up that with portmap if it's even possible, you can't do anything in the PHP to "fix" it (from as far as I know) since the PHP receives everything from 10.9.0.1 and probably does not even know the real IPs. I haven't used portmap before so I'm not sure if there's some setting or configuration in OpenVPN that can expose the real IPs.

derzbot2002 commented 2 years ago

ok thank you

grandepremo commented 2 years ago

I have a similar problem, only for each miner, it shows the IP of the server on which the panel is located instead of the IP of the miner

UnamSanctam commented 2 years ago

I don't know your setup but if you're hosting it behind a proxy that routes all the traffic through it then it will show that proxy IP since that's where the traffic is coming from, your webserver can't know what the original IP was unless it's somehow told by the proxy.