0
I have SSH access to a jump box on my work. This jump box gives access to the complete network infrastructure at work. This is great to work from home.
I am able to run a SOCKS5 proxy on the jump box (via ssh -D
) and successfully managed to configure my browser to use that SOCKS5 proxy for work hosts (via https://getfoxyproxy.org). Foxyproxy seems to forward DNS requests to that SOCKS5 proxy, so all is working fine.
While this all works fine, I am wondering if it is possible to let my system use the SOCKS5 for work-related traffic in a more transparent manner. It's quite exhausting to figure out for each application I use if it supports SOCKS5 and if so, how.
More concrete, is there a way to configure my system in such way that it will automatically route traffic via the SOCKS5 for predefined hosts?
I know there are tools such as proxychains (see https://github.com/haad/proxychains), but this is not what I am after. This routes all traffic of an application to the proxy, while I want to route all traffic to a host to the proxy, if that makes sense.
Is this possible?
For your information, I asked a related question regarding DNS requests here: Forward DNS request to my work's jump server. Combining this question with the DNS question, I hopefully end up with a fully transparent way of interacting with work.
Thank you. I will get start experimenting. – Pritzl – 2019-07-07T16:51:36.877
FYI, I tried to get going with redsocks, but am hitting a wall currently. I listed my case here: https://superuser.com/questions/1457781/why-is-redsocks-not-being-used-for-traffic-in-this-dockerized-environment
– Pritzl – 2019-07-09T11:55:58.467