Giter Site home page Giter Site logo

Comments (14)

p1ratrulezzz avatar p1ratrulezzz commented on September 12, 2024 2

Solved. Just commented out the line with

ipv4=0;

on https://github.com/TelegramMessenger/MTProxy/blob/master/engine/engine.c line 230

if ((ipv4 >> 24) != 10) {
      kprintf ("Bad binded IP address " IP_PRINT_STR ", search in ifconfig\n", IP_TO_PRINT (ipv4));
      kprintf("But I dont care about it...");
      //ipv4 = 0;
    } 

Server started and serving connections now. So looks like there is some issue with ipv4 check

from mtproxy.

JaminZhou avatar JaminZhou commented on September 12, 2024 2

./mtproto-proxy -u nobody -p 8888 -H 443 -S <secret> --nat-info <intranet ip>:<public ip> --aes-pwd proxy-secret proxy-multi.conf -M 1

--nat-info <intranet ip>:<public ip> add this will work

from mtproxy.

stek29 avatar stek29 commented on September 12, 2024

It probably should’ve been == 10, since 10.0.0.0/8 is a private network.
However, rfc1918 specifies two more subnets for private networks which are not handled.

get_my_ipv4 also only skips 10.0.0.0/8 and loopback

unsigned get_my_ipv4 (void) {

from mtproxy.

LDVSOFT avatar LDVSOFT commented on September 12, 2024

Agree, cannot bind to public ip.

from mtproxy.

p1ratrulezzz avatar p1ratrulezzz commented on September 12, 2024

Just disable this ip address check on line 230 as i mentioned in comment 2 (temporary, until developer fixes it)

from mtproxy.

zvpdev avatar zvpdev commented on September 12, 2024

Same issue.
Change from ipv4 = 0; to //ipv4 = 0; doesn't help me, stay binding to local ip.

from mtproxy.

p1ratrulezzz avatar p1ratrulezzz commented on September 12, 2024

@zvpdev forcely bind to public address by passing

--address 11.22.33.44

from mtproxy.

p1ratrulezzz avatar p1ratrulezzz commented on September 12, 2024

Also bug label needed for this, as it determines correct ip addresses as incorrect.

UPD: workaround for this is

--nat-info 127.0.0.1:11.22.33.44

where 11.22.33.44 - your public ip

from mtproxy.

p1ratrulezzz avatar p1ratrulezzz commented on September 12, 2024

I'm really not sure what does this check do but as @stek29 noticed it checks only networks like 10.10... But rfc has two more ranges so I've added them too. Binding to external ip actually work so if it is needed it can be easily changed.

from mtproxy.

liquidpredator avatar liquidpredator commented on September 12, 2024

Same issue.
Change from ipv4 = 0; to //ipv4 = 0 and use --address
binding to local ip anyway...

UPD
It works when I delete -d option...
but get same issue #34

from mtproxy.

p1ratrulezzz avatar p1ratrulezzz commented on September 12, 2024

@liquidpredator try cloning my fork of this proxy. you should use --address ur.if.ip.adr for example --address 8.8.8.8 (check interface's ip address in ifconfig)

from mtproxy.

savely-krasovsky avatar savely-krasovsky commented on September 12, 2024

@p1ratrulezzz after last update with padding support seems like it broken again. Is there new workaround?

from mtproxy.

p1ratrulezzz avatar p1ratrulezzz commented on September 12, 2024

from mtproxy.

savely-krasovsky avatar savely-krasovsky commented on September 12, 2024

@p1ratrulezzz I heard Rostelecom already testing DPI blocking by packet size. So considered to update and stuck...

from mtproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.