New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request - redirection based on destination ip/network #6
Comments
It's already possible, but you have to use |
Yes, przemoc have already answered the question — you can solve the task with two redsocks blocks and select one of them using iptables rules. You should have two different local_port settings in the blocks in this case. |
OK I agree it can be done by this way but copying way how for example dante is doing it (based on destination) would be nice :) thanks anyway. |
iptables is much more powerful than simple destination-based filter. |
ipcache use 'uint16_t'
So current solution is to use several |
Hi,
thanks for your redsocks first!
But can there be a feature to define "parent" tcp-port of proxy-server based on destination ip, network as there are probably multiple redsocks block allowed?
Current:
redsocks {
local_ip = 0.0.0.0;
local_port = 12345;
ip = 127.0.0.1;
port = 1081;
type = socks5;
}
We would like:
redsocks {
local_ip = 0.0.0.0;
local_port = 12345;
dest_ip = 192.168.1.10
ip = 127.0.0.1;
port = 1081;
type = socks5;
}
redsocks {
local_ip = 0.0.0.0;
local_port = 12345;
dest_net = 10.3.37.0/24
ip = 127.0.0.1;
port = 1082;
type = socks5;
}
It would be great! Thanks.
The text was updated successfully, but these errors were encountered: