Is there a possibility to configure proxy (global or for few processes) only for one domain (and its subdomains)?
What I'd like to achieve:
All connections (HTTP/HTTPS, database connections, etc) to the subdomains of
Ok, I've found a solution. In my case all subdomains from
dupa.xyz are in the same subnetwork, so the easiest solution is to use IPTABLES + redsocks + ssh tunnel to the host inside this subnetwork.
In theory, it should be possible to redirect DNS traffic via TCP through redsocks, but I didn't try that. I've just added appropiate entries to the hosts file.