I'd like to send traffic destined to certain ip/subnet through one ssh socks5, while routing other traffic through another socks5 tunnel.
I'd tried tsocks with following configuration:
path {
server = 127.0.0.1
server_port = 3001
server_type = 5
reaches = 1.2.3.4/32
}
but then I try "tsocks wget 1.2.3.4" it doesn't go through that proxy giving an error IP (0.0.0.0) & 18:32:14 libtsocks(16065): SUBNET (0.0.0.0) != IP on line 33 in configuration file, ignored
I don't understand the error.
I'm also thinking if I can do this using iptables.
Any recommendations on how this can be done?