Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/Clarrification - iptv-proxy behind VPN #154

Open
twenty3thirty0 opened this issue Aug 24, 2023 · 6 comments
Open

Question/Clarrification - iptv-proxy behind VPN #154

twenty3thirty0 opened this issue Aug 24, 2023 · 6 comments

Comments

@twenty3thirty0
Copy link

Hi.

I'm pretty sure the answer to this is "yes" but would just like to clarify....

If iptv-proxy is running on a machine with a VPN enabled... any IPTV client pointing to the iptv-proxy address will be served the content through the VPN... and i.e. not require the client to also connect to the VPN.

@NovalisVonHardenberg
Copy link

Thats possible with qmcgaw/gluetun
I can write a small tutorial tomorrow.

@zimmflo
Copy link

zimmflo commented Aug 27, 2023

User docker-compose:

  • One container, like Novalis wrote, with gluetun. I use it with nordvpn.
  • In the compose from the proxy u can simply do: "network_mode: container:gluetun"

or u use the little advanced method with traefik to get a letsencrypt cert in case u need ssl.

@twenty3thirty0
Copy link
Author

Thanks both.

From what i understand, gluetun would be useful for where I'd want the client to be on the same machine as the docker container (with iptv proxy and vpn running).

My scenario is a little simpler than that...
So i have a Windows box running iptv-proxy and VPN.
This works, and i can have any number of other machines and clients connected to it (on the same LAN). These work..even without a VPN enabled.
So my question is, are these VPN-less clients exposed as being connected indirectly to the source iptv provider. Or is iptv-proxy doing the job of getting the stream from the provider (via vpn) and serving it out locally, without any passed on connection to the source?

@zimmflo
Copy link

zimmflo commented Aug 27, 2023

No. Gluetun is a vpn client. So u can start the gluetun container who etablish the connection to your vpn provider.
You can then let Docker route the traffic from another container trough it.
So in this case: client (other machine) <--> iptv-proxy (win-box) <--> gluetun (win-box) <--> vpn-server <--> provider

Its just for security reason. With this setup u can start the proxy, but when gluetun is not running the proxy can't connect.
If you have your normal desktop vpn client not running and you start the proxy, then the provider will see the ip of the proxy.

The answer to your question is, YES.
Just the channel and movie pictures are not proxied, but the streams are.

For the provider it may still be possible to detect, that you are using different devices.
To prevent that you can set a static user-agent on in this line:
xtreamHandles.go
Just replace ctx.Request.UserAgent() with a static string e.g. "VLC/3554" or "IPTV Smarters/1.0.3 (iPhone; iOS 16.3; Scale/2.00)"

@twenty3thirty0
Copy link
Author

Thanks @zimmflo thats been really really helpful.

As my vpn client is always on with a kill switch enabled already, i think im covered, and dont see much need for gluetun.

Makes sense that the epg channel list and media content is still direct.

Ill definitely look into the user-agent though. Thats a really good shout.

Thanks again

@mf1x
Copy link

mf1x commented Dec 21, 2023

@NovalisVonHardenberg
Are you still keen to write a little guide?
It would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants