I use VPN a lot. The thing is, most of the time I don't want everything to be tunneled through the VPN connection. It's just a certain app, domain or service that I want to access that is blocked by ISP/Gov.
Like the youtube app on android, or the twitter site on my laptop. I have to constantly keep my VPN open and connected to access these services. Which slows down the connection speed for already-accessible sites, or messes up online payments, etc...
I want to know if there is a way to use a vpn/proxy connection, that can be set per app/domain?
I know this can't be done on normal modems and wifi stations. But maybe a pc/server that can act as a middleware or custom router. Something that can look into the requests, see which ones matches a rule set by admin that should be directed to the vpn server.
I was thinking about maybe a raspberry pi, or a tiny pc, with a nodejs app that can do that...?
Btw It was hard to come up with the title's name, but please proceed with an edit if you have a good title for this question.