TelegramMessenger / MTProxy

4.97k stars 819 forks source link

Truble with using --nat-info #326

Open Bouki6 opened 5 years ago

Bouki6 commented 5 years ago

Hello. I have MTProxy Srever with two interfaces like this: eth0: 195.1.1.1 ppp0(VPN): 10.10.10.141 i tried to using this scenario: TelegramClient-->(MTProto proxy server) -->TelegramServer telegram client connect to proxy through 195.1.1.1 ip address over eth0 interface and proxy server nat the traffic through vpn to telegram server. but for some reason it didn't work. i have no idea why!! i implemented the same scenario with SOCKS and CCProxy on windows. I'm no expert on linux and i guess i miss something . i use this --net--info like this: --nat-info 195.1.1.1:10.10.10.141 and --nat-info 10.10.10.141:195.1.1.1

here is my nestatoutput. as you can see proxy server successfully connected to telegram servers on 8888 port:

tcp        0     44 10.10.10.141:60496      91.108.4.207:8888       ESTABLISHED
tcp        0     44 10.10.10.141:59094      91.108.4.129:8888       ESTABLISHED
tcp        0     48 10.10.10.141:59684      91.108.56.129:8888      ESTABLISHED
tcp        0     48 10.10.10.141:35984      91.108.4.174:8888       ESTABLISHED
tcp        0     44 10.10.10.141:60446      91.108.4.207:8888       ESTABLISHED
Mohammad-ipv6 commented 1 year ago

Hi, Any update?