Route specific url / ip through vpn
Discussion
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!
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!
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.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!
Backup your config first then if you balls up you can go back to a known good config.
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
glue-tun does offer internal networking between docker containers, so if you ran the own-tone server in a docker container, this might work.
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

glue-tun does offer internal networking between docker containers, so if you ran the own-tone server in a docker container, this might work.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff