slingamn / namespaced-openvpn

Wrapper for OpenVPN on Linux solving various privacy issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

local proxy routing to vpn connection

mgaulton opened this issue · comments

I'm trying to figure this out, and wondering what your thoughts are.
I have apps that search web indexes, i want to isolate the search to the vpn tunnel, but they need to live in the default namespace to talk to fileservers and other resources.

https://superuser.com/questions/1165656/binding-squid-proxy-with-vpn-in-network-namespace

So socat to the rescue again, just in reverse of the method i used for the last issue.
Sadly, it doesn't work the way i'd hoped, as the apps i'm using aren't smart enough to ignore the proxy setting for the local subnet resources, meaning everything hits the proxy. And since its a one/off proxy I can't use WPAD/PAC files etc to do splitting. :)