Comments (5)
Closing... I'm going to open a new one.
from redsocks.
Anyway, I'm unaware of this option and IMHO haproxy / IPVS is usually a better solution option for failover.
from redsocks.
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.
@antenore this use-case can be handled using various methods
- haproxy, having two upstreams and selecting "alive" one. It will work if socks5 login/password is same for both proxies.
- detecting the environment and restarting redsocks with proper config file
- detecting the environment and changing
iptables
ruleset to match the environment having redsocks running with tworedsocks { .... }
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.
Yes, it make sense.
Thanks a lot.
from redsocks.
Related Issues (20)
- Use redsocks to achieve the p2p live video streaming for remote driverless vehicle surveillance. HOT 1
- send a HTTP Post in https to get an access token oauth server return an error HOT 1
- File descriptors never closed?? HOT 1
- redsocks not forwarding proxy requests in RHEL 8 HOT 8
- My redsocks proxy connection has stopped working - new security somewhere?
- Software will not compile on OpenBSD 7.0
- Log file permission denied HOT 2
- Broken pipe and dropping client messages in the log file HOT 2
- Configuration issue HOT 9
- Kill switch feature
- Kill switch feature
- Kill switch feature
- Redirect all traffic HOT 1
- Is redsocks able to redirect udp traffic by tproxy (not only for dns )? HOT 3
- Not fully working as a socksifying router HOT 1
- Compiling Redsocks on M1 MacOS Monterey 12.5 HOT 1
- [Bug] Two UAF related to redsocks_shutdown
- [Bug] UAF in http-relay.c
- Redirect does not seem to happen on my IPv6 only server. HOT 1
- Redsocks on Kubernetes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redsocks.