So, I have a pretty alright VPN provider, but I’ve been looking for a self-hosted solution to allow me to say “Hey, if you’re trying to hit www.domain.com, go through this VPN tunnel instead” but still run everything else straight through. Lots of options exist, I have one that would be perfect that we utilize at my company, but I haven’t found a good solution that doesn’t utilize enterprise level pricing.
You can use foxyproxy (browser extension) with SOCKS5 proxies to ssh tunnels to various hosts based on the URL pattern. Maybe too kludgey for your use case.
Yeah, I’ve seen that one, but I’m looking for something at the router level or something I can run on linux and just have everything run through. I have CLI-based options that are super janky… I’m probably just being too picky.
I think it needs to be on the client app (web browser) before it gets sent thru the VPN. Your router won’t be able to read the http header to see what the URL is (to decide which VPN to use).
Get a cheap vps. Set up wire guard. Set up routes that pass through wire guard. In this case porn hubs IP’s go through the vps. Be aware that some vps providers IP blocks are often blocked by cloudflare and other similar services. So it pays to check out the IP rep of the vps provider before you choose.
So, I have a pretty alright VPN provider, but I’ve been looking for a self-hosted solution to allow me to say “Hey, if you’re trying to hit www.domain.com, go through this VPN tunnel instead” but still run everything else straight through. Lots of options exist, I have one that would be perfect that we utilize at my company, but I haven’t found a good solution that doesn’t utilize enterprise level pricing.
Anyone got any tips on that front?
Tinyproxy
https://github.com/tinyproxy/tinyproxy/releases
Free Open source Upstream Http/s, socks4/5, direct redirection per site/URL/domain with regex. Can set default upstream proxy for everything else.
Invisible proxy Reverse proxy
Command line / simple text config
It’s in your distros repo
It’s available in termux.
It works.
See, you read what I actually asked for, thanks my friend.
You can use foxyproxy (browser extension) with SOCKS5 proxies to ssh tunnels to various hosts based on the URL pattern. Maybe too kludgey for your use case.
Yeah, I’ve seen that one, but I’m looking for something at the router level or something I can run on linux and just have everything run through. I have CLI-based options that are super janky… I’m probably just being too picky.
I think it needs to be on the client app (web browser) before it gets sent thru the VPN. Your router won’t be able to read the http header to see what the URL is (to decide which VPN to use).
Get a cheap vps. Set up wire guard. Set up routes that pass through wire guard. In this case porn hubs IP’s go through the vps. Be aware that some vps providers IP blocks are often blocked by cloudflare and other similar services. So it pays to check out the IP rep of the vps provider before you choose.