Giter Club home page Giter Club logo

Comments (4)

Vijay-K-2003 avatar Vijay-K-2003 commented on May 28, 2024

Is this a GFI? I would like to try to work on this @arno01

from tendermint.

arno01 avatar arno01 commented on May 28, 2024

Is this a GFI? I would like to try to work on this @arno01

I think so, good luck!

from tendermint.

Vijay-K-2003 avatar Vijay-K-2003 commented on May 28, 2024

Could you please help me with the process to reproduce this situation?

from tendermint.

arno01 avatar arno01 commented on May 28, 2024

Could you please help me with the process to reproduce this situation?

You can test either scenario:

1) NAT

I think you can use Docker to simulate NAT (for points 2. & 3.)

  1. HostA: Start tendermint app server;
  2. HostB (behind NAT, sharing the same public IP as HostC): Connect tendermint app client to HostA;
  3. HostC (behind NAT, sharing the same public IP as HostB): Connect tendermint app client to HostA;

As soon as you reach point 3. you will hit the duplicate CONN error as the tendermint app server will see the same public IP (except for the remote ports which never overlap) from the HostC as HostB used.

2) Behind the load-balancer

Load-balancer can be: K8s ingress-nginx controller / nginx LB / haproxy / ... any load-balancer pretty much

  1. HostA: Start tendermint app server listening over 127.0.0.1:26656 instead of 0.0.0.0:26656;
  2. HostA: Deploy LB (any load balancer you like) listening at 26656/tcp over a known public IP and forwarding the incoming connections to the tendermint app server that listens over 127.0.0.1:26656;
  3. HostB: Connect tendermint app client to <Public-IP-Of-HostA>:26656;

As soon as you reach point 3. you will hit the duplicate CONN error as the tendermint app server will only see the incoming IP of the load-balancer which is always same (except for the remote ports which never overlap).

from tendermint.

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.