GithubHelp home page GithubHelp logo

Fallback IP about redsocks HOT 5 CLOSED

darkk avatar darkk commented on September 27, 2024
Fallback IP

from redsocks.

Comments (5)

antenore avatar antenore commented on September 27, 2024

Closing... I'm going to open a new one.

from redsocks.

darkk avatar darkk commented on September 27, 2024

Anyway, I'm unaware of this option and IMHO haproxy / IPVS is usually a better solution option for failover.

from redsocks.

antenore avatar antenore commented on September 27, 2024

What do you mean please? I don't know haproxy/IPVS is something I can use on client side?

To just clarify, this issue is related to the PR #49 (never merged for good reasons probably) that I submitted a long time ago, to simplify the setup where we work.

We have part of the socks servers that are available only from the office LAN, when we connect from home we have to use other SOCKS servers, that's why we use that patch.

That way redsocks try to connect to the first SOCKS server, if it goes in timeout it uses the fallback one.

PLease let me know if I have to better explain the scenario, I'm not good at explanation :-)

For us it's just a workaround, so if you have a better solution to advice, except having two different redsocks.conf files, I prefer as well, because the patch I submitted it's not so good... It's just a workaround (and I cannot make it to work with the last codebase).

Thanks in advance!!!!!!!!

from redsocks.

darkk avatar darkk commented on September 27, 2024

@antenore this use-case can be handled using various methods

  1. haproxy, having two upstreams and selecting "alive" one. It will work if socks5 login/password is same for both proxies.
  2. detecting the environment and restarting redsocks with proper config file
  3. detecting the environment and changing iptables ruleset to match the environment having redsocks running with two redsocks { .... } sections in the config file

My usual setup is environment-based. It's quite easy to do that with network-manager dispatcher scripts and network-manager is de facto standard for Linux desktop network configuration.

Tell me if you need better explanation of (2) and (3). IMHO, (1) is too heavyweight for your use-case.

from redsocks.

antenore avatar antenore commented on September 27, 2024

Yes, it make sense.

Thanks a lot.

from redsocks.

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.