Route specific url / ip through vpn

Route specific url / ip through vpn

Author
Discussion

new_bloke

Original Poster:

453 posts

299 months

Friday 2nd May
quotequote all
Hi all,

I'm trying to figure out a solution to listen to a favourite internet radio station that is geoblocked in the UK. My home audio setup uses owntone server ( https://owntone.github.io/owntone-server/) which can play audio streams given their url.
The goal is to be able to listen to the stream via the usual url, without routing the whole of my network traffic through the vpn.
I was thinking about running some sort of vpn enabled proxy server in a docker container, but this is far from my area of expertise. I'm also using pihole as the dns server on the local network, so maybe that could be part of a solution? Finally my router allows me to specify static routes, but I'm very unsure how to set this up.
Any advice / pointers would be greatly appreciated!

WinstonWolf

72,863 posts

254 months

Friday 2nd May
quotequote all
new_bloke said:
Hi all,

I'm trying to figure out a solution to listen to a favourite internet radio station that is geoblocked in the UK. My home audio setup uses owntone server ( https://owntone.github.io/owntone-server/) which can play audio streams given their url.
The goal is to be able to listen to the stream via the usual url, without routing the whole of my network traffic through the vpn.
I was thinking about running some sort of vpn enabled proxy server in a docker container, but this is far from my area of expertise. I'm also using pihole as the dns server on the local network, so maybe that could be part of a solution? Finally my router allows me to specify static routes, but I'm very unsure how to set this up.
Any advice / pointers would be greatly appreciated!
If their IP address doesn't change just create a static route in your main router to point traffic via your VPN server, that should work off the top of my head.

Backup your config first then if you balls up you can go back to a known good config.

.:ian:.

2,534 posts

218 months

Saturday 3rd May
quotequote all
I would look at using Oracle Compute free tier in whatever region you need to appear to be from. https://www.oracle.com/cloud/free/
They give a surprisingly generous amount of free compute time, I`ve been using some for years, no problems at all.

If the application supports http proxy, then run squid or tinyproxy on the compute resource, make sure the proxy is not passing on x-forwarded-for or other headers that identify your uk ip.

The free tier accounts only have access to one country zone, so choose the correct one from the outset.

If you dont want that, then https://github.com/qdm12/gluetun?tab=readme-ov-fil... offers vpn client and http/socks proxy in a docker container.

Routed networking over a vpn is more complex. Possibly do-able in a Docker container, but networking in docker is already complex enough laugh

glue-tun does offer internal networking between docker containers, so if you ran the own-tone server in a docker container, this might work.


colin79666

2,067 posts

128 months

Saturday 3rd May
quotequote all
Another option might be to policy route to the IP address via a router. Pfsense can certainly do this, I’ve got it routing all traffic for a certain client out via a WireGuard vpn tunnel but it can be done on destination too.