I need VPN-like behavior locally, without using a VPN.
I've created a SOCKS proxy to a given server which is reachable from the WAN, and I want all of my traffic forwarded through that proxy so I can reach hosts inside of that network.
My SOCKS proxy looks like this:
ssh -t -D 8088 user@proxy-host 'watch -n 1 date'
I've setup my system to proxy though this using the System Settings:
I've verified that my environment variables are being set properly:
naftuli@macbook-nkay:~$ env | grep socks_proxy socks_proxy=socks://127.0.0.1:8088/
However, when I go to SSH to a given server, I can't reach it:
$ ssh internal-host ssh: Could not resolve hostname internal-host: Name or service not known
I think that the problem is that DNS isn't being forwarded over the SOCKS tunnel. Is there a way to set that up? I was able to configure Firefox to manually use remote DNS and it worked great. Is there an environment variable for this?