Force plex to bypass tun0 and use eth0 instead [Found workaround]
|
Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Solved]
Jan 26, 2016, 12:11 PM
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Jan 26, 2016, 12:20 PM
Glad you've almost got the setup you desire, it doesn't surprise me that Plex is the misbehaving program .
Looks like you need to do something like this or use iptables to stop Plex from going through the VPN ( try this).
Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Solved]
Jan 26, 2016, 01:26 PM
(This post was last modified: Jan 26, 2016, 01:28 PM by Gompy.)
Could you explain how to set it up the way your first link suggests?
And what both methods do? (I'm eager to learn
And if I should choose to go the way of the second link you posted. Could I just save the script as something.sh and call it on boot from rc.local?
Excuse my noob questions
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Jan 26, 2016, 02:57 PM
(This post was last modified: Jan 26, 2016, 07:43 PM by Mike.)
Hmm on second thought a reverse proxy may be much easier. I am actually a preparing a guide for Plex that you can test if you like, it would be very helpful.
Basically use this guide but for the nginx virtual host use this location instead
Code:
server {
listen 80;
server_name htpcguides.crabdance.com, 192.168.40.105;
location /web {
proxy_pass http://127.0.0.1:32400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /plex {
proxy_pass http://127.0.0.1/web;
}
}
Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Solved]
Jan 26, 2016, 03:22 PM
I'd be happy to test and contribute in any way. I will look in to it tonight when I get home. Also: I have had this setup running for the past few months (minus the VPN) and decided to start a fresh image last week and have been documenting every step to this point to turn it into a guide for my specific setup. I'd be happy to share it when I feel the setup is perfect.
Sent from my iPhone using Tapatalk
Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Solved]
Jan 26, 2016, 06:22 PM
(This post was last modified: Jan 26, 2016, 07:44 PM by Gompy.)
Backing up image right now..
Will post test results in a bit.
Sent from my iPhone using Tapatalk
Followed the guide with alternate code you posted above, and forwarded port 80 to my server.
Still seem to be unable to reach plex from outside LAN.
myhost.no-ip.com/web now leads me to plex login and shows my friends servers, just not mine (when connecting from outside LAN). "We're sorry, but we can't reach this server." myhost.no-ip.com/web does work from a machine on the same LAN.
So unfortunately, no dice for now..
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Jan 26, 2016, 07:45 PM
If you are able to log on and see your friends by using dynamicdns/web then you are communicating with the Plex server!
Something else is going on, I've seen that problem before but can't remember how I fixed it. It definitely has to do with some plex.tv nonsense though. Maybe I turned on bypass authentication for local users in the Plex settings, can you try that?
Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Solved]
Jan 26, 2016, 07:49 PM
(This post was last modified: Jan 26, 2016, 08:08 PM by Gompy.)
(Jan 26, 2016, 07:45 PM)Mike Wrote: If you are able to log on and see your friends by using dynamicdns/web then you are communicating with the Plex server!
Something else is going on, I've seen that problem before but can't remember how I fixed it. It definitely has to do with some plex.tv nonsense though. Maybe I turned on bypass authentication for local users in the Plex settings, can you try that?
Where do I find this setting?
(Jan 26, 2016, 07:49 PM)Gompy Wrote: (Jan 26, 2016, 07:45 PM)Mike Wrote: If you are able to log on and see your friends by using dynamicdns/web then you are communicating with the Plex server!
Something else is going on, I've seen that problem before but can't remember how I fixed it. It definitely has to do with some plex.tv nonsense though. Maybe I turned on bypass authentication for local users in the Plex settings, can you try that?
Where do I find this setting?
Do you mean one of these two? (server>advanced>network)
Custom server access URLs
A comma-separated list of URLs (http or https) which are published up to plex.tv for server discovery.
List of networks that are allowed without auth
Comma separated list of IP/netmask for networks that are allowed to access Plex Media Server without logging in.
THAT FIXED IT!
adding http://host.ddnsservice.com to the "Custom server access URLs" in Server>Network.
I can now remotely access my plexserver while running openvpn.
Thanks!
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Jan 26, 2016, 09:11 PM
Great, can you show which IPs and netmasks you used? Was 127.0.0.1 enough or did you need 192.168.0.0/24?
Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Solved]
Jan 26, 2016, 09:54 PM
127.0.0.1 did the trick. I did not change anything apart from my own ip and ddns url.
|
|
Recent Posts
|
About Swap
jonescelinaa Apr 10, 2024, 06:58 AM
|
Tracker Status: Error Connection Time Out
jonesPhedra Apr 04, 2024, 08:17 AM
|
Split Tunnel Docker Containers
jonesPhedra Mar 27, 2024, 03:10 AM
|
Plex server not powerful enough, but only with s...
jonesPhedra Mar 27, 2024, 03:02 AM
|
game Geometry Dash Scratch
jonescelinaa Jan 31, 2024, 04:21 AM
|
Latest unread posts | Unanswered posts |
|