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

Using the MTproto Proxy server behind the NAT #273

Open
Mohammad-ipv6 opened this issue Sep 30, 2022 · 1 comment
Open

Using the MTproto Proxy server behind the NAT #273

Mohammad-ipv6 opened this issue Sep 30, 2022 · 1 comment

Comments

@Mohammad-ipv6
Copy link

Issue Description: I would like to use the MTProto Proxy within a Linux server that is located behind the NAT. I can see that within your python script, by using ident.me, you replace the public IPv4 of the server running the docker file to server users' requests. However, my environment is different.

  • A home router has a WAN with public IP address as, for instance, 100.100.100.100
  • The Ubuntu server (running the MTProto docker image) has 192.168.1.1 (which obtains its address from the router via DHCP)
  • The ubuntu server has only two interfaces. lo and eth0: 192.168.1.1
  • The home router enabled the port forwarding to send the request received on the WAN port to the Ubuntu server on eth0.

Which parameters/line of code should be changed to cope with this case?

Expected solution: The working proxy with the server address for MTProto is 100.100.100.100

@alexbers
Copy link
Owner

alexbers commented Oct 3, 2022

It should work as is

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

2 participants